4include_once(
"./Services/Object/classes/class.ilObject.php");
25 parent::__construct($a_id, $a_reference);
32 return parent::withReferences();
38 final public function read()
49 return parent::getId();
53 return parent::setId($a_id);
57 return parent::setRefId($a_id);
61 return parent::getRefId();
65 return parent::getType();
69 return parent::setType(
$a_type);
73 return parent::getPresentationTitle();
77 return parent::getTitle();
81 return parent::getUntranslatedTitle();
85 return parent::setTitle($a_title);
93 return parent::setDescription($a_desc);
97 return parent::getLongDescription();
101 return parent::getImportId();
105 return parent::setImportId($a_import_id);
109 return parent::_lookupObjIdByImportId($a_import_id);
113 return parent::getOwner();
117 return parent::getOwnerName();
121 return parent::_lookupOwnerName($a_owner_id);
125 return parent::setOwner($a_owner);
129 return parent::getCreateDate();
133 return parent::getLastUpdateDate();
136 final public function create($a_clone_mode =
false)
139 $id = parent::create();
182 if (parent::MDUpdateListener($a_element)) {
202 if (parent::createMetaData()) {
222 if (parent::updateMetaData()) {
241 return parent::deleteMetaData();
245 return parent::updateOwner();
249 return parent::_getIdForImportId($a_import_id);
253 return parent::_getAllReferences($a_id);
257 return parent::_lookupTitle($a_id);
261 return parent::_lookupOwner($a_id);
265 return parent::_getIdsForTitle(
$title,
$type, $partialmatch);
269 return parent::_lookupDescription($a_id);
273 return parent::_lookupLastUpdate($a_id, $a_as_string);
277 return parent::_getLastUpdateOfObjects($a_objs);
281 return parent::_lookupObjId($a_id);
285 return parent::_setDeletedDate($a_ref_id);
289 return parent::_resetDeletedDate($a_ref_id);
293 return parent::_lookupDeletedDate($a_ref_id);
297 return parent::_writeTitle($a_obj_id, $a_title);
301 return parent::_writeDescription($a_obj_id, $a_desc);
305 return parent::_writeImportId($a_obj_id, $a_import_id);
307 final public static function _lookupType($a_id, $a_reference =
false)
309 return parent::_lookupType($a_id, $a_reference);
313 return parent::_isInTrash($a_ref_id);
317 return parent::_hasUntrashedReference($a_obj_id);
321 return parent::_lookupObjectId($a_ref_id);
325 return parent::_getObjectsDataForType(
$a_type, $a_omit_trash);
329 return parent::putInTree($a_parent_ref);
333 return parent::setPermissions($a_parent_ref);
337 return parent::createReference();
341 return parent::countReferences();
344 final public function delete()
347 if (parent::delete()) {
370 final public static function _exists($a_id, $a_reference =
false,
$a_type =
null)
372 return parent::_exists($a_id, $a_reference,
$a_type);
376 return parent::setRegisterMode($a_bool);
380 return parent::isUserRegistered($a_user_id);
384 return parent::requireRegistration();
390 return parent::_getObjectsByType($a_obj_type, $a_owner);
395 return parent::_prepareCloneSelection($a_ref_ids, $new_type, $a_show_path);
399 return parent::appendCopyInfo($a_target_id, $a_copy_id);
403 return parent::cloneMetaData($target_obj);
406 final public function cloneObject($a_target_id, $a_copy_id =
null, $a_omit_tree =
false)
409 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
428 return parent::cloneDependencies($a_target_id, $a_copy_id);
431 final public static function _getIcon($a_obj_id =
"", $a_size =
"big",
$a_type =
"", $a_offline =
false)
433 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
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.
static _setDeletedDate($a_ref_id)
only called in ilTree::saveSubTree
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 _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
getId()
get object id @access public
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
setId($a_id)
set object id @access public
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.
update($pash, $contents, Config $config)