ILIAS
Release_4_0_x_branch Revision 61816
|
This class handles all operations on files in directory data/shop. More...
Public Member Functions | |
__construct ($a_pobject_id) | |
getCurrentImageWebPath () | |
getCurrentImageServerPath () | |
storeUploadedFile ($a_http_post_file) | |
assignFileToPaymentObject () | |
deassignFileFromPaymentObject () | |
unlinkFile ($a_filename) | |
checkFilesExist ($a_files) | |
Public Member Functions inherited from ilFileData | |
ilFileData () | |
Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. | |
checkPath ($a_path) | |
check if path exists and is writable | |
getPath () | |
get Path public | |
Public Member Functions inherited from ilFile | |
ilFile () | |
Constructor get ilias object public. | |
deleteTrailingSlash ($a_path) | |
delete trailing slash of path variables |
Data Fields | |
const | SHOPPATH = 'shop' |
Private Member Functions | |
__read () | |
initDirectory () | |
checkReadWrite () |
Private Attributes | |
$pobject_id = 0 | |
$shop_path = '' | |
$image_current = '' | |
$image_new = '' | |
$db = null |
This class handles all operations on files in directory data/shop.
Currently it handles only one image per shop object...
Definition at line 34 of file class.ilFileDataShop.php.
ilFileDataShop::__construct | ( | $a_pobject_id | ) |
Definition at line 44 of file class.ilFileDataShop.php.
References $ilDB, $pobject_id, __read(), checkReadWrite(), ilUtil\getWebspaceDir(), and initDirectory().
|
private |
Definition at line 59 of file class.ilFileDataShop.php.
References $result.
Referenced by __construct().
ilFileDataShop::assignFileToPaymentObject | ( | ) |
Definition at line 136 of file class.ilFileDataShop.php.
References $image_new.
Referenced by ilPaymentObjectGUI\updateDetails().
ilFileDataShop::checkFilesExist | ( | $a_files | ) |
Definition at line 179 of file class.ilFileDataShop.php.
References $file.
Referenced by getCurrentImageServerPath(), and getCurrentImageWebPath().
|
private |
Definition at line 106 of file class.ilFileDataShop.php.
Referenced by __construct().
ilFileDataShop::deassignFileFromPaymentObject | ( | ) |
Definition at line 152 of file class.ilFileDataShop.php.
References ilUtil\delDir(), and unlinkFile().
Referenced by ilPaymentObjectGUI\updateDetails().
ilFileDataShop::getCurrentImageServerPath | ( | ) |
Definition at line 82 of file class.ilFileDataShop.php.
References $image_current, and checkFilesExist().
ilFileDataShop::getCurrentImageWebPath | ( | ) |
Definition at line 71 of file class.ilFileDataShop.php.
References $image_current, checkFilesExist(), and ilUtil\getWebspaceDir().
|
private |
Definition at line 93 of file class.ilFileDataShop.php.
References ilFileData\getPath(), and ilUtil\makeDirParents().
Referenced by __construct().
ilFileDataShop::storeUploadedFile | ( | $a_http_post_file | ) |
Definition at line 118 of file class.ilFileDataShop.php.
References ilUtil\moveUploadedFile(), ilUtil\resizeImage(), and unlinkFile().
ilFileDataShop::unlinkFile | ( | $a_filename | ) |
Definition at line 171 of file class.ilFileDataShop.php.
Referenced by deassignFileFromPaymentObject(), and storeUploadedFile().
|
private |
Definition at line 42 of file class.ilFileDataShop.php.
|
private |
Definition at line 40 of file class.ilFileDataShop.php.
Referenced by getCurrentImageServerPath(), and getCurrentImageWebPath().
|
private |
Definition at line 41 of file class.ilFileDataShop.php.
Referenced by assignFileToPaymentObject().
|
private |
Definition at line 38 of file class.ilFileDataShop.php.
Referenced by __construct().
|
private |
Definition at line 39 of file class.ilFileDataShop.php.
const ilFileDataShop::SHOPPATH = 'shop' |
Definition at line 36 of file class.ilFileDataShop.php.