ILIAS
release_8 Revision v8.19
|
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using . More...
Public Member Functions | |
__construct (Filesystem $webDirectory, FileUpload $uploadService, ilCustomIconObjectConfiguration $config, int $objId) | |
copy (int $targetObjId) | |
delete () | |
Should be called if a consuming object is removed from system. 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. More... | |
exists () | |
getFullPath () | |
createFromImportDir (string $source_dir) | |
![]() | |
saveFromHttpRequest () | |
Protected Member Functions | |
getObjId () | |
persistIconState (string $fileName) | |
createCustomIconDirectory () | |
getIconDirectory () | |
getIconFileName () | |
getRelativePath () | |
Protected Attributes | |
Filesystem | $webDirectory |
FileUpload | $upload |
ilCustomIconObjectConfiguration | $config |
int | $objId |
Private Attributes | |
const | ICON_BASENAME = 'icon_custom' |
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using .
Definition at line 31 of file class.ilObjectCustomIconImpl.php.
ilObjectCustomIconImpl::__construct | ( | Filesystem | $webDirectory, |
FileUpload | $uploadService, | ||
ilCustomIconObjectConfiguration | $config, | ||
int | $objId | ||
) |
Definition at line 40 of file class.ilObjectCustomIconImpl.php.
References $config, $objId, $webDirectory, and ILIAS\Repository\upload().
ilObjectCustomIconImpl::copy | ( | int | $targetObjId | ) |
Implements ilObjectCustomIcon.
Definition at line 58 of file class.ilObjectCustomIconImpl.php.
References Vendor\Package\$e, ilContainer\_writeContainerSetting(), exists(), and getRelativePath().
|
protected |
IOException |
Definition at line 174 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory().
Referenced by saveFromSourceFile().
ilObjectCustomIconImpl::createFromImportDir | ( | string | $source_dir | ) |
DirectoryNotFoundException | |
FileNotFoundException | |
IOException |
Implements ilObjectCustomIcon.
Definition at line 226 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory(), getRelativePath(), ilFileUtils\getWebspaceDir(), persistIconState(), and ilFileUtils\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 81 of file class.ilObjectCustomIconImpl.php.
References Vendor\Package\$e, ilContainer\_deleteContainerSettings(), getIconDirectory(), and getObjId().
ilObjectCustomIconImpl::exists | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 208 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_lookupContainerSetting(), getObjId(), and getRelativePath().
Referenced by copy().
ilObjectCustomIconImpl::getFullPath | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 217 of file class.ilObjectCustomIconImpl.php.
References getRelativePath(), and ilFileUtils\getWebspaceDir().
|
protected |
Definition at line 187 of file class.ilObjectCustomIconImpl.php.
References getObjId().
Referenced by createCustomIconDirectory(), createFromImportDir(), delete(), getRelativePath(), and saveFromSourceFile().
|
protected |
Definition at line 195 of file class.ilObjectCustomIconImpl.php.
Referenced by getRelativePath(), and saveFromSourceFile().
|
protected |
Definition at line 53 of file class.ilObjectCustomIconImpl.php.
References $objId.
Referenced by delete(), exists(), getIconDirectory(), persistIconState(), and remove().
|
protected |
Definition at line 200 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 96 of file class.ilObjectCustomIconImpl.php.
|
protected |
Definition at line 151 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 160 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_writeContainerSetting(), getObjId(), and getRelativePath().
ilObjectCustomIconImpl::saveFromSourceFile | ( | string | $sourceFilePath | ) |
FileAlreadyExistsException | |
FileNotFoundException | |
IOException |
Implements ilObjectCustomIcon.
Definition at line 101 of file class.ilObjectCustomIconImpl.php.
References createCustomIconDirectory(), getIconDirectory(), getIconFileName(), getRelativePath(), persistIconState(), ilObjectCustomIcon\saveFromHttpRequest(), and ILIAS\Repository\upload().
|
protected |
Definition at line 37 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct(), and getObjId().
|
protected |
Definition at line 36 of file class.ilObjectCustomIconImpl.php.
|
protected |
Definition at line 35 of file class.ilObjectCustomIconImpl.php.
Referenced by __construct().
|
private |
Definition at line 33 of file class.ilObjectCustomIconImpl.php.