ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
getPresentationTitle () | |
updateObjectFromCurrentRevision () | |
appendSuffixToTitle (string $title, string $filename) | |
appendStream (FileStream $stream, string $title) | |
appendUpload (UploadResult $result, string $title) | |
replaceWithStream (FileStream $stream, string $title) | |
replaceWithUpload (UploadResult $result, string $title) | |
getFile (?int $a_hist_entry_id=null) | |
getDirectory ($a_version=0) | |
getVersion () | |
setVersion (int $a_version) | |
getFileName () | |
setFileName (string $a_name) | |
setRating (bool $a_value) | |
setResourceId (?string $resource_id) | |
getResourceId () | |
getStorageID () | |
getMode () | |
setMode (string $a_mode) | |
getFileSize () | |
setFileSize (int $a_size) | |
getFileType () | |
setFileType (string $a_type) | |
hasRating () | |
getMaxVersion () | |
setMaxVersion (int $a_max_version) | |
getPageCount () | |
setPageCount (int $page_count) | |
getAction () | |
setAction (string $a_action) | |
handleChangedObjectTitle (string $new_title) | |
replaceFile ($a_upload_file, $a_filename) | |
getUploadFile ($a_upload_file, string $title, bool $a_prevent_preview=false) | |
This Method is used to append a fileupload by it's POST-name to the current ilObjFile More... | |
isHidden () | |
clearDataDirectory () | |
deleteVersions ($a_hist_entry_ids=null) | |
sendFile (?int $a_hist_entry_id=null, bool $inline=true) | |
export (string $a_target_dir) | |
getVersions ($version_ids=null) | |
rollback (int $version_id) | |
Makes the specified version the current one. More... | |
checkFileExtension (string $new_filename, string $new_title) | |
getFileExtension () | |
![]() | |
__construct (int $a_id=0, bool $a_reference=true) | |
Constructor. More... | |
read () | |
create (bool $a_clone_mode=false) | |
update () | |
delete () | |
cloneMetaData (ilObject $target_obj) | |
cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false) | |
![]() | |
__construct (int $id=0, bool $reference=true) | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
processAutoRating () | |
read () | |
getId () | |
setId (int $id) | |
setRefId (int $ref_id) | |
getRefId () | |
getType () | |
setType (string $type) | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
getUntranslatedTitle () | |
Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
setTitle (string $title) | |
getDescription () | |
setDescription (string $desc) | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
setImportId (string $import_id) | |
setOfflineStatus (bool $status) | |
getOfflineStatus () | |
supportsOfflineHandling () | |
getOwner () | |
getOwnerName () | |
get full name of object owner More... | |
setOwner (int $usr_id) | |
getCreateDate () | |
Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
getLastUpdateDate () | |
Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
create () | |
note: title, description and type should be set when this function is called More... | |
update () | |
MDUpdateListener (string $element) | |
Metadata update listener. More... | |
createMetaData () | |
updateMetaData () | |
deleteMetaData () | |
updateOwner () | |
update owner of object in db More... | |
putInTree (int $parent_ref_id) | |
maybe this method should be in tree object!? More... | |
setPermissions (int $parent_ref_id) | |
setParentRolePermissions (int $parent_ref_id) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! 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. More... | |
applyDidacticTemplate (int $tpl_id) | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo (int $target_id, int $copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies. More... | |
cloneMetaData (ilObject $target_obj) | |
Copy meta data. More... | |
selfOrParentWithRatingEnabled () | |
getPossibleSubObjects (bool $filter=true) | |
get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
![]() | |
getDirectory (int $a_version=0) | |
deleteVersions (?array $a_hist_entry_ids=null) | |
Deletes the specified history entries or all entries if no ids are specified. More... | |
getVersions (?array $version_ids=null) | |
Gets the file versions for this object. More... | |
Data Fields | |
const | MODE_FILELIST = "filelist" |
const | MODE_OBJECT = "object" |
const | OBJECT_TYPE = "file" |
string | $mode = self::MODE_OBJECT |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Protected Member Functions | |
initFileInfo (int $id, bool $is_ref_id) | |
initImplementation () | |
doCreate (bool $clone_mode=false) | |
doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=0) | |
doUpdate () | |
beforeUpdate () | |
beforeDelete () | |
doDelete () | |
initType () | |
![]() | |
initType () | |
doRead () | |
doCreate (bool $clone_mode=false) | |
beforeCreate () | |
If overwritten this method should return true, there is currently no "abort" handling for cases where "false" is returned. More... | |
doUpdate () | |
beforeUpdate () | |
doDelete () | |
beforeDelete () | |
doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null) | |
beforeCloneObject () | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
Private Member Functions | |
updateObjectFromRevision (Revision $r, bool $create_previews=true) | |
getArrayForDatabase () | |
prepareUpload () | |
Additional Inherited Members | |
![]() | |
static | _lookupObjIdByImportId (string $import_id) |
Get (latest) object id for an import id. More... | |
static | _lookupImportId (int $obj_id) |
static | _lookupOwnerName (int $owner_id) |
Lookup owner name for owner id. More... | |
static | _getIdForImportId (string $import_id) |
static | _getAllReferences (int $id) |
get all reference ids for object ID More... | |
static | _lookupTitle (int $obj_id) |
static | lookupOfflineStatus (int $obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner (int $obj_id) |
Lookup owner user ID for object ID. More... | |
static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
static | _lookupDescription (int $obj_id) |
static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
static | _getLastUpdateOfObjects (array $obj_ids) |
static | _lookupObjId (int $ref_id) |
static | _setDeletedDate (int $ref_id, int $deleted_by) |
static | setDeletedDates (array $ref_ids, int $user_id) |
static | _resetDeletedDate (int $ref_id) |
static | _lookupDeletedDate (int $ref_id) |
static | _writeTitle (int $obj_id, string $title) |
write title to db (static) More... | |
static | _writeDescription (int $obj_id, string $desc) |
write description to db (static) More... | |
static | _writeImportId (int $obj_id, string $import_id) |
write import id to db (static) More... | |
static | _lookupType (int $id, bool $reference=false) |
static | _isInTrash (int $ref_id) |
static | _hasUntrashedReference (int $obj_id) |
checks whether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId (int $ref_id) |
static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
get all objects of a certain type More... | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType (string $obj_type="", int $owner=null) |
static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies (int $obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $obj_ids) |
static | getAllOwnedRepositoryObjects (int $user_id) |
static | fixMissingTitles ($type, array &$obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate (int $obj_id) |
static | _getObjectTypeIdByTitle (string $type, \ilDBInterface $ilDB=null) |
ilObjFile::appendStream | ( | FileStream | $stream, |
string | $title | ||
) |
FileNamePolicyException |
Definition at line 153 of file class.ilObjFile.php.
References $i, getResourceId(), initImplementation(), setResourceId(), and updateObjectFromRevision().
ilObjFile::appendSuffixToTitle | ( | string | $title, |
string | $filename | ||
) |
Definition at line 137 of file class.ilObjFile.php.
References ilObject\$title, ensureSuffix(), and extractSuffixFromFilename().
Referenced by appendUpload(), checkFileExtension(), and replaceWithUpload().
ilObjFile::appendUpload | ( | UploadResult | $result, |
string | $title | ||
) |
FileNamePolicyException |
Definition at line 171 of file class.ilObjFile.php.
References $i, appendSuffixToTitle(), ILIAS\FileUpload\DTO\UploadResult\getMetaData(), ILIAS\FileUpload\DTO\UploadResult\getName(), getResourceId(), initImplementation(), ilCountPDFPagesPreProcessors\PAGE_COUNT, setPageCount(), setResourceId(), and updateObjectFromRevision().
Referenced by getUploadFile().
|
protected |
Definition at line 458 of file class.ilObjFile.php.
|
protected |
Definition at line 446 of file class.ilObjFile.php.
References ensureSuffix(), getMode(), ilObject\getTitle(), ilObject\setTitle(), and ilObject\updateMetaData().
ilObjFile::checkFileExtension | ( | string | $new_filename, |
string | $new_title | ||
) |
Definition at line 617 of file class.ilObjFile.php.
References appendSuffixToTitle().
ilObjFile::clearDataDirectory | ( | ) |
Definition at line 560 of file class.ilObjFile.php.
ilObjFile::deleteVersions | ( | $a_hist_entry_ids = null | ) |
Definition at line 569 of file class.ilObjFile.php.
|
protected |
Definition at line 392 of file class.ilObjFile.php.
References ilObject2\cloneMetaData(), ilObject\getId(), getPageCount(), ilObject\getTitle(), ilObject\setTitle(), and ilObject2\update().
|
protected |
Definition at line 362 of file class.ilObjFile.php.
References $DIC, createProperties(), ilObject2\doRead(), ilObject\getDescription(), ilObject\getId(), initImplementation(), ILIAS\Repository\int(), and notifyCreation().
|
protected |
Definition at line 465 of file class.ilObjFile.php.
References $DIC, ilHistory\_removeEntriesForObject(), ilObject\deleteMetaData(), ilObject\getId(), getMode(), and getResourceId().
|
protected |
Definition at line 421 of file class.ilObjFile.php.
References $DIC, getArrayForDatabase(), ilObject\getDescription(), ilObject\getId(), getVersion(), initImplementation(), and notifyUpdate().
ilObjFile::export | ( | string | $a_target_dir | ) |
Definition at line 584 of file class.ilObjFile.php.
ilObjFile::getAction | ( | ) |
|
private |
Definition at line 493 of file class.ilObjFile.php.
References getFileName(), ilObject\getId(), getMode(), getPageCount(), and hasRating().
Referenced by doUpdate().
ilObjFile::getDirectory | ( | $a_version = 0 | ) |
Definition at line 233 of file class.ilObjFile.php.
ilObjFile::getFile | ( | ?int | $a_hist_entry_id = null | ) |
Implements ilObjFileImplementationInterface.
Definition at line 227 of file class.ilObjFile.php.
References initImplementation().
Referenced by ilCollectWorkspaceFilesJob\getFileDirs(), and ilDclRecordListGUI\sendFile().
ilObjFile::getFileExtension | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 625 of file class.ilObjFile.php.
ilObjFile::getFileName | ( | ) |
Definition at line 248 of file class.ilObjFile.php.
References $filename.
Referenced by getArrayForDatabase().
ilObjFile::getFileSize | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 292 of file class.ilObjFile.php.
ilObjFile::getFileType | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 302 of file class.ilObjFile.php.
ilObjFile::getMaxVersion | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 317 of file class.ilObjFile.php.
References $max_version.
ilObjFile::getMode | ( | ) |
Definition at line 279 of file class.ilObjFile.php.
References $mode.
Referenced by beforeUpdate(), doDelete(), and getArrayForDatabase().
ilObjFile::getPageCount | ( | ) |
Definition at line 327 of file class.ilObjFile.php.
References $page_count.
Referenced by doCloneObject(), and getArrayForDatabase().
ilObjFile::getPresentationTitle | ( | ) |
Definition at line 97 of file class.ilObjFile.php.
ilObjFile::getResourceId | ( | ) |
Definition at line 269 of file class.ilObjFile.php.
Referenced by appendStream(), appendUpload(), doDelete(), replaceWithStream(), replaceWithUpload(), and rollback().
ilObjFile::getStorageID | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 274 of file class.ilObjFile.php.
ilObjFile::getUploadFile | ( | $a_upload_file, | |
string | $title, | ||
bool | $a_prevent_preview = false |
||
) |
This Method is used to append a fileupload by it's POST-name to the current ilObjFile
Definition at line 536 of file class.ilObjFile.php.
References $results, appendUpload(), prepareUpload(), and ILIAS\Repository\upload().
ilObjFile::getVersion | ( | ) |
Implements ilObjFileImplementationInterface.
Definition at line 238 of file class.ilObjFile.php.
Referenced by doUpdate().
ilObjFile::getVersions | ( | $version_ids = null | ) |
null | $version_ids |
Definition at line 594 of file class.ilObjFile.php.
ilObjFile::handleChangedObjectTitle | ( | string | $new_title | ) |
Implements ilObjFileImplementationInterface.
Definition at line 354 of file class.ilObjFile.php.
References ensureSuffix(), and ilObject\setTitle().
ilObjFile::hasRating | ( | ) |
Definition at line 312 of file class.ilObjFile.php.
References $rating.
Referenced by getArrayForDatabase().
|
protected |
Definition at line 87 of file class.ilObjFile.php.
Referenced by initImplementation(), and updateObjectFromRevision().
|
protected |
Definition at line 102 of file class.ilObjFile.php.
References ilObject\$id, ilObject\getId(), and initFileInfo().
Referenced by appendStream(), appendUpload(), doCreate(), doUpdate(), and getFile().
|
protected |
Definition at line 505 of file class.ilObjFile.php.
ilObjFile::isHidden | ( | ) |
Definition at line 551 of file class.ilObjFile.php.
References ilObjFileAccess\_isFileHidden(), and ilObject\getTitle().
|
private |
Definition at line 520 of file class.ilObjFile.php.
References ILIAS\Repository\upload().
Referenced by getUploadFile().
ilObjFile::replaceFile | ( | $a_upload_file, | |
$a_filename | |||
) |
ilObjFile::replaceWithStream | ( | FileStream | $stream, |
string | $title | ||
) |
FileNamePolicyException |
Definition at line 193 of file class.ilObjFile.php.
References $i, getResourceId(), and updateObjectFromRevision().
ilObjFile::replaceWithUpload | ( | UploadResult | $result, |
string | $title | ||
) |
FileNamePolicyException |
Definition at line 208 of file class.ilObjFile.php.
References $i, appendSuffixToTitle(), ILIAS\FileUpload\DTO\UploadResult\getMetaData(), ILIAS\FileUpload\DTO\UploadResult\getName(), getResourceId(), ilCountPDFPagesPreProcessors\PAGE_COUNT, setPageCount(), and updateObjectFromRevision().
ilObjFile::rollback | ( | int | $version_id | ) |
Makes the specified version the current one.
int | $version_id | The id of the version to make the current one. |
Definition at line 603 of file class.ilObjFile.php.
References $i, getResourceId(), and updateObjectFromRevision().
ilObjFile::sendFile | ( | ?int | $a_hist_entry_id = null , |
bool | $inline = true |
||
) |
bool | $inline |
Implements ilObjFileImplementationInterface.
Definition at line 574 of file class.ilObjFile.php.
References ilObject\getId().
ilObjFile::setAction | ( | string | $a_action | ) |
$a_action |
Definition at line 349 of file class.ilObjFile.php.
ilObjFile::setFileName | ( | string | $a_name | ) |
Definition at line 253 of file class.ilObjFile.php.
Referenced by updateObjectFromRevision().
ilObjFile::setFileSize | ( | int | $a_size | ) |
Definition at line 297 of file class.ilObjFile.php.
ilObjFile::setFileType | ( | string | $a_type | ) |
Definition at line 307 of file class.ilObjFile.php.
ilObjFile::setMaxVersion | ( | int | $a_max_version | ) |
Definition at line 322 of file class.ilObjFile.php.
ilObjFile::setMode | ( | string | $a_mode | ) |
string | $a_mode | self::MODE_FILELIST or self::MODE_OBJECT |
Definition at line 287 of file class.ilObjFile.php.
ilObjFile::setPageCount | ( | int | $page_count | ) |
Definition at line 332 of file class.ilObjFile.php.
References $page_count.
Referenced by appendUpload(), and replaceWithUpload().
ilObjFile::setRating | ( | bool | $a_value | ) |
Definition at line 258 of file class.ilObjFile.php.
ilObjFile::setResourceId | ( | ?string | $resource_id | ) |
Definition at line 263 of file class.ilObjFile.php.
References $resource_id.
Referenced by appendStream(), and appendUpload().
ilObjFile::setVersion | ( | int | $a_version | ) |
Definition at line 243 of file class.ilObjFile.php.
ilObjFile::updateObjectFromCurrentRevision | ( | ) |
Definition at line 113 of file class.ilObjFile.php.
References updateObjectFromRevision().
|
private |
Definition at line 121 of file class.ilObjFile.php.
References ensureSuffix(), extractSuffixFromFilename(), ilObject\getId(), ILIAS\ResourceStorage\Revision\Revision\getInformation(), ILIAS\ResourceStorage\Revision\Revision\getTitle(), initFileInfo(), setFileName(), ilObject\setTitle(), and ilObject2\update().
Referenced by appendStream(), appendUpload(), replaceWithStream(), replaceWithUpload(), rollback(), and updateObjectFromCurrentRevision().
|
protected |
Definition at line 57 of file class.ilObjFile.php.
Referenced by getAction().
|
protected |
Definition at line 45 of file class.ilObjFile.php.
|
protected |
Definition at line 52 of file class.ilObjFile.php.
Referenced by getFileName().
|
protected |
Definition at line 54 of file class.ilObjFile.php.
|
protected |
Definition at line 53 of file class.ilObjFile.php.
|
protected |
Definition at line 47 of file class.ilObjFile.php.
|
protected |
Definition at line 51 of file class.ilObjFile.php.
|
protected |
Definition at line 60 of file class.ilObjFile.php.
|
protected |
Definition at line 56 of file class.ilObjFile.php.
Referenced by getMaxVersion().
string ilObjFile::$mode = self::MODE_OBJECT |
Definition at line 59 of file class.ilObjFile.php.
Referenced by getMode().
|
protected |
Definition at line 49 of file class.ilObjFile.php.
Referenced by getPageCount(), and setPageCount().
|
protected |
Definition at line 50 of file class.ilObjFile.php.
Referenced by hasRating().
|
protected |
Definition at line 58 of file class.ilObjFile.php.
Referenced by setResourceId().
|
protected |
Definition at line 62 of file class.ilObjFile.php.
|
protected |
Definition at line 61 of file class.ilObjFile.php.
|
protected |
Definition at line 55 of file class.ilObjFile.php.
const ilObjFile::MODE_FILELIST = "filelist" |
Definition at line 42 of file class.ilObjFile.php.
Referenced by ilModulesFileTest\testAppendStream().
const ilObjFile::MODE_OBJECT = "object" |
Definition at line 43 of file class.ilObjFile.php.
Referenced by ilDclFileuploadRecordFieldModel\parseValue().
const ilObjFile::OBJECT_TYPE = "file" |
Definition at line 44 of file class.ilObjFile.php.
Referenced by ilObjFileUploadDropzone\__construct(), ilObjFileGUI\__construct(), ilObjFileGUI\edit(), ilObjFileGUI\getParentId(), ilObjFileGUI\getType(), ilObjFileListGUI\init(), ilObjFileGUI\initCreationForms(), and ilObjFileGUI\setTabs().