ILIAS
release_8 Revision v8.23
|
Class ilObjBibliographic. More...
Public Member Functions | |
__construct (int $existant_bibl_id=0) | |
If bibliographic object exists, read it's data from database, otherwise create it. More... | |
getFileDirectory () | |
getFilePath (bool $without_filename=false) | |
setFilename (string $filename) | |
getFilename () | |
getFileAbsolutePath () | |
getLegacyAbsolutePath () | |
getFileTypeAsString () | |
getFileType () | |
cloneStructure (int $original_id) | |
Attention only use this for objects who have not yet been created (use like: $x = new ilObjDataCollection; $x->cloneStructure($id)) More... | |
parseFileToDatabase () | |
Reads out the source file and writes all entries to the database. More... | |
setFileType (int $file_type) | |
setOnline (bool $a_online) | |
getOnline () | |
setResourceId (ResourceIdentification $identification) | |
getResourceId () | |
getStorageId () | |
isMigrated () | |
setMigrated (bool $migrated) | |
determineFileTypeByFileName (string $filename) | |
![]() | |
__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... | |
Protected Member Functions | |
initType () | |
doCreate (bool $clone_mode=false) | |
Create object. More... | |
doUpdate () | |
doDelete (bool $leave_out_il_bibl_data=false, bool $leave_out_delete_file=false) | |
deleteFile () | |
doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null) | |
![]() | |
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 | |
handleUpload () | |
handles a FileUpload and returns an IRSS identification string. More... | |
copyFile (string $file_to_copy) | |
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) |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Class ilObjBibliographic.
Definition at line 31 of file class.ilObjBibliographic.php.
ilObjBibliographic::__construct | ( | int | $existant_bibl_id = 0 | ) |
If bibliographic object exists, read it's data from database, otherwise create it.
int | $existant_bibl_id | is not set when object is getting created |
Definition at line 60 of file class.ilObjBibliographic.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilObject2\doRead(), ILIAS\Repository\filesystem(), and ilObject\setId().
ilObjBibliographic::cloneStructure | ( | int | $original_id | ) |
Attention only use this for objects who have not yet been created (use like: $x = new ilObjDataCollection; $x->cloneStructure($id))
int | $original_id | The original ID of the dataselection you want to clone it's structure |
Definition at line 330 of file class.ilObjBibliographic.php.
References copyFile(), doUpdate(), parseFileToDatabase(), ilObject\setDescription(), setFilename(), setMigrated(), setResourceId(), ilObject\setTitle(), and ilObject\setType().
|
private |
Definition at line 223 of file class.ilObjBibliographic.php.
References ILIAS\Repository\filesystem(), and getFileDirectory().
Referenced by cloneStructure().
|
protected |
Definition at line 229 of file class.ilObjBibliographic.php.
References Vendor\Package\$e, $path, ILIAS\Repository\filesystem(), and getFileDirectory().
Referenced by doDelete(), and doUpdate().
ilObjBibliographic::determineFileTypeByFileName | ( | string | $filename | ) |
Definition at line 415 of file class.ilObjBibliographic.php.
Referenced by doCreate().
|
protected |
Definition at line 310 of file class.ilObjBibliographic.php.
References ilCopyWizardOptions\_getInstance(), ilObject\getId(), and getOnline().
|
protected |
Create object.
bool | $clone_mode |
Definition at line 118 of file class.ilObjBibliographic.php.
References ilObject\$id, determineFileTypeByFileName(), ilObject2\doRead(), getFilename(), ilObject\getId(), getOnline(), getResourceId(), handleUpload(), parseFileToDatabase(), setFilename(), setFileType(), setMigrated(), setOnline(), setResourceId(), and ActiveRecord\where().
|
protected |
Definition at line 186 of file class.ilObjBibliographic.php.
References ilHistory\_removeEntriesForObject(), deleteFile(), and ilObject\getId().
|
protected |
Definition at line 154 of file class.ilObjBibliographic.php.
References deleteFile(), ilObject2\doDelete(), getFilename(), getFileType(), ilObject\getId(), getOnline(), getResourceId(), handleUpload(), isMigrated(), parseFileToDatabase(), setMigrated(), and setResourceId().
Referenced by cloneStructure().
ilObjBibliographic::getFileAbsolutePath | ( | ) |
Definition at line 275 of file class.ilObjBibliographic.php.
References getFileDirectory(), and getFilename().
Referenced by getLegacyAbsolutePath().
ilObjBibliographic::getFileDirectory | ( | ) |
Definition at line 215 of file class.ilObjBibliographic.php.
Referenced by copyFile(), deleteFile(), and getFileAbsolutePath().
ilObjBibliographic::getFilename | ( | ) |
Definition at line 260 of file class.ilObjBibliographic.php.
References $filename, and getResourceId().
Referenced by doCreate(), doUpdate(), getFileAbsolutePath(), getFilePath(), and getFileType().
ilObjBibliographic::getFilePath | ( | bool | $without_filename = false | ) |
Definition at line 244 of file class.ilObjBibliographic.php.
References getFilename().
ilObjBibliographic::getFileType | ( | ) |
Definition at line 299 of file class.ilObjBibliographic.php.
References ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX, and getFilename().
Referenced by ilBiblFactoryFacade\__construct(), doUpdate(), getFileTypeAsString(), and parseFileToDatabase().
ilObjBibliographic::getFileTypeAsString | ( | ) |
Definition at line 292 of file class.ilObjBibliographic.php.
References ilObject\$type, and getFileType().
ilObjBibliographic::getLegacyAbsolutePath | ( | ) |
Definition at line 280 of file class.ilObjBibliographic.php.
References ILIAS\Repository\filesystem(), getFileAbsolutePath(), getResourceId(), and isMigrated().
ilObjBibliographic::getOnline | ( | ) |
Definition at line 379 of file class.ilObjBibliographic.php.
References $is_online.
Referenced by doCloneObject(), doCreate(), and doUpdate().
ilObjBibliographic::getResourceId | ( | ) |
Definition at line 392 of file class.ilObjBibliographic.php.
References $resource_id.
Referenced by doCreate(), doUpdate(), getFilename(), getLegacyAbsolutePath(), getStorageId(), handleUpload(), and parseFileToDatabase().
ilObjBibliographic::getStorageId | ( | ) |
Definition at line 397 of file class.ilObjBibliographic.php.
References getResourceId().
|
private |
handles a FileUpload and returns an IRSS identification string.
Definition at line 91 of file class.ilObjBibliographic.php.
References getResourceId().
Referenced by doCreate(), and doUpdate().
|
protected |
Definition at line 51 of file class.ilObjBibliographic.php.
ilObjBibliographic::isMigrated | ( | ) |
Definition at line 405 of file class.ilObjBibliographic.php.
References $is_migrated.
Referenced by doUpdate(), and getLegacyAbsolutePath().
ilObjBibliographic::parseFileToDatabase | ( | ) |
Reads out the source file and writes all entries to the database.
Definition at line 352 of file class.ilObjBibliographic.php.
References ilObject\$type, getFileType(), and getResourceId().
Referenced by cloneStructure(), doCreate(), and doUpdate().
ilObjBibliographic::setFilename | ( | string | $filename | ) |
Definition at line 255 of file class.ilObjBibliographic.php.
References $filename.
Referenced by cloneStructure(), and doCreate().
ilObjBibliographic::setFileType | ( | int | $file_type | ) |
Definition at line 369 of file class.ilObjBibliographic.php.
References $file_type.
Referenced by doCreate().
ilObjBibliographic::setMigrated | ( | bool | $migrated | ) |
Definition at line 410 of file class.ilObjBibliographic.php.
Referenced by cloneStructure(), doCreate(), and doUpdate().
ilObjBibliographic::setOnline | ( | bool | $a_online | ) |
Definition at line 374 of file class.ilObjBibliographic.php.
Referenced by doCreate().
ilObjBibliographic::setResourceId | ( | ResourceIdentification | $identification | ) |
Definition at line 384 of file class.ilObjBibliographic.php.
Referenced by cloneStructure(), doCreate(), and doUpdate().
|
protected |
Definition at line 41 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 39 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 37 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 38 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 35 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 40 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 36 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 45 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 47 of file class.ilObjBibliographic.php.
Referenced by setFileType().
|
protected |
Definition at line 44 of file class.ilObjBibliographic.php.
Referenced by getFilename(), and setFilename().
|
protected |
Definition at line 33 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 49 of file class.ilObjBibliographic.php.
Referenced by isMigrated().
|
protected |
Definition at line 46 of file class.ilObjBibliographic.php.
Referenced by getOnline().
|
protected |
Definition at line 48 of file class.ilObjBibliographic.php.
Referenced by getResourceId().
|
protected |
Definition at line 43 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 42 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 34 of file class.ilObjBibliographic.php.