|
ILIAS
release_8 Revision v8.24
|
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using \ilContainer. More...
Inheritance diagram for ilObjectCustomIconImpl:
Collaboration diagram for ilObjectCustomIconImpl: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) | |
Public Member Functions inherited from ilObjectCustomIcon | |
| getSupportedFileExtensions () | |
| saveFromSourceFile (string $sourceFilePath) | |
| saveFromHttpRequest () | |
| copy (int $targetObjId) | |
| delete () | |
| Should be called if a consuming object is removed from system. More... | |
| 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) | |
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 \ilContainer.
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().
Here is the call graph for this function:| ilObjectCustomIconImpl::copy | ( | int | $targetObjId | ) |
Implements ilObjectCustomIcon.
Definition at line 58 of file class.ilObjectCustomIconImpl.php.
References Vendor\Package\$e, ilContainer\_writeContainerSetting(), exists(), and getRelativePath().
Here is the call graph for this function:
|
protected |
| IOException |
Definition at line 174 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory().
Referenced by saveFromSourceFile().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilObjectCustomIconImpl::exists | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 208 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_lookupContainerSetting(), getObjId(), and getRelativePath().
Referenced by copy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCustomIconImpl::getFullPath | ( | ) |
Implements ilObjectCustomIcon.
Definition at line 217 of file class.ilObjectCustomIconImpl.php.
References getRelativePath(), and ilFileUtils\getWebspaceDir().
Here is the call graph for this function:
|
protected |
Definition at line 187 of file class.ilObjectCustomIconImpl.php.
Referenced by createCustomIconDirectory(), createFromImportDir(), delete(), and getRelativePath().
Here is the caller graph for this function:
|
protected |
Definition at line 195 of file class.ilObjectCustomIconImpl.php.
Referenced by getRelativePath().
Here is the caller graph for this function:
|
protected |
Definition at line 53 of file class.ilObjectCustomIconImpl.php.
References $objId.
Referenced by delete(), exists(), persistIconState(), and remove().
Here is the caller graph for this function:
|
protected |
Definition at line 200 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory(), and getIconFileName().
Referenced by copy(), createFromImportDir(), exists(), getFullPath(), remove(), and saveFromSourceFile().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilObjectCustomIconImpl::saveFromSourceFile | ( | string | $sourceFilePath | ) |
| FileAlreadyExistsException | |
| FileNotFoundException | |
| IOException |
Implements ilObjectCustomIcon.
Definition at line 101 of file class.ilObjectCustomIconImpl.php.
References createCustomIconDirectory(), getRelativePath(), and persistIconState().
Here is the call graph for this function:
|
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.