ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDiskQuotaHandler. More...
Static Public Member Functions | |
static | handleUpdatedSourceObject ($a_src_obj_type, $a_src_obj_id, $a_src_filesize, $a_owner_obj_ids=null, $a_is_prtf=false) |
Find and update/create all related entries for source object. More... | |
static | deleteByOwner ($a_owner_id) |
Delete all entries for owner. More... | |
static | getFilesizeByOwner ($a_owner_id) |
Get current storage size for owner. More... | |
static | getFilesizeByTypeAndOwner ($a_owner_id) |
Get current storage size for owner (grouped by type) More... | |
static | isUploadPossible ($a_additional_size=null) |
static | getStatusLegend () |
Static Protected Member Functions | |
static | deleteEntry ($a_owner_id, $a_src_obj_type, $a_src_obj_id) |
Delete entry for owner and source object. More... | |
static | getOwnersBySourceObject ($a_src_obj_type, $a_src_obj_id) |
Get owner ids by source object. More... | |
static | getSourceObjectsByOwner ($a_owner_id) |
Get all source objects for owner. More... | |
static | handleEntry ($a_owner_id, $a_src_obj_type, $a_src_obj_id, $a_src_filesize) |
Update/create owner-related entry of source object. More... | |
Class ilDiskQuotaHandler.
Definition at line 12 of file class.ilDiskQuotaHandler.php.
|
static |
Delete all entries for owner.
int | $a_owner_id |
Definition at line 99 of file class.ilDiskQuotaHandler.php.
References $ilDB.
Referenced by ilObjUser\delete().
|
staticprotected |
Delete entry for owner and source object.
int | $a_owner_id | |
string | $a_src_obj_type | |
int | $a_src_obj_id |
Definition at line 84 of file class.ilDiskQuotaHandler.php.
References $ilDB.
|
static |
Get current storage size for owner.
int | $a_owner_id |
Definition at line 194 of file class.ilDiskQuotaHandler.php.
Referenced by getStatusLegend(), ilObjUserGUI\getValues(), and isUploadPossible().
|
static |
Get current storage size for owner (grouped by type)
int | $a_owner_id |
Definition at line 211 of file class.ilDiskQuotaHandler.php.
References $ilDB, $res, and $row.
Referenced by ilObjUserGUI\getValues().
|
staticprotected |
Get owner ids by source object.
string | $a_src_obj_type | |
int | $a_src_obj_id |
Definition at line 114 of file class.ilDiskQuotaHandler.php.
References $ilDB, $res, and $row.
|
staticprotected |
Get all source objects for owner.
int | $a_owner_id |
Definition at line 137 of file class.ilDiskQuotaHandler.php.
References $ilDB, $res, and $row.
|
static |
Definition at line 255 of file class.ilDiskQuotaHandler.php.
References $ilUser, $lng, ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilDiskQuotaChecker\_lookupPersonalWorkspaceDiskQuota(), ilUtil\formatSize(), and getFilesizeByOwner().
Referenced by ilImageFileInputGUI\insert(), ilDragDropFileInputGUI\render(), ilFileInputGUI\render(), and ilPortfolioRepositoryGUI\show().
|
staticprotected |
Update/create owner-related entry of source object.
int | $a_owner_id | |
int | $a_src_obj_type | |
int | $a_src_obj_id | |
int | $a_src_filesize |
Definition at line 161 of file class.ilDiskQuotaHandler.php.
References $ilDB.
|
static |
Find and update/create all related entries for source object.
string | $a_src_obj_type | |
int | $a_src_obj_id | |
int | $a_src_filesize | |
array | $a_owner_obj_ids |
Definition at line 22 of file class.ilDiskQuotaHandler.php.
Referenced by ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), ilObjMediaObject\handleQuotaUpdate(), ilObjBlog\handleQuotaUpdate(), and ilObjFile\handleQuotaUpdate().
|
static |
Definition at line 228 of file class.ilDiskQuotaHandler.php.
References $ilUser, ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilDiskQuotaChecker\_lookupPersonalWorkspaceDiskQuota(), and getFilesizeByOwner().
Referenced by ilObjTestVerificationGUI\create(), ilObjCourseVerificationGUI\create(), ilObjExerciseVerificationGUI\create(), ilObjSCORMVerificationGUI\create(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjFileGUI\initCreationForms(), ilObjFileGUI\initPropertiesForm(), ilImageFileInputGUI\insert(), ilDragDropFileInputGUI\render(), and ilFileInputGUI\render().