|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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) | ||||||||||
| 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) | ||||||||||
ILIAS\Filesystem\Exception\FileAlreadyExistsException
ILIAS\Filesystem\Exception\FileNotFoundException
| ||||||||||
| 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 | ||||||||||
| 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 () | ||||||||||
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 \ilContainer.
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 Vendor\Package\$e, ilContainer\_writeContainerSetting(), exists(), and getRelativePath().
Here is the call graph for this function:
|
protected |
ILIAS\Filesystem\Exception\IOException
Definition at line 183 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 | ( | $source_dir | ) |
| $source_dir | |
| $filename |
ILIAS\Filesystem\Exception\DirectoryNotFoundException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
Definition at line 257 of file class.ilObjectCustomIconImpl.php.
References getIconDirectory(), getRelativePath(), ilUtil\getWebspaceDir(), persistIconState(), and ilUtil\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 80 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 229 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 241 of file class.ilObjectCustomIconImpl.php.
References getRelativePath(), and ilUtil\getWebspaceDir().
Here is the call graph for this function:
|
protected |
Definition at line 199 of file class.ilObjectCustomIconImpl.php.
Referenced by createCustomIconDirectory(), createFromImportDir(), delete(), and getRelativePath().
Here is the caller graph for this function:
|
protected |
Definition at line 210 of file class.ilObjectCustomIconImpl.php.
Referenced by getRelativePath().
Here is the caller graph for this function:
|
protected |
Definition at line 46 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 218 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 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().
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 169 of file class.ilObjectCustomIconImpl.php.
References ilContainer\_writeContainerSetting(), getObjId(), and getRelativePath().
Here is the call graph for this function:| ilObjectCustomIconImpl::saveFromSourceFile | ( | string | $sourceFilePath | ) |
| string | $sourceFilePath |
ILIAS\Filesystem\Exception\FileAlreadyExistsException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
Implements ilObjectCustomIcon.
Definition at line 103 of file class.ilObjectCustomIconImpl.php.
References createCustomIconDirectory(), getRelativePath(), and persistIconState().
Here is the call graph for this function:
|
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.