ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using . More...
Public Member Functions | |
__construct (protected Filesystem $filesystem, protected FileUpload $upload, protected ilObjectCustomIconConfiguration $config, protected int $objId) | |
copy (int $targetObjId) | |
delete () | |
getSupportedFileExtensions () | |
saveFromSourceFile (string $sourceFilePath) | |
saveFromTempFileName (string $tempfile_name) | |
remove () | |
exists () | |
getFullPath () | |
createFromImportDir (string $source_dir) | |
Protected Member Functions | |
getObjId () | |
persistIconState (string $fileName) | |
createCustomIconDirectory () | |
getIconDirectory () | |
getIconFileName () | |
getRelativePath () | |
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.ilObjectCustomIcon.php.
ilObjectCustomIcon::__construct | ( | protected Filesystem | $filesystem, |
protected FileUpload | $upload, | ||
protected ilObjectCustomIconConfiguration | $config, | ||
protected int | $objId | ||
) |
Definition at line 35 of file class.ilObjectCustomIcon.php.
ilObjectCustomIcon::copy | ( | int | $targetObjId | ) |
Definition at line 48 of file class.ilObjectCustomIcon.php.
References Vendor\Package\$e, ilContainer\_writeContainerSetting(), exists(), ILIAS\Repository\filesystem(), and getRelativePath().
|
protected |
IOException |
Definition at line 183 of file class.ilObjectCustomIcon.php.
References ILIAS\Repository\filesystem(), and getIconDirectory().
Referenced by saveFromSourceFile(), and saveFromTempFileName().
ilObjectCustomIcon::createFromImportDir | ( | string | $source_dir | ) |
Definition at line 235 of file class.ilObjectCustomIcon.php.
References getIconDirectory(), getRelativePath(), ilFileUtils\getWebspaceDir(), persistIconState(), and ilFileUtils\rCopy().
ilObjectCustomIcon::delete | ( | ) |
Definition at line 71 of file class.ilObjectCustomIcon.php.
References Vendor\Package\$e, ilContainer\_deleteContainerSettings(), ILIAS\Repository\filesystem(), getIconDirectory(), and getObjId().
ilObjectCustomIcon::exists | ( | ) |
Definition at line 217 of file class.ilObjectCustomIcon.php.
References ilContainer\_lookupContainerSetting(), ILIAS\Repository\filesystem(), getObjId(), and getRelativePath().
Referenced by copy().
ilObjectCustomIcon::getFullPath | ( | ) |
Definition at line 226 of file class.ilObjectCustomIcon.php.
References getRelativePath(), and ilFileUtils\getWebspaceDir().
Referenced by saveFromTempFileName().
|
protected |
Definition at line 196 of file class.ilObjectCustomIcon.php.
References getObjId().
Referenced by createCustomIconDirectory(), createFromImportDir(), delete(), getRelativePath(), and saveFromTempFileName().
|
protected |
Definition at line 204 of file class.ilObjectCustomIcon.php.
Referenced by getRelativePath(), and saveFromTempFileName().
|
protected |
Definition at line 43 of file class.ilObjectCustomIcon.php.
References $objId.
Referenced by delete(), exists(), getIconDirectory(), persistIconState(), and remove().
|
protected |
Definition at line 209 of file class.ilObjectCustomIcon.php.
References getIconDirectory(), and getIconFileName().
Referenced by copy(), createFromImportDir(), exists(), getFullPath(), remove(), saveFromSourceFile(), and saveFromTempFileName().
ilObjectCustomIcon::getSupportedFileExtensions | ( | ) |
Definition at line 86 of file class.ilObjectCustomIcon.php.
|
protected |
Definition at line 160 of file class.ilObjectCustomIcon.php.
References ilContainer\_writeContainerSetting(), ILIAS\Repository\filesystem(), and getObjId().
Referenced by createFromImportDir(), saveFromSourceFile(), and saveFromTempFileName().
ilObjectCustomIcon::remove | ( | ) |
Definition at line 169 of file class.ilObjectCustomIcon.php.
References ilContainer\_writeContainerSetting(), ILIAS\Repository\filesystem(), getObjId(), and getRelativePath().
ilObjectCustomIcon::saveFromSourceFile | ( | string | $sourceFilePath | ) |
Definition at line 91 of file class.ilObjectCustomIcon.php.
References createCustomIconDirectory(), ILIAS\Repository\filesystem(), getRelativePath(), and persistIconState().
ilObjectCustomIcon::saveFromTempFileName | ( | string | $tempfile_name | ) |
Definition at line 106 of file class.ilObjectCustomIcon.php.
References createCustomIconDirectory(), ILIAS\Repository\filesystem(), ilFileUtils\getDataDir(), getFullPath(), getIconDirectory(), getIconFileName(), getRelativePath(), persistIconState(), and ILIAS\Repository\upload().
|
private |
Definition at line 33 of file class.ilObjectCustomIcon.php.