|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilObjFile:
Collaboration diagram for ilObjFile:Public Member Functions | |
| __construct ($a_id=0, $a_call_by_reference=true) | |
| ilObjFile constructor. More... | |
| initType () | |
| createProperties ($a_upload=false) | |
| The basic properties of a file object are stored in table object_data. More... | |
| setNoMetaDataCreation ($a_status) | |
| getDirectory ($a_version=0) | |
| createDirectory () | |
| raiseUploadError ($a_raise=true) | |
| replaceFile ($a_upload_file, $a_filename) | |
| addFileVersion ($a_upload_file, $a_filename) | |
| copy ($a_source, $a_destination) | |
| copy file More... | |
| clearDataDirectory () | |
| clear data directory More... | |
| deleteVersions ($a_hist_entry_ids=null) | |
| Deletes the specified history entries or all entries if no ids are specified. More... | |
| setFileName ($a_name) | |
| getFileName () | |
| setFileType ($a_type) | |
| getFileType () | |
| setFileSize ($a_size) | |
| getFileSize () | |
| setAction ($a_action) | |
| getAction () | |
| setRollbackVersion ($a_rollback_version) | |
| getRollbackVersion () | |
| setRollbackUserId ($a_rollback_user_id) | |
| getRollbackUserId () | |
| getDiskUsage () | |
| Gets the disk usage of the object in bytes. More... | |
| getFile ($a_hist_entry_id=null) | |
| setVersion ($a_version) | |
| getVersion () | |
| setMaxVersion ($a_max_version) | |
| getMaxVersion () | |
| setMode ($a_mode) | |
| mode is object or filelist More... | |
| getMode () | |
| mode is object or filelist More... | |
| determineFileSize ($a_hist_entry_id=null) | |
| Determine File Size. More... | |
| getFileExtension () | |
| Returns the extension of the file name converted to lower-case. More... | |
| isInline () | |
| Returns true, if this file should be displayed inline in a browser window. More... | |
| isHidden () | |
| Returns true, if this file should be hidden in the repository view. More... | |
| guessFileType ($a_file="") | |
| Guesses the file type based on the current values returned by getFileType() and getFileExtension(). More... | |
| export ($a_target_dir) | |
| export files of object to target directory note: target directory must be the export target directory, "/objects/il_<inst>_file_<file_id>/..." will be appended to this directory More... | |
| getUsages () | |
| get all usages of file object More... | |
| getXMLZip () | |
| addNewsNotification ($a_lang_var) | |
| initFileStorage () | |
| init file storage object More... | |
| storeUnzipedFile ($a_upload_file, $a_filename) | |
| storeUnzipedFile More... | |
| checkFileExtension ($new_filename, $new_title) | |
| Check if the file extension does still exist after an update of the title. More... | |
| getVersions ($version_ids=null) | |
| Gets the file versions for this object. More... | |
| getSpecificVersion ($version_id) | |
| Gets a specific file version. More... | |
| rollback ($version_id) | |
| Makes the specified version the current one and returns theSummary of rollbackVersion. More... | |
| compareVersions ($v1, $v2) | |
| Compares two file versions. More... | |
| setRating ($a_value) | |
| hasRating () | |
| getPageCount () | |
| setPageCount ($page_count) | |
Public Member Functions inherited from ilObject2 | |
| __construct ($a_id=0, $a_reference=true) | |
| Constructor @access public. More... | |
| withReferences () | |
| determines wehter objects are referenced or not (got ref ids or not) More... | |
| read () | |
| Read data from db. More... | |
| setRefId ($a_id) | |
| set reference id @access public More... | |
| getRefId () | |
| get reference id @access public More... | |
| getType () | |
| get object type @access public More... | |
| setType ($a_type) | |
| set object type @access public More... | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| get object title @access public More... | |
| getUntranslatedTitle () | |
| get untranslated object title @access public More... | |
| setTitle ($a_title) | |
| set object title More... | |
| getDescription () | |
| get object description More... | |
| setDescription ($a_desc) | |
| set object description More... | |
| getLongDescription () | |
| get object long description (stored in object_description) More... | |
| getImportId () | |
| get import id More... | |
| setImportId ($a_import_id) | |
| set import id More... | |
| getOwner () | |
| get object owner More... | |
| getOwnerName () | |
| setOwner ($a_owner) | |
| set object owner More... | |
| getCreateDate () | |
| get create date @access public More... | |
| getLastUpdateDate () | |
| get last update date @access public More... | |
| create ($a_clone_mode=false) | |
| update () | |
| update object in db More... | |
| MDUpdateListener ($a_element) | |
| Meta data update listener. More... | |
| createMetaData () | |
| create meta data entry More... | |
| updateMetaData () | |
| update meta data entry More... | |
| deleteMetaData () | |
| delete meta data entry More... | |
| updateOwner () | |
| update owner of object in db More... | |
| putInTree ($a_parent_ref) | |
| maybe this method should be in tree object!? More... | |
| setPermissions ($a_parent_ref) | |
| set permissions of object More... | |
| createReference () | |
| creates reference for object More... | |
| countReferences () | |
| count references of object More... | |
| delete () | |
| initDefaultRoles () | |
| init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) @access public More... | |
| setRegisterMode ($a_bool) | |
| isUserRegistered ($a_user_id=0) | |
| requireRegistration () | |
| appendCopyInfo ($a_target_id, $a_copy_id) | |
| Prepend Copy info if object with same name exists in that container. More... | |
| cloneMetaData ($target_obj) | |
| Copy meta data. More... | |
| cloneObject ($a_target_id, $a_copy_id=null, $a_omit_tree=false) | |
| cloneDependencies ($a_target_id, $a_copy_id) | |
| Clone object dependencies. More... | |
Public Member Functions inherited from ilObject | |
| __construct ($a_id=0, $a_reference=true) | |
| Constructor @access public. More... | |
| withReferences () | |
| determines wehter objects are referenced or not (got ref ids or not) More... | |
| read () | |
| read object data from db into object More... | |
| getId () | |
| get object id @access public More... | |
| setId ($a_id) | |
| set object id @access public More... | |
| setRefId ($a_id) | |
| set reference id @access public More... | |
| getRefId () | |
| get reference id @access public More... | |
| getType () | |
| get object type @access public More... | |
| setType ($a_type) | |
| set object type @access public More... | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| get object title @access public More... | |
| getUntranslatedTitle () | |
| get untranslated object title @access public More... | |
| setTitle ($a_title) | |
| set object title More... | |
| getDescription () | |
| get object description More... | |
| setDescription ($a_desc) | |
| set object description More... | |
| getLongDescription () | |
| get object long description (stored in object_description) More... | |
| getImportId () | |
| get import id More... | |
| setImportId ($a_import_id) | |
| set import id More... | |
| setOfflineStatus ($a_status) | |
| Set offline status. More... | |
| getOfflineStatus () | |
| Get offline status. More... | |
| supportsOfflineHandling () | |
| Check whether object supports offline handling. More... | |
| getOwner () | |
| get object owner More... | |
| getOwnerName () | |
| setOwner ($a_owner) | |
| set object owner More... | |
| getCreateDate () | |
| get create date @access public More... | |
| getLastUpdateDate () | |
| get last update date @access public More... | |
| getDiskUsage () | |
| Gets the disk usage of the object in bytes. More... | |
| create () | |
| create More... | |
| update () | |
| update object in db More... | |
| MDUpdateListener ($a_element) | |
| Meta data update listener. More... | |
| createMetaData () | |
| create meta data entry More... | |
| updateMetaData () | |
| update meta data entry More... | |
| deleteMetaData () | |
| delete meta data entry More... | |
| updateOwner () | |
| update owner of object in db More... | |
| putInTree ($a_parent_ref) | |
| maybe this method should be in tree object!? More... | |
| setPermissions ($a_parent_ref) | |
| set permissions of object More... | |
| setParentRolePermissions ($a_parent_ref) | |
| Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
| createReference () | |
| creates reference for object More... | |
| countReferences () | |
| count references of object More... | |
| initDefaultRoles () | |
| init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) @access public More... | |
| applyDidacticTemplate ($a_tpl_id) | |
| Apply template. More... | |
| setRegisterMode ($a_bool) | |
| isUserRegistered ($a_user_id=0) | |
| requireRegistration () | |
| getXMLZip () | |
| getHTMLDirectory () | |
| appendCopyInfo ($a_target_id, $a_copy_id) | |
| Prepend Copy info if object with same name exists in that container. More... | |
| cloneDependencies ($a_target_id, $a_copy_id) | |
| Clone object dependencies. More... | |
| cloneMetaData ($target_obj) | |
| Copy meta data. More... | |
| getPossibleSubObjects ($a_filter=true) | |
| get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
| static | _writeFileType ($a_id, $a_format) |
| static | _lookupFileName ($a_id) |
| static | _lookupFileSize ($a_id) |
| Lookups the file size of the file in bytes. More... | |
| static | _lookupVersion ($a_id) |
| lookup version More... | |
| static | _deleteAllUsages ($a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-") |
| static delete all usages of More... | |
| static | _saveUsage ($a_file_id, $a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-") |
| save usage More... | |
| static | _getFilesOfObject ($a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-") |
| get all files of an object More... | |
| static | _lookupAbsolutePath ($obj_id, $a_version=null) |
Static Public Member Functions inherited from ilObject2 | |
| static | _lookupObjIdByImportId ($a_import_id) |
| static | _lookupOwnerName ($a_owner_id) |
| lookup owner name for owner id More... | |
| static | _getIdForImportId ($a_import_id) |
| get current object id for import id (static) More... | |
| static | _getAllReferences ($a_id) |
| get all reference ids of object More... | |
| static | _lookupTitle ($a_id) |
| lookup object title More... | |
| static | _lookupOwner ($a_id) |
| lookup object owner More... | |
| static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
| static | _lookupDescription ($a_id) |
| lookup object description More... | |
| static | _lookupLastUpdate ($a_id, $a_as_string=false) |
| lookup last update More... | |
| static | _getLastUpdateOfObjects ($a_objs) |
| Get last update for a set of media objects. More... | |
| static | _lookupObjId ($a_id) |
| static | _setDeletedDate ($a_ref_id, $a_deleted_by) |
| static | _resetDeletedDate ($a_ref_id) |
| only called in ilObjectGUI::insertSavedNodes More... | |
| static | _lookupDeletedDate ($a_ref_id) |
| only called in ilObjectGUI::insertSavedNodes More... | |
| static | _writeTitle ($a_obj_id, $a_title) |
| write title to db (static) More... | |
| static | _writeDescription ($a_obj_id, $a_desc) |
| write description to db (static) More... | |
| static | _writeImportId ($a_obj_id, $a_import_id) |
| write import id to db (static) More... | |
| static | _lookupType ($a_id, $a_reference=false) |
| lookup object type More... | |
| static | _isInTrash ($a_ref_id) |
| checks wether object is in trash More... | |
| static | _hasUntrashedReference ($a_obj_id) |
| checks wether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId ($a_ref_id) |
| lookup object id More... | |
| static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists ($a_id, $a_reference=false, $a_type=null) |
| checks if an object exists in object_data@access public More... | |
| static | _getObjectsByType ($a_obj_type="", $a_owner="") |
| Get objects by type. More... | |
| static | _prepareCloneSelection ($a_ref_ids, $new_type, $a_show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId ($a_import_id) |
| static | _lookupImportId ($a_obj_id) |
| static | _lookupOwnerName ($a_owner_id) |
| lookup owner name for owner id More... | |
| static | _getIdForImportId ($a_import_id) |
| get current object id for import id (static) More... | |
| static | _getAllReferences ($a_id) |
| get all reference ids of object More... | |
| static | _lookupTitle ($a_id) |
| lookup object title More... | |
| static | lookupOfflineStatus ($a_obj_id) |
| Lookup offline status using objectDataCache. More... | |
| static | _lookupOwner ($a_id) |
| lookup object owner More... | |
| static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
| static | _lookupDescription ($a_id) |
| lookup object description More... | |
| static | _lookupLastUpdate ($a_id, $a_as_string=false) |
| lookup last update More... | |
| static | _getLastUpdateOfObjects ($a_objs) |
| Get last update for a set of media objects. More... | |
| static | _lookupObjId ($a_id) |
| static | _setDeletedDate ($a_ref_id, $a_deleted_by) |
| static | setDeletedDates ($a_ref_ids, $a_user_id) |
| Set deleted date. More... | |
| static | _resetDeletedDate ($a_ref_id) |
| only called in ilObjectGUI::insertSavedNodes More... | |
| static | _lookupDeletedDate ($a_ref_id) |
| only called in ilObjectGUI::insertSavedNodes More... | |
| static | _writeTitle ($a_obj_id, $a_title) |
| write title to db (static) More... | |
| static | _writeDescription ($a_obj_id, $a_desc) |
| write description to db (static) More... | |
| static | _writeImportId ($a_obj_id, $a_import_id) |
| write import id to db (static) More... | |
| static | _lookupType ($a_id, $a_reference=false) |
| lookup object type More... | |
| static | _isInTrash ($a_ref_id) |
| checks wether object is in trash More... | |
| static | _hasUntrashedReference ($a_obj_id) |
| checks wether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId ($a_ref_id) |
| lookup object id More... | |
| static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists ($a_id, $a_reference=false, $a_type=null) |
| checks if an object exists in object_data@access public More... | |
| static | _getObjectsByType ($a_obj_type="", $a_owner="") |
| Get objects by type. More... | |
| static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
| Collect deletion dependencies. More... | |
| static | getDeletionDependencies ($a_obj_id) |
| Get deletion dependencies. More... | |
| static | getLongDescriptions (array $a_obj_ids) |
| Get long description data. More... | |
| static | getAllOwnedRepositoryObjects ($a_user_id) |
| Get all ids of objects user owns. More... | |
| static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
| Try to fix missing object titles. More... | |
| static | _lookupCreationDate ($a_id) |
| Lookup creation date. More... | |
| static | hasAutoRating ($a_type, $a_ref_id) |
| Check if auto rating is active for parent group/course. More... | |
Data Fields | |
| const | MODE_FILELIST = "filelist" |
| const | MODE_OBJECT = "object" |
| $raise_upload_error | |
| $mode = self::MODE_OBJECT | |
Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 |
| max length of object title More... | |
| const | DESC_LENGTH = 128 |
| $lng | |
| $id | |
| $ref_id | |
| $type | |
| $title | |
| $untranslatedTitle | |
| $desc | |
| $long_desc | |
| $owner | |
| $create_date | |
| $last_update | |
| $import_id | |
| $register = false | |
| $referenced | |
| $objectList | |
| $max_title | |
| $max_desc | |
| $add_dots | |
Protected Member Functions | |
| doCreate ($a_upload=false) | |
| create object More... | |
| beforeCreateMetaData () | |
| beforeUpdateMetaData () | |
| doCreateMetaData () | |
| create file object meta data More... | |
| beforeMDUpdateListener ($a_element) | |
| doMDUpdateListener ($a_element) | |
| doRead () | |
| beforeUpdate () | |
| doUpdate () | |
| doUpdateMetaData () | |
| update meta data More... | |
| doCloneObject ($a_new_obj, $a_target_id, $a_copy_id=0) | |
| Clone. More... | |
| beforeDelete () | |
| doDelete () | |
| updateWithVersion ($version) | |
| Updates the file object with the specified file version. More... | |
| createPreview ($force=false) | |
| Creates a preview for the file object. More... | |
| deletePreview () | |
| Deletes the preview of the file object. More... | |
Protected Member Functions inherited from ilObject2 | |
| initType () | |
| doRead () | |
| doCreate () | |
| beforeCreate () | |
| doUpdate () | |
| beforeUpdate () | |
| doMDUpdateListener ($a_element) | |
| beforeMDUpdateListener ($a_element) | |
| doCreateMetaData () | |
| beforeCreateMetaData () | |
| doUpdateMetaData () | |
| beforeUpdateMetaData () | |
| doDelete () | |
| beforeDelete () | |
| doCloneObject ($new_obj, $a_target_id, $a_copy_id=null) | |
| beforeCloneObject () | |
Static Protected Member Functions | |
| static | handleQuotaUpdate (ilObjFile $a_file) |
Protected Attributes | |
| $no_meta_data_creation | |
| $filename = '' | |
| $filetype = '' | |
| $filemaxsize = "20000000" | |
| $filesize | |
| $page_count = 0 | |
| $rating = false | |
| $log = null | |
| $version = 1 | |
| $max_version = 1 | |
| $action = null | |
| $rollback_version = null | |
| $rollback_user_id = null | |
Protected Attributes inherited from ilObject | |
| $objDefinition | |
| $db | |
| $log | |
| $error | |
| $tree | |
| $app_event_handler | |
| $rbacadmin | |
| $rbacreview | |
Private Member Functions | |
| parseInfoParams ($entry) | |
| Parses the info parameters ("info_params") of the specified history entry. More... | |
| getArrayForDatabase () | |
Private Attributes | |
| $file_storage = null | |
| ilObjFile::__construct | ( | $a_id = 0, |
|
$a_call_by_reference = true |
|||
| ) |
ilObjFile constructor.
| int | $a_id | ID of the object, ref_id or obj_id possible |
| bool | $a_call_by_reference | defines the $a_id a ref_id |
Reimplemented from ilObject2.
Definition at line 98 of file class.ilObjFile.php.
References ILIAS\GlobalScreen\Provider\__construct(), ilObject\getId(), ilLoggerFactory\getLogger(), and initFileStorage().
Here is the call graph for this function:
|
static |
static delete all usages of
Definition at line 1059 of file class.ilObjFile.php.
References $a_type, $DIC, $ilDB, and handleQuotaUpdate().
Referenced by ilPCFileList\beforePageDelete(), and ilPCFileList\saveFileUsage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get all files of an object
| string | $a_type | object type (e.g. "lm:pg") |
| int | $a_id | object id |
Definition at line 1146 of file class.ilObjFile.php.
References $a_type, $DIC, $ilDB, and $ret.
Referenced by ilPCFileList\afterPageUpdate(), ilCOPageHTMLExport\collectPageElements(), ilPageObjectGUI\downloadFile(), ilPageObject\getLastUpdateOfIncludedElements(), and ilCOPageExporter\getXmlExportHeadDependencies().
Here is the caller graph for this function:
|
static |
| $obj_id | ||
| null | $a_version |
ILIAS\Filesystem\Exception\DirectoryNotFoundException
Definition at line 1262 of file class.ilObjFile.php.
|
static |
| $a_id |
Definition at line 762 of file class.ilObjFile.php.
References $DIC, $ilDB, ilDBConstants\FETCHMODE_OBJECT, and ilUtil\stripSlashes().
Referenced by ilSCORM2004PageGUI\setDefaultLinkXml(), and ilFilePreviewRenderer\supports().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookups the file size of the file in bytes.
Definition at line 778 of file class.ilObjFile.php.
References ilObjFileAccess\_lookupFileSize().
Referenced by ilPageObject\addFileSizes(), and ilObjFileGUI\infoScreenForward().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
lookup version
Definition at line 789 of file class.ilObjFile.php.
References ilObjFileAccess\_lookupVersion().
Here is the call graph for this function:
|
static |
save usage
Definition at line 1091 of file class.ilObjFile.php.
References $a_type, $DIC, $ilDB, ilObject\_lookupType(), and handleQuotaUpdate().
Referenced by ilPCFileList\saveFileUsage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 745 of file class.ilObjFile.php.
References $DIC, $ilDB, and $res.
Referenced by doMDUpdateListener().
Here is the caller graph for this function:| ilObjFile::addFileVersion | ( | $a_upload_file, | |
| $a_filename | |||
| ) |
| $a_upload_file | |
| $a_filename |
ILIAS\FileUpload\Collection\Exception\NoSuchElementException
ILIAS\FileUpload\Exception\IllegalStateException
Definition at line 397 of file class.ilObjFile.php.
References $result, ilHistory\_createEntry(), addNewsNotification(), createPreview(), ilObject\getId(), and getVersion().
Here is the call graph for this function:| ilObjFile::addNewsNotification | ( | $a_lang_var | ) |
Definition at line 1185 of file class.ilObjFile.php.
References $DIC, $ilUser, ilObject2\getDescription(), ilObject\getId(), ilObject2\getType(), isHidden(), NEWS_NOTICE, and NEWS_USERS.
Referenced by addFileVersion(), createProperties(), replaceFile(), and rollback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 195 of file class.ilObjFile.php.
|
protected |
Reimplemented from ilObject2.
Definition at line 989 of file class.ilObjFile.php.
References $DIC, $ilDB, and getUsages().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 224 of file class.ilObjFile.php.
References ilObject\$title, checkFileExtension(), getFileName(), ilObject\getId(), and ilObject2\getType().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 510 of file class.ilObjFile.php.
References getMode(), and ilObject2\updateMetaData().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 201 of file class.ilObjFile.php.
| ilObjFile::checkFileExtension | ( | $new_filename, | |
| $new_title | |||
| ) |
Check if the file extension does still exist after an update of the title.
Definition at line 1277 of file class.ilObjFile.php.
References ilObjFileAccess\_getFileExtension(), and getFileName().
Referenced by beforeMDUpdateListener(), and updateWithVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::clearDataDirectory | ( | ) |
clear data directory
Definition at line 423 of file class.ilObjFile.php.
References createDirectory(), ilUtil\delDir(), and getDirectory().
Referenced by deleteVersions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::compareVersions | ( | $v1, | |
| $v2 | |||
| ) |
Compares two file versions.
| array | $v1 | First file version to compare. |
| array | $v2 | Second file version to compare. |
Definition at line 1473 of file class.ilObjFile.php.
| ilObjFile::copy | ( | $a_source, | |
| $a_destination | |||
| ) |
copy file
Definition at line 414 of file class.ilObjFile.php.
References copy(), and getDirectory().
Referenced by copy(), and rollback().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::createDirectory | ( | ) |
Definition at line 294 of file class.ilObjFile.php.
References getDirectory(), and ilUtil\makeDirParents().
Referenced by clearDataDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Creates a preview for the file object.
| bool | $force | true, to force the creation of the preview; false, to create the preview only if the file is newer. |
Definition at line 1555 of file class.ilObjFile.php.
References ilPreview\createPreview(), and getMode().
Referenced by addFileVersion(), replaceFile(), storeUnzipedFile(), and updateWithVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::createProperties | ( | $a_upload = false | ) |
The basic properties of a file object are stored in table object_data.
This is not sufficient for a file object. Therefore we create additional properties in table file_data. This method has been put into a separate operation, to allow a WebDAV Null resource (class.ilObjNull.php) to become a file object.
Definition at line 138 of file class.ilObjFile.php.
References $_GET, $DIC, ilHistory\_createEntry(), ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_write(), addNewsNotification(), ilObject2\createMetaData(), ilLogLevel\DEBUG, getArrayForDatabase(), ilStr\getBytesForString(), getFileName(), getFileSize(), getFileType(), ilObject\getId(), getMode(), getVersion(), initFileStorage(), and MODE_FILELIST.
Referenced by doCreate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Deletes the preview of the file object.
Definition at line 1570 of file class.ilObjFile.php.
References ilPreview\deletePreview(), ilObject\getId(), and getMode().
Referenced by doDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::deleteVersions | ( | $a_hist_entry_ids = null | ) |
Deletes the specified history entries or all entries if no ids are specified.
| array | $a_hist_entry_ids | The ids of the entries to delete or null to delete all entries |
Definition at line 435 of file class.ilObjFile.php.
References $index, $version, ilHistory\_removeEntriesForObject(), ilHistory\_removeEntryByHistoryID(), clearDataDirectory(), ilUtil\delDir(), getDirectory(), ilObject\getId(), getMaxVersion(), getVersion(), getVersions(), handleQuotaUpdate(), and updateWithVersion().
Here is the call graph for this function:| ilObjFile::determineFileSize | ( | $a_hist_entry_id = null | ) |
Determine File Size.
Definition at line 800 of file class.ilObjFile.php.
References $data, ilHistory\_getEntryByHistoryID(), getDirectory(), getFileName(), getVersion(), parseInfoParams(), and setFileSize().
Referenced by updateWithVersion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Clone.
@access public
| object | clone |
| int | target id |
| int | copy id |
Reimplemented from ilObject2.
Definition at line 946 of file class.ilObjFile.php.
References $DIC, $ilDB, $query, $res, ilHistory\_copyEntriesForObject(), ilObject2\cloneMetaData(), ilPreview\copyPreviews(), getDirectory(), getFileName(), getFileSize(), getFileType(), ilObject\getId(), getMode(), getVersion(), hasRating(), and ilUtil\rCopy().
Here is the call graph for this function:
|
protected |
create object
| bool | upload mode (if enabled no entries in file_data will be done) |
Definition at line 125 of file class.ilObjFile.php.
References createProperties().
Here is the call graph for this function:
|
protected |
create file object meta data
Reimplemented from ilObject2.
Definition at line 210 of file class.ilObjFile.php.
References $format, getFileSize(), getFileType(), ilObject\getId(), and ilObject2\getType().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 1004 of file class.ilObjFile.php.
References $DIC, $ilDB, ilHistory\_removeEntriesForObject(), ilUtil\delDir(), ilObject2\deleteMetaData(), deletePreview(), getDirectory(), ilObject\getId(), getMode(), and handleQuotaUpdate().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 241 of file class.ilObjFile.php.
References ilObject\$id, _writeFileType(), ilObject\getId(), ilObject2\getType(), and setFileType().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 489 of file class.ilObjFile.php.
References $DIC, ilObject\getId(), initFileStorage(), setFileName(), setFileSize(), setFileType(), setMaxVersion(), setMode(), setPageCount(), setRating(), and setVersion().
Here is the call graph for this function:
|
protected |
Reimplemented from ilObject2.
Definition at line 521 of file class.ilObjFile.php.
References $DIC, getArrayForDatabase(), ilObject\getId(), getVersion(), and handleQuotaUpdate().
Here is the call graph for this function:
|
protected |
update meta data
Reimplemented from ilObject2.
Definition at line 551 of file class.ilObjFile.php.
References $format, getFileSize(), getFileType(), ilObject\getId(), and ilObject2\getType().
Here is the call graph for this function:| ilObjFile::export | ( | $a_target_dir | ) |
export files of object to target directory note: target directory must be the export target directory, "/objects/il_<inst>_file_<file_id>/..." will be appended to this directory
| string | $a_target_dir | target directory |
Definition at line 1041 of file class.ilObjFile.php.
References getDirectory(), ilObject\getId(), getVersion(), ilUtil\makeDir(), and ilUtil\rCopy().
Here is the call graph for this function:| ilObjFile::getAction | ( | ) |
Definition at line 632 of file class.ilObjFile.php.
References $action.
|
private |
Definition at line 1621 of file class.ilObjFile.php.
References getFileName(), getFileSize(), getFileType(), ilObject\getId(), getMaxVersion(), getMode(), getPageCount(), getVersion(), and hasRating().
Referenced by createProperties(), and doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getDirectory | ( | $a_version = 0 | ) |
| int | $a_version |
Definition at line 274 of file class.ilObjFile.php.
References initFileStorage().
Referenced by clearDataDirectory(), copy(), createDirectory(), deleteVersions(), determineFileSize(), doCloneObject(), doDelete(), export(), getFile(), getXMLZip(), rollback(), and storeUnzipedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getDiskUsage | ( | ) |
Gets the disk usage of the object in bytes.
@access public
Reimplemented from ilObject.
Definition at line 668 of file class.ilObjFile.php.
References ilObjFileAccess\_lookupDiskUsage().
Referenced by handleQuotaUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getFile | ( | $a_hist_entry_id = null | ) |
Definition at line 677 of file class.ilObjFile.php.
References $data, ilHistory\_getEntryByHistoryID(), getDirectory(), getFileName(), getVersion(), and parseInfoParams().
Here is the call graph for this function:| ilObjFile::getFileExtension | ( | ) |
Returns the extension of the file name converted to lower-case.
e.g. returns 'pdf' for 'document.pdf'.
Definition at line 882 of file class.ilObjFile.php.
References ilObjFileAccess\_getFileExtension(), and ilObject2\getTitle().
Referenced by guessFileType().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getFileName | ( | ) |
Definition at line 587 of file class.ilObjFile.php.
References $filename.
Referenced by beforeMDUpdateListener(), checkFileExtension(), createProperties(), determineFileSize(), doCloneObject(), getArrayForDatabase(), getFile(), and getXMLZip().
Here is the caller graph for this function:| ilObjFile::getFileSize | ( | ) |
Definition at line 620 of file class.ilObjFile.php.
References $filesize.
Referenced by createProperties(), doCloneObject(), doCreateMetaData(), doUpdateMetaData(), and getArrayForDatabase().
Here is the caller graph for this function:| ilObjFile::getFileType | ( | ) |
Definition at line 605 of file class.ilObjFile.php.
References $filetype.
Referenced by createProperties(), doCloneObject(), doCreateMetaData(), doUpdateMetaData(), getArrayForDatabase(), and guessFileType().
Here is the caller graph for this function:| ilObjFile::getMaxVersion | ( | ) |
Definition at line 717 of file class.ilObjFile.php.
References $max_version.
Referenced by deleteVersions(), getArrayForDatabase(), replaceFile(), and rollback().
Here is the caller graph for this function:| ilObjFile::getMode | ( | ) |
mode is object or filelist
Definition at line 739 of file class.ilObjFile.php.
References $mode.
Referenced by beforeUpdate(), createPreview(), createProperties(), deletePreview(), doCloneObject(), doDelete(), and getArrayForDatabase().
Here is the caller graph for this function:| ilObjFile::getPageCount | ( | ) |
Definition at line 1603 of file class.ilObjFile.php.
References $page_count.
Referenced by getArrayForDatabase().
Here is the caller graph for this function:| ilObjFile::getRollbackUserId | ( | ) |
| ilObjFile::getRollbackVersion | ( | ) |
| ilObjFile::getSpecificVersion | ( | $version_id | ) |
Gets a specific file version.
| int | $version_id | The version id to get. |
Definition at line 1350 of file class.ilObjFile.php.
References $version, ilHistory\_getEntryByHistoryID(), and parseInfoParams().
Referenced by rollback().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getUsages | ( | ) |
get all usages of file object
Definition at line 1116 of file class.ilObjFile.php.
References $DIC, $ilDB, $ret, and ilObject\getId().
Referenced by beforeDelete(), and handleQuotaUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getVersion | ( | ) |
Definition at line 705 of file class.ilObjFile.php.
References $version.
Referenced by addFileVersion(), createProperties(), deleteVersions(), determineFileSize(), doCloneObject(), doUpdate(), export(), getArrayForDatabase(), getFile(), replaceFile(), and storeUnzipedFile().
Here is the caller graph for this function:| ilObjFile::getVersions | ( | $version_ids = null | ) |
Gets the file versions for this object.
| array | $version_ids | The file versions to get. If not specified all versions are returned. |
Example: array ('date' => '2019-07-25 11:19:51', 'user_id' => '6', 'obj_id' => '287', 'obj_type' => 'file', 'action' => 'create', 'info_params' => 'chicken_outlined.pdf,1,1', 'user_comment' => '', 'hist_entry_id' => '3', 'title' => NULL, )
Definition at line 1318 of file class.ilObjFile.php.
References $index, $version, ilHistory\_getEntriesForObject(), ilObject\getId(), ilObject2\getType(), and parseInfoParams().
Referenced by deleteVersions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::getXMLZip | ( | ) |
Reimplemented from ilObject.
Definition at line 1171 of file class.ilObjFile.php.
References $DIC, ilUtil\escapeShellArg(), getDirectory(), and getFileName().
Here is the call graph for this function:| ilObjFile::guessFileType | ( | $a_file = "" | ) |
Guesses the file type based on the current values returned by getFileType() and getFileExtension().
If getFileType() returns 'application/octet-stream', the file extension is used to guess a more accurate file type.
Definition at line 921 of file class.ilObjFile.php.
References $filename, getFileExtension(), getFileType(), and ilMimeTypeUtil\getMimeType().
Referenced by updateWithVersion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 1527 of file class.ilObjFile.php.
References getDiskUsage(), ilObject\getId(), ilObject2\getType(), getUsages(), and ilDiskQuotaHandler\handleUpdatedSourceObject().
Referenced by _deleteAllUsages(), _saveUsage(), deleteVersions(), doDelete(), and doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::hasRating | ( | ) |
Definition at line 1594 of file class.ilObjFile.php.
References $rating.
Referenced by doCloneObject(), and getArrayForDatabase().
Here is the caller graph for this function:| ilObjFile::initFileStorage | ( | ) |
init file storage object
@access public
Definition at line 1219 of file class.ilObjFile.php.
References ilObject\getId().
Referenced by __construct(), createProperties(), doRead(), and getDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::initType | ( | ) |
Reimplemented from ilObject2.
Definition at line 114 of file class.ilObjFile.php.
| ilObjFile::isHidden | ( | ) |
Returns true, if this file should be hidden in the repository view.
Definition at line 906 of file class.ilObjFile.php.
References ilObjFileAccess\_isFileHidden(), and ilObject2\getTitle().
Referenced by addNewsNotification().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjFile::isInline | ( | ) |
Returns true, if this file should be displayed inline in a browser window.
This is especially useful for PDF documents, HTML pages, and for images which are directly supported by the browser.
Definition at line 895 of file class.ilObjFile.php.
References ilObjFileAccess\_isFileInline(), and ilObject2\getTitle().
Here is the call graph for this function:
|
private |
Parses the info parameters ("info_params") of the specified history entry.
| array | $entry | The history entry. |
Definition at line 1488 of file class.ilObjFile.php.
References $data, and $result.
Referenced by determineFileSize(), getFile(), getSpecificVersion(), and getVersions().
Here is the caller graph for this function:| ilObjFile::raiseUploadError | ( | $a_raise = true | ) |
Definition at line 300 of file class.ilObjFile.php.
| ilObjFile::replaceFile | ( | $a_upload_file, | |
| $a_filename | |||
| ) |
| $a_upload_file | |
| $a_filename |
ILIAS\FileUpload\Collection\Exception\NoSuchElementException
ILIAS\FileUpload\Exception\IllegalStateException
Definition at line 375 of file class.ilObjFile.php.
References $result, ilHistory\_createEntry(), addNewsNotification(), createPreview(), ilObject\getId(), getMaxVersion(), and getVersion().
Here is the call graph for this function:| ilObjFile::rollback | ( | $version_id | ) |
Makes the specified version the current one and returns theSummary of rollbackVersion.
| int | $version_id | The id of the version to make the current one. |
Definition at line 1379 of file class.ilObjFile.php.
References $DIC, $ilDB, $ilUser, $source, ilHistory\_changeUserId(), ilHistory\_createEntry(), ilHistory\_getEntriesForObject(), addNewsNotification(), copy(), getDirectory(), ilObject\getId(), getMaxVersion(), getSpecificVersion(), ilUtil\makeDir(), setMaxVersion(), and updateWithVersion().
Here is the call graph for this function:| ilObjFile::setAction | ( | $a_action | ) |
Definition at line 626 of file class.ilObjFile.php.
| ilObjFile::setFileName | ( | $a_name | ) |
| string | $a_name |
Definition at line 578 of file class.ilObjFile.php.
Referenced by doRead(), and updateWithVersion().
Here is the caller graph for this function:| ilObjFile::setFileSize | ( | $a_size | ) |
| $a_size |
Definition at line 614 of file class.ilObjFile.php.
Referenced by determineFileSize(), and doRead().
Here is the caller graph for this function:| ilObjFile::setFileType | ( | $a_type | ) |
| string | $a_type |
Definition at line 596 of file class.ilObjFile.php.
References $a_type.
Referenced by doMDUpdateListener(), doRead(), and updateWithVersion().
Here is the caller graph for this function:| ilObjFile::setMaxVersion | ( | $a_max_version | ) |
Definition at line 711 of file class.ilObjFile.php.
Referenced by doRead(), rollback(), and updateWithVersion().
Here is the caller graph for this function:| ilObjFile::setMode | ( | $a_mode | ) |
mode is object or filelist
| string | $a_mode | mode |
Definition at line 728 of file class.ilObjFile.php.
Referenced by doRead().
Here is the caller graph for this function:| ilObjFile::setNoMetaDataCreation | ( | $a_status | ) |
| bool | $a_status |
Definition at line 189 of file class.ilObjFile.php.
| ilObjFile::setPageCount | ( | $page_count | ) |
| int | $page_count |
Definition at line 1612 of file class.ilObjFile.php.
References $page_count.
Referenced by doRead().
Here is the caller graph for this function:| ilObjFile::setRating | ( | $a_value | ) |
| bool | $a_value |
Definition at line 1585 of file class.ilObjFile.php.
Referenced by doRead().
Here is the caller graph for this function:| ilObjFile::setRollbackUserId | ( | $a_rollback_user_id | ) |
Definition at line 650 of file class.ilObjFile.php.
| ilObjFile::setRollbackVersion | ( | $a_rollback_version | ) |
Definition at line 638 of file class.ilObjFile.php.
| ilObjFile::setVersion | ( | $a_version | ) |
Definition at line 699 of file class.ilObjFile.php.
Referenced by doRead(), storeUnzipedFile(), and updateWithVersion().
Here is the caller graph for this function:| ilObjFile::storeUnzipedFile | ( | $a_upload_file, | |
| $a_filename | |||
| ) |
storeUnzipedFile
Stores Files unzipped from uploaded archive in filesystem
| string | $a_upload_file | |
| string | $a_filename |
Definition at line 1236 of file class.ilObjFile.php.
References createPreview(), getDirectory(), ilFileUtils\getValidFilename(), getVersion(), ilUtil\makeDir(), ilFileUtils\rename(), and setVersion().
Here is the call graph for this function:
|
protected |
Updates the file object with the specified file version.
| array | $version | The version to update the file object with. |
Definition at line 1440 of file class.ilObjFile.php.
References $version, checkFileExtension(), createPreview(), determineFileSize(), ilObject2\getTitle(), guessFileType(), setFileName(), setFileType(), setMaxVersion(), ilObject2\setTitle(), setVersion(), and ilObject2\update().
Referenced by deleteVersions(), and rollback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 81 of file class.ilObjFile.php.
Referenced by getAction().
|
private |
Definition at line 65 of file class.ilObjFile.php.
|
protected |
Definition at line 41 of file class.ilObjFile.php.
|
protected |
Definition at line 33 of file class.ilObjFile.php.
Referenced by getFileName(), and guessFileType().
|
protected |
Definition at line 45 of file class.ilObjFile.php.
Referenced by getFileSize().
|
protected |
Definition at line 37 of file class.ilObjFile.php.
Referenced by getFileType().
|
protected |
Definition at line 69 of file class.ilObjFile.php.
|
protected |
Definition at line 77 of file class.ilObjFile.php.
Referenced by getMaxVersion().
| ilObjFile::$mode = self::MODE_OBJECT |
Definition at line 53 of file class.ilObjFile.php.
Referenced by getMode().
|
protected |
Definition at line 29 of file class.ilObjFile.php.
|
protected |
Definition at line 57 of file class.ilObjFile.php.
Referenced by getPageCount(), and setPageCount().
| ilObjFile::$raise_upload_error |
Definition at line 49 of file class.ilObjFile.php.
|
protected |
Definition at line 61 of file class.ilObjFile.php.
Referenced by hasRating().
|
protected |
Definition at line 89 of file class.ilObjFile.php.
Referenced by getRollbackUserId().
|
protected |
Definition at line 85 of file class.ilObjFile.php.
Referenced by getRollbackVersion().
|
protected |
Definition at line 73 of file class.ilObjFile.php.
Referenced by deleteVersions(), getSpecificVersion(), getVersion(), getVersions(), and updateWithVersion().
| const ilObjFile::MODE_FILELIST = "filelist" |
Definition at line 24 of file class.ilObjFile.php.
Referenced by createProperties().
| const ilObjFile::MODE_OBJECT = "object" |
Definition at line 25 of file class.ilObjFile.php.