ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
static | deleteByOwner ($a_owner_id) |
Delete all entries for owner. | |
static | getFilesizeByOwner ($a_owner_id) |
Get current storage size for owner. | |
static | getFilesizeByTypeAndOwner ($a_owner_id) |
Get current storage size for owner (grouped by type) | |
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. | |
static | getOwnersBySourceObject ($a_src_obj_type, $a_src_obj_id) |
Get owner ids by source object. | |
static | getSourceObjectsByOwner ($a_owner_id) |
Get all source objects for owner. | |
static | handleEntry ($a_owner_id, $a_src_obj_type, $a_src_obj_id, $a_src_filesize) |
Update/create owner-related entry of source object. |
Class ilDiskQuotaHandler.
Definition at line 12 of file class.ilDiskQuotaHandler.php.
|
static |
Delete all entries for owner.
int | $a_owner_id |
Definition at line 95 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 80 of file class.ilDiskQuotaHandler.php.
References $ilDB.
Referenced by handleUpdatedSourceObject().
|
static |
Get current storage size for owner.
int | $a_owner_id |
Definition at line 194 of file class.ilDiskQuotaHandler.php.
Referenced by getStatusLegend(), ilObjUserGUI\initForm(), 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\initForm().
|
staticprotected |
Get owner ids by source object.
string | $a_src_obj_type | |
int | $a_src_obj_id |
Definition at line 110 of file class.ilDiskQuotaHandler.php.
References $ilDB, $res, and $row.
Referenced by handleUpdatedSourceObject().
|
staticprotected |
Get all source objects for owner.
int | $a_owner_id |
Definition at line 134 of file class.ilDiskQuotaHandler.php.
References $ilDB, $res, and $row.
Referenced by handleEntry().
|
static |
Definition at line 259 of file class.ilDiskQuotaHandler.php.
References $ilUser, $lng, ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilDiskQuotaChecker\_lookupPersonalWorkspaceDiskQuota(), ilFormat\formatSize(), and getFilesizeByOwner().
Referenced by ilImageFileInputGUI\insert(), ilDragDropFileInputGUI\render(), and ilFileInputGUI\render().
|
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 159 of file class.ilDiskQuotaHandler.php.
References $ilDB, and getSourceObjectsByOwner().
Referenced by handleUpdatedSourceObject().
|
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.
References $ilDB, $row, deleteEntry(), getOwnersBySourceObject(), and handleEntry().
Referenced by ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), ilObjMediaObject\handleQuotaUpdate(), ilObjBlog\handleQuotaUpdate(), and ilObjFile\handleQuotaUpdate().
|
static |
Definition at line 229 of file class.ilDiskQuotaHandler.php.
References $ilUser, ilDiskQuotaActivationChecker\_isPersonalWorkspaceActive(), ilDiskQuotaChecker\_lookupPersonalWorkspaceDiskQuota(), and getFilesizeByOwner().
Referenced by ilObjTestVerificationGUI\create(), ilObjExerciseVerificationGUI\create(), ilObjCourseVerificationGUI\create(), ilObjSCORMVerificationGUI\create(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilObjFileGUI\initCreationForms(), ilObjFileGUI\initPropertiesForm(), ilImageFileInputGUI\insert(), ilDragDropFileInputGUI\render(), and ilFileInputGUI\render().