ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using . More...
Public Member Functions | ||||||
__construct (Filesystem $webDirectory, FileUpload $uploadService, \ilCustomIconObjectConfiguration $config, int $objId) | ||||||
ilObjectCustomIconImpl constructor. More... | ||||||
copy (int $targetObjId) | ||||||
| ||||||
delete () | ||||||
Should be called if a consuming object is removed from system.The implementer MUST delete all object specific custom icon data (folders, icons, persistent data) More... | ||||||
getSupportedFileExtensions () | ||||||
saveFromSourceFile (string $sourceFilePath) | ||||||
| ||||||
remove () | ||||||
Should be called if a consuming object just wants to delete the icon The implementer MUST only delete the icon itself and corresponding persistent data (e.g.stored in a database) More... | ||||||
exists () | ||||||
| ||||||
getFullPath () | ||||||
| ||||||
createFromImportDir ($source_dir) | ||||||
Public Member Functions inherited from ilObjectCustomIcon | ||||||
saveFromHttpRequest () | ||||||
Data Fields | |
const | ICON_BASENAME = 'icon_custom' |
Protected Member Functions | |
getObjId () | |
persistIconState (string $fileName) | |
createCustomIconDirectory () | |
getIconDirectory () | |
getIconFileName () | |
getRelativePath () | |
Protected Attributes | |
$webDirectory | |
$upload | |
$config | |
$objId | |
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using .
Definition at line 11 of file class.ilObjectCustomIconImpl.php.
ilObjectCustomIconImpl::__construct | ( | Filesystem | $webDirectory, |
FileUpload | $uploadService, | ||
\ilCustomIconObjectConfiguration | $config, | ||
int | $objId | ||
) |
ilObjectCustomIconImpl constructor.
Filesystem | $webDirectory | |
FileUpload | $uploadService | |
ilCustomIconObjectConfiguration | $config | |
$objId |
Definition at line 34 of file class.ilObjectCustomIconImpl.php.
References $config, $objId, and $webDirectory.
ilObjectCustomIconImpl::copy | ( | int | $targetObjId | ) |
int | $targetObjId |
Implements ilObjectCustomIcon.
Definition at line 54 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_writeContainerSetting(), exists(), and getRelativePath().
|
protected |
Definition at line 183 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory().
Referenced by saveFromSourceFile().
ilObjectCustomIconImpl::createFromImportDir | ( | $source_dir | ) |
$source_dir | |
$filename |
Definition at line 257 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory(), getRelativePath(), ilUtil\getWebspaceDir(), persistIconState(), and ilUtil\rCopy().
ilObjectCustomIconImpl::delete | ( | ) |
Should be called if a consuming object is removed from system.The implementer MUST delete all object specific custom icon data (folders, icons, persistent data)
Implements ilObjectCustomIcon.
Definition at line 80 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_deleteContainerSettings(), getIconDirectory(), and getObjId().
ilObjectCustomIconImpl::exists | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 229 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_lookupContainerSetting(), getObjId(), and getRelativePath().
Referenced by copy().
ilObjectCustomIconImpl::getFullPath | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 241 of file class.ilObjectCustomIconImpl.php.
References getRelativePath(), and ilUtil\getWebspaceDir().
|
protected |
Definition at line 199 of file class.ilObjectCustomIconImpl.php.
References getObjId().
Referenced by createCustomIconDirectory(), createFromImportDir(), delete(), getRelativePath(), and saveFromSourceFile().
|
protected |
Definition at line 210 of file class.ilObjectCustomIconImpl.php.
Referenced by getRelativePath(), and saveFromSourceFile().
|
protected |
Definition at line 46 of file class.ilObjectCustomIconImpl.php.
References $objId.
Referenced by delete(), exists(), getIconDirectory(), persistIconState(), and remove().
|
protected |
Definition at line 218 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory(), and getIconFileName().
Referenced by copy(), createFromImportDir(), exists(), getFullPath(), remove(), and saveFromSourceFile().
ilObjectCustomIconImpl::getSupportedFileExtensions | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 95 of file class.ilObjectCustomIconImpl.php.
|
protected |
string | $fileName |
Definition at line 157 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_writeContainerSetting(), and getObjId().
Referenced by createFromImportDir(), and saveFromSourceFile().
ilObjectCustomIconImpl::remove | ( | ) |
Should be called if a consuming object just wants to delete the icon The implementer MUST only delete the icon itself and corresponding persistent data (e.g.stored in a database)
Implements ilObjectCustomIcon.
Definition at line 169 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_writeContainerSetting(), getObjId(), and getRelativePath().
ilObjectCustomIconImpl::saveFromSourceFile | ( | string | $sourceFilePath | ) |
string | $sourceFilePath |
Implements ilObjectCustomIcon.
Definition at line 103 of file class.ilObjectCustomIconImpl.php.
References $result, createCustomIconDirectory(), getIconDirectory(), getIconFileName(), getRelativePath(), ILIAS\FileUpload\DTO\ProcessingStatus\OK, persistIconState(), and ilObjectCustomIcon\saveFromHttpRequest().
|
protected |
Definition at line 22 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct(), and getObjId().
|
protected |
Definition at line 19 of file class.ilObjectCustomIconImpl.php.
|
protected |
Definition at line 16 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct().
const ilObjectCustomIconImpl::ICON_BASENAME = 'icon_custom' |
Definition at line 13 of file class.ilObjectCustomIconImpl.php.