4include_once(
"./Services/Object/classes/class.ilObject.php");
32 return parent::withReferences();
38 final public function read()
49 return parent::setRefId($a_id);
53 return parent::getRefId();
57 return parent::getType();
61 return parent::setType($a_type);
65 return parent::getPresentationTitle();
69 return parent::getTitle();
73 return parent::getUntranslatedTitle();
77 return parent::setTitle($a_title);
81 return parent::getDescription();
85 return parent::setDescription($a_desc);
89 return parent::getLongDescription();
93 return parent::getImportId();
97 return parent::setImportId($a_import_id);
101 return parent::_lookupObjIdByImportId($a_import_id);
105 return parent::getOwner();
109 return parent::getOwnerName();
113 return parent::_lookupOwnerName($a_owner_id);
117 return parent::setOwner($a_owner);
121 return parent::getCreateDate();
125 return parent::getLastUpdateDate();
128 final public function create($a_clone_mode =
false)
131 $id = parent::create();
156 if (!parent::update()) {
179 if (parent::MDUpdateListener($a_element)) {
199 if (parent::createMetaData()) {
219 if (parent::updateMetaData()) {
238 return parent::deleteMetaData();
242 return parent::updateOwner();
246 return parent::_getIdForImportId($a_import_id);
250 return parent::_getAllReferences($a_id);
254 return parent::_lookupTitle($a_id);
258 return parent::_lookupOwner($a_id);
262 return parent::_getIdsForTitle(
$title,
$type, $partialmatch);
266 return parent::_lookupDescription($a_id);
270 return parent::_lookupLastUpdate($a_id, $a_as_string);
274 return parent::_getLastUpdateOfObjects($a_objs);
278 return parent::_lookupObjId($a_id);
282 return parent::_setDeletedDate($a_ref_id, $a_deleted_by);
286 return parent::_resetDeletedDate($a_ref_id);
290 return parent::_lookupDeletedDate($a_ref_id);
294 return parent::_writeTitle($a_obj_id, $a_title);
298 return parent::_writeDescription($a_obj_id, $a_desc);
302 return parent::_writeImportId($a_obj_id, $a_import_id);
304 final public static function _lookupType($a_id, $a_reference =
false)
306 return parent::_lookupType($a_id, $a_reference);
310 return parent::_isInTrash($a_ref_id);
314 return parent::_hasUntrashedReference($a_obj_id);
318 return parent::_lookupObjectId($a_ref_id);
322 return parent::_getObjectsDataForType($a_type, $a_omit_trash);
326 return parent::putInTree($a_parent_ref);
330 return parent::setPermissions($a_parent_ref);
334 return parent::createReference();
338 return parent::countReferences();
341 final public function delete()
344 if (parent::delete()) {
367 final public static function _exists($a_id, $a_reference =
false, $a_type =
null)
369 return parent::_exists($a_id, $a_reference, $a_type);
373 return parent::setRegisterMode($a_bool);
377 return parent::isUserRegistered($a_user_id);
381 return parent::requireRegistration();
387 return parent::_getObjectsByType($a_obj_type, $a_owner);
392 return parent::_prepareCloneSelection($a_ref_ids, $new_type, $a_show_path);
396 return parent::appendCopyInfo($a_target_id, $a_copy_id);
400 return parent::cloneMetaData($target_obj);
403 final public function cloneObject($a_target_id, $a_copy_id =
null, $a_omit_tree =
false)
406 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
425 return parent::cloneDependencies($a_target_id, $a_copy_id);
428 final public static function _getIcon($a_obj_id =
"", $a_size =
"big", $a_type =
"", $a_offline =
false)
430 return parent::_getIcon($a_obj_id, $a_size, $a_type, $a_offline);
An exception for terminatinating execution or to throw for unit testing.
Class ilObject2 This is an intermediate progress of ilObject class.
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
getPresentationTitle()
get presentation title Normally same as title Overwritten for sessions
setType($a_type)
set object type @access public
beforeCreate()
If overwritten this method should return true, there is currently no "abort" handling for cases where...
getRefId()
get reference id @access public
initDefaultRoles()
init default roles settings Purpose of this function is to create a local role folder and local roles...
setTitle($a_title)
set object title
MDUpdateListener($a_element)
Meta data update listener.
create($a_clone_mode=false)
createMetaData()
create meta data entry
countReferences()
count references of object
getOwner()
get object owner
cloneMetaData($target_obj)
Copy meta data.
isUserRegistered($a_user_id=0)
static _setDeletedDate($a_ref_id, $a_deleted_by)
static _getIdForImportId($a_import_id)
get current object id for import id (static)
getLongDescription()
get object long description (stored in object_description)
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
putInTree($a_parent_ref)
maybe this method should be in tree object!?
deleteMetaData()
delete meta data entry
static _getLastUpdateOfObjects($a_objs)
Get last update for a set of media objects.
static _lookupLastUpdate($a_id, $a_as_string=false)
lookup last update
static _lookupDescription($a_id)
lookup object description
cloneDependencies($a_target_id, $a_copy_id)
Clone object dependencies.
static _getIdsForTitle($title, $type='', $partialmatch=false)
setRefId($a_id)
set reference id @access public
cloneObject($a_target_id, $a_copy_id=null, $a_omit_tree=false)
getImportId()
get import id
getUntranslatedTitle()
get untranslated object title @access public
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
updateOwner()
update owner of object in db
appendCopyInfo($a_target_id, $a_copy_id)
Prepend Copy info if object with same name exists in that container.
static _lookupObjIdByImportId($a_import_id)
static _lookupDeletedDate($a_ref_id)
only called in ilObjectGUI::insertSavedNodes
static _prepareCloneSelection($a_ref_ids, $new_type, $a_show_path=true)
Prepare copy wizard object selection.
static _lookupOwner($a_id)
lookup object owner
doMDUpdateListener($a_element)
static _writeImportId($a_obj_id, $a_import_id)
write import id to db (static)
static _writeTitle($a_obj_id, $a_title)
write title to db (static)
updateMetaData()
update meta data entry
setPermissions($a_parent_ref)
set permissions of object
static _resetDeletedDate($a_ref_id)
only called in ilObjectGUI::insertSavedNodes
static _getAllReferences($a_id)
get all reference ids of object
static _getObjectsDataForType($a_type, $a_omit_trash=false)
get all objects of a certain type
withReferences()
determines wehter objects are referenced or not (got ref ids or not)
static _lookupTitle($a_id)
lookup object title
getType()
get object type @access public
static _lookupOwnerName($a_owner_id)
lookup owner name for owner id
getDescription()
get object description
static _writeDescription($a_obj_id, $a_desc)
write description to db (static)
beforeMDUpdateListener($a_element)
static _lookupObjId($a_id)
setOwner($a_owner)
set object owner
update()
update object in db
setDescription($a_desc)
set object description
static _lookupType($a_id, $a_reference=false)
lookup object type
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
createReference()
creates reference for object
static _isInTrash($a_ref_id)
checks wether object is in trash
__construct($a_id=0, $a_reference=true)
Constructor @access public.
setImportId($a_import_id)
set import id
getTitle()
get object title @access public
getCreateDate()
get create date @access public
getLastUpdateDate()
get last update date @access public
doCloneObject($new_obj, $a_target_id, $a_copy_id=null)
static _lookupObjectId($a_ref_id)
lookup object id
Class ilObject Basic functions for all objects.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc