ILIAS
trunk Revision v11.0_alpha-1838-g59fc79e306b
|
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) | |
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) | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
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 $description) | |
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 | getIconForType (string $type) |
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 33 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 61 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 331 of file class.ilObjBibliographic.php.
References copyFile(), doUpdate(), ilObject\getId(), parseFileToDatabase(), ilObject\setDescription(), setFilename(), setMigrated(), setResourceId(), ilObject\setTitle(), and ilObject\setType().
|
private |
Definition at line 225 of file class.ilObjBibliographic.php.
References ILIAS\Repository\filesystem(), and getFileDirectory().
Referenced by cloneStructure().
|
protected |
Definition at line 231 of file class.ilObjBibliographic.php.
References $path, ILIAS\Repository\filesystem(), and getFileDirectory().
Referenced by doDelete(), and doUpdate().
ilObjBibliographic::determineFileTypeByFileName | ( | string | $filename | ) |
Definition at line 416 of file class.ilObjBibliographic.php.
Referenced by doCreate().
|
protected |
Definition at line 311 of file class.ilObjBibliographic.php.
References ilCopyWizardOptions\_getInstance(), ilObject\getId(), and ilObject\getObjectProperties().
|
protected |
Create object.
bool | $clone_mode |
Definition at line 119 of file class.ilObjBibliographic.php.
References $id, determineFileTypeByFileName(), ilObject2\doRead(), getFilename(), ilObject\getId(), ilObject\getObjectProperties(), getResourceId(), handleUpload(), null, parseFileToDatabase(), setFilename(), setFileType(), setMigrated(), setResourceId(), and ActiveRecord\where().
|
protected |
Definition at line 188 of file class.ilObjBibliographic.php.
References ilHistory\_removeEntriesForObject(), deleteFile(), and ilObject\getId().
|
protected |
Definition at line 157 of file class.ilObjBibliographic.php.
References deleteFile(), ilObject2\doDelete(), getFilename(), getFileType(), ilObject\getId(), getResourceId(), handleUpload(), isMigrated(), null, parseFileToDatabase(), setMigrated(), and setResourceId().
Referenced by cloneStructure().
ilObjBibliographic::getFileAbsolutePath | ( | ) |
Definition at line 276 of file class.ilObjBibliographic.php.
References getFileDirectory(), and getFilename().
Referenced by getLegacyAbsolutePath().
ilObjBibliographic::getFileDirectory | ( | ) |
Definition at line 217 of file class.ilObjBibliographic.php.
Referenced by copyFile(), deleteFile(), and getFileAbsolutePath().
ilObjBibliographic::getFilename | ( | ) |
Definition at line 261 of file class.ilObjBibliographic.php.
References $filename, getResourceId(), and null.
Referenced by doCreate(), doUpdate(), getFileAbsolutePath(), getFilePath(), and getFileType().
ilObjBibliographic::getFilePath | ( | bool | $without_filename = false | ) |
Definition at line 246 of file class.ilObjBibliographic.php.
References getFilename().
ilObjBibliographic::getFileType | ( | ) |
Definition at line 300 of file class.ilObjBibliographic.php.
References ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX, getFilename(), and null.
Referenced by ilBiblFactoryFacade\__construct(), doUpdate(), getFileTypeAsString(), and parseFileToDatabase().
ilObjBibliographic::getFileTypeAsString | ( | ) |
Definition at line 293 of file class.ilObjBibliographic.php.
References ilObject\$type, and getFileType().
ilObjBibliographic::getLegacyAbsolutePath | ( | ) |
Definition at line 281 of file class.ilObjBibliographic.php.
References ILIAS\Repository\filesystem(), getFileAbsolutePath(), getResourceId(), and isMigrated().
ilObjBibliographic::getResourceId | ( | ) |
Definition at line 393 of file class.ilObjBibliographic.php.
References $resource_id.
Referenced by doCreate(), doUpdate(), getFilename(), getLegacyAbsolutePath(), getStorageId(), handleUpload(), and parseFileToDatabase().
ilObjBibliographic::getStorageId | ( | ) |
Definition at line 398 of file class.ilObjBibliographic.php.
References getResourceId().
|
private |
handles a FileUpload and returns an IRSS identification string.
IllegalStateException |
Definition at line 92 of file class.ilObjBibliographic.php.
References getResourceId(), and null.
Referenced by doCreate(), and doUpdate().
|
protected |
Definition at line 52 of file class.ilObjBibliographic.php.
ilObjBibliographic::isMigrated | ( | ) |
Definition at line 406 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 363 of file class.ilObjBibliographic.php.
References ilObject\$type, getFileType(), getResourceId(), and null.
Referenced by cloneStructure(), doCreate(), and doUpdate().
ilObjBibliographic::setFilename | ( | string | $filename | ) |
Definition at line 256 of file class.ilObjBibliographic.php.
References $filename.
Referenced by cloneStructure(), and doCreate().
ilObjBibliographic::setFileType | ( | int | $file_type | ) |
Definition at line 380 of file class.ilObjBibliographic.php.
References $file_type.
Referenced by doCreate().
ilObjBibliographic::setMigrated | ( | bool | $migrated | ) |
Definition at line 411 of file class.ilObjBibliographic.php.
Referenced by cloneStructure(), doCreate(), and doUpdate().
ilObjBibliographic::setResourceId | ( | ResourceIdentification | $identification | ) |
Definition at line 385 of file class.ilObjBibliographic.php.
Referenced by cloneStructure(), doCreate(), and doUpdate().
|
protected |
Definition at line 43 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 41 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 39 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 40 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 37 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 42 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 38 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 47 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 48 of file class.ilObjBibliographic.php.
Referenced by setFileType().
|
protected |
Definition at line 46 of file class.ilObjBibliographic.php.
Referenced by getFilename(), and setFilename().
|
protected |
Definition at line 35 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 50 of file class.ilObjBibliographic.php.
Referenced by isMigrated().
|
protected |
Definition at line 49 of file class.ilObjBibliographic.php.
Referenced by getResourceId().
|
protected |
Definition at line 45 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 44 of file class.ilObjBibliographic.php.
|
protected |
Definition at line 36 of file class.ilObjBibliographic.php.