ILIAS
Release_4_1_x_branch Revision 61804
|
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 13 of file class.ilFileDataShop.php.
ilFileDataShop::__construct | ( | $a_pobject_id | ) |
Definition at line 23 of file class.ilFileDataShop.php.
References $ilDB, $pobject_id, __read(), checkReadWrite(), ilUtil\getWebspaceDir(), and initDirectory().
|
private |
Definition at line 38 of file class.ilFileDataShop.php.
References $result.
Referenced by __construct().
ilFileDataShop::assignFileToPaymentObject | ( | ) |
Definition at line 115 of file class.ilFileDataShop.php.
References $image_new.
Referenced by ilPaymentObjectGUI\updateDetails().
ilFileDataShop::checkFilesExist | ( | $a_files | ) |
Definition at line 158 of file class.ilFileDataShop.php.
References $file.
Referenced by getCurrentImageServerPath(), and getCurrentImageWebPath().
|
private |
Definition at line 85 of file class.ilFileDataShop.php.
Referenced by __construct().
ilFileDataShop::deassignFileFromPaymentObject | ( | ) |
Definition at line 131 of file class.ilFileDataShop.php.
References ilUtil\delDir(), and unlinkFile().
Referenced by ilPaymentObjectGUI\updateDetails().
ilFileDataShop::getCurrentImageServerPath | ( | ) |
Definition at line 61 of file class.ilFileDataShop.php.
References $image_current, and checkFilesExist().
ilFileDataShop::getCurrentImageWebPath | ( | ) |
Definition at line 50 of file class.ilFileDataShop.php.
References $image_current, checkFilesExist(), and ilUtil\getWebspaceDir().
|
private |
Definition at line 72 of file class.ilFileDataShop.php.
References ilFileData\getPath(), and ilUtil\makeDirParents().
Referenced by __construct().
ilFileDataShop::storeUploadedFile | ( | $a_http_post_file | ) |
Definition at line 97 of file class.ilFileDataShop.php.
References ilUtil\moveUploadedFile(), ilUtil\resizeImage(), and unlinkFile().
ilFileDataShop::unlinkFile | ( | $a_filename | ) |
Definition at line 150 of file class.ilFileDataShop.php.
Referenced by deassignFileFromPaymentObject(), and storeUploadedFile().
|
private |
Definition at line 21 of file class.ilFileDataShop.php.
|
private |
Definition at line 19 of file class.ilFileDataShop.php.
Referenced by getCurrentImageServerPath(), and getCurrentImageWebPath().
|
private |
Definition at line 20 of file class.ilFileDataShop.php.
Referenced by assignFileToPaymentObject().
|
private |
Definition at line 17 of file class.ilFileDataShop.php.
Referenced by __construct().
|
private |
Definition at line 18 of file class.ilFileDataShop.php.
const ilFileDataShop::SHOPPATH = 'shop' |
Definition at line 15 of file class.ilFileDataShop.php.