ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObject2 Class Reference

Class ilObject2 This is an intermediate progress of ilObject class. More...

+ Inheritance diagram for ilObject2:
+ Collaboration diagram for ilObject2:

Public Member Functions

 __construct ($a_id=0, $a_reference=true)
 Constructor public.
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not)
 read ($a_force_db=false)
 Read data from db.
 getId ()
 get object id public
 setId ($a_id)
 set object id public
 setRefId ($a_id)
 set reference id public
 getRefId ()
 get reference id public
 getType ()
 get object type public
 setType ($a_type)
 set object type public
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions
 getTitle ()
 get object title public
 getUntranslatedTitle ()
 get untranslated object title public
 setTitle ($a_title)
 set object title
 getDescription ()
 get object description
 setDescription ($a_desc)
 set object description
 getLongDescription ()
 get object long description (stored in object_description)
 getImportId ()
 get import id
 setImportId ($a_import_id)
 set import id
 getOwner ()
 get object owner
 getOwnerName ()
 _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id
 setOwner ($a_owner)
 set object owner
 getCreateDate ()
 get create date public
 getLastUpdateDate ()
 get last update date public
 setObjDataRecord ($a_record)
 set object_data record (note: this method should only be called from the ilObjectFactory class)
 create ($a_clone_mode=false)
 update ()
 update object in db
 MDUpdateListener ($a_element)
 Meta data update listener.
 createMetaData ()
 create meta data entry
 updateMetaData ()
 update meta data entry
 deleteMetaData ()
 delete meta data entry
 updateOwner ()
 update owner of object in db
 _getIdForImportId ($a_import_id)
 get current object id for import id (static)
 _lookupOwner ($a_id)
 lookup object owner
 _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update
 _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects.
 _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree
 _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes
 _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes
 _writeTitle ($a_obj_id, $a_title)
 write title to db (static)
 _writeDescription ($a_obj_id, $a_desc)
 write description to db (static)
 _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static)
 _isInTrash ($a_ref_id)
 checks wether object is in trash
 _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash
 _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!?
 setPermissions ($a_parent_ref)
 set permissions of object
 createReference ()
 creates reference for object
 countReferences ()
 count references of object
 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!!
 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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public
 createRoleFolder ()
 creates a local role folder
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event passed, each object may decide how it reacts.
 setRegisterMode ($a_bool)
 isUserRegistered ($a_user_id=0)
 requireRegistration ()
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container.
 cloneMetaData ($target_obj)
 Copy meta data.
 cloneObject ($a_target_id, $a_copy_id=null, $a_omit_tree=false)
 Clone object permissions, put in tree ...
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies.
- Public Member Functions inherited from ilObject
 ilObject ($a_id=0, $a_reference=true)
 Constructor public.
 getDiskUsage ()
 Gets the disk usage of the object in bytes.
 create ()
 create
 applyDidacticTemplate ($a_tpl_id)
 Apply template.
 getXMLZip ()
 getHTMLDirectory ()
 _lookupCreationDate ($a_id)
 Lookup creation date.

Static Public Member Functions

static _lookupObjIdByImportId ($a_import_id)
static _getAllReferences ($a_id)
 get all reference ids of object
static _lookupTitle ($a_id)
 lookup object title
static _getIdsForTitle ($title, $type= '', $partialmatch=false)
static _lookupDescription ($a_id)
 lookup object description
static _lookupObjId ($a_id)
static _lookupType ($a_id, $a_reference=false)
 lookup object type
static _lookupObjectId ($a_ref_id)
 lookup object id
static _exists ($a_id, $a_reference=false)
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type.
static _prepareCloneSelection ($a_ref_ids, $new_type)
static _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
 Get icon for repository item.
- Static Public Member Functions inherited from ilObject
static setDeletedDates ($a_ref_ids)
 Set deleted date type $ilDB.
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection.
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies.
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies.
static getLongDescriptions (array $a_obj_ids)
 Get long description data.
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns.
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course.

Protected Member Functions

 initType ()
 doRead ()
 doCreate ()
 beforeCreate ()
 doUpdate ()
 beforeUpdate ()
 doMDUpdateListener ($a_element)
 beforeMDUpdateListener ($a_element)
 doCreateMetaData ()
 beforeCreateMetaData ()
 doUpdateMetaData ()
 beforeUpdateMetaData ()
 doDelete ()
 beforeDelete ()
 doCloneObject ($new_obj, $a_target_id, $a_copy_id=null)
 beforeCloneObject ()

Additional Inherited Members

- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 max length of object title
const DESC_LENGTH = 128
 $ilias
 $lng
 $id
 $ref_id
 $type
 $title
 $untranslatedTitle
 $desc
 $long_desc
 $owner
 $create_date
 $last_update
 $import_id
 $register = false
 $referenced
 $objectList
 $max_title
 $max_desc
 $add_dots
 $obj_data_record
 object_data record

Detailed Description

Class ilObject2 This is an intermediate progress of ilObject class.

Please do not ust it yet.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilObject2.php.

Constructor & Destructor Documentation

ilObject2::__construct (   $a_id = 0,
  $a_reference = true 
)

Constructor public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

Reimplemented in ilObjCloud, ilObjFile, ilObjPoll, ilRemoteObjectBase, ilObjItemGroup, ilVerificationObject, and ilObjTermsOfService.

Definition at line 22 of file class.ilObject2.php.

References ilObject\ilObject(), and initType().

Referenced by ilObjHelpSettings\ilObjHelpSettings().

{
$this->initType();
parent::ilObject($a_id, $a_reference);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

static ilObject2::_exists (   $a_id,
  $a_reference = false 
)
staticfinal
static ilObject2::_getAllReferences (   $a_id)
staticfinal

get all reference ids of object

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 190 of file class.ilObject2.php.

Referenced by ilObjDataCollection\_checkAccess().

{ return parent::_getAllReferences($a_id); }

+ Here is the caller graph for this function:

static ilObject2::_getIcon (   $a_obj_id = "",
  $a_size = "big",
  $a_type = "",
  $a_offline = false 
)
staticfinal

Get icon for repository item.

Parameters
intobject id
stringsize (big, small, tiny)
stringobject type
booleantrue: offline, false: online

Reimplemented from ilObject.

Definition at line 279 of file class.ilObject2.php.

{ return parent::_getIcon($a_obj_id, $a_size, $a_type, $a_offline); }
ilObject2::_getIdForImportId (   $a_import_id)
final

get current object id for import id (static)

Parameters
int$a_import_idimport id
Returns
int id

Reimplemented from ilObject.

Definition at line 189 of file class.ilObject2.php.

{ return parent::_getIdForImportId($a_import_id); }
static ilObject2::_getIdsForTitle (   $title,
  $type = '',
  $partialmatch = false 
)
staticfinal

Reimplemented from ilObject.

Definition at line 193 of file class.ilObject2.php.

References ilObject\$title, and ilObject\$type.

{ return parent::_getIdsForTitle($title, $type, $partialmatch); }
ilObject2::_getLastUpdateOfObjects (   $a_objs)
final

Get last update for a set of media objects.

Parameters
array

Reimplemented from ilObject.

Definition at line 196 of file class.ilObject2.php.

{ return parent::_getLastUpdateOfObjects($a_objs); }
static ilObject2::_getObjectsByType (   $a_obj_type = "",
  $a_owner = "" 
)
staticfinal

Get objects by type.

Reimplemented from ilObject.

Definition at line 248 of file class.ilObject2.php.

{ return parent::_getObjectsByType($a_obj_type, $a_owner); }
ilObject2::_getObjectsDataForType (   $a_type,
  $a_omit_trash = false 
)
final

get all objects of a certain type

Parameters
string$a_typedesired object type
boolean$a_omit_trashomit objects, that are in trash only (default: false)
Returns
array array of object data arrays ("id", "title", "type", "description")

Reimplemented from ilObject.

Definition at line 208 of file class.ilObject2.php.

{ return parent::_getObjectsDataForType($a_type, $a_omit_trash); }
ilObject2::_hasUntrashedReference (   $a_obj_id)
final

checks wether an object has at least one reference that is not in trash

Reimplemented from ilObject.

Definition at line 206 of file class.ilObject2.php.

{ return parent::_hasUntrashedReference($a_obj_id); }
ilObject2::_isInTrash (   $a_ref_id)
final

checks wether object is in trash

Reimplemented from ilObject.

Definition at line 205 of file class.ilObject2.php.

{ return parent::_isInTrash($a_ref_id); }
ilObject2::_lookupDeletedDate (   $a_ref_id)
final

only called in ilObjectGUI::insertSavedNodes

Reimplemented from ilObject.

Definition at line 200 of file class.ilObject2.php.

{ return parent::_lookupDeletedDate($a_ref_id); }
static ilObject2::_lookupDescription (   $a_id)
staticfinal

lookup object description

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 194 of file class.ilObject2.php.

{ return parent::_lookupDescription($a_id); }
ilObject2::_lookupLastUpdate (   $a_id,
  $a_as_string = false 
)
final

lookup last update

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 195 of file class.ilObject2.php.

{ return parent::_lookupLastUpdate($a_id, $a_as_string); }
static ilObject2::_lookupObjectId (   $a_ref_id)
staticfinal

lookup object id

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 207 of file class.ilObject2.php.

Referenced by ilDataCollectionILIASRefField\getStatus().

{ return parent::_lookupObjectId($a_ref_id); }

+ Here is the caller graph for this function:

static ilObject2::_lookupObjId (   $a_id)
staticfinal

Reimplemented from ilObject.

Definition at line 197 of file class.ilObject2.php.

Referenced by ilObjBlog\deliverRSS(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), and ilObjBlog\sendNotification().

{ return parent::_lookupObjId($a_id); }

+ Here is the caller graph for this function:

static ilObject2::_lookupObjIdByImportId (   $a_import_id)
staticfinal

Reimplemented from ilObject.

Definition at line 60 of file class.ilObject2.php.

{ return parent::_lookupObjIdByImportId($a_import_id); }
ilObject2::_lookupOwner (   $a_id)
final

lookup object owner

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 192 of file class.ilObject2.php.

{ return parent::_lookupOwner($a_id); }
ilObject2::_lookupOwnerName (   $a_owner_id)
final

lookup owner name for owner id

Reimplemented from ilObject.

Definition at line 63 of file class.ilObject2.php.

{ return parent::_lookupOwnerName($a_owner_id); }
static ilObject2::_lookupTitle (   $a_id)
staticfinal
static ilObject2::_lookupType (   $a_id,
  $a_reference = false 
)
staticfinal

lookup object type

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 204 of file class.ilObject2.php.

Referenced by ilDataCollectionDatatype\parseExportValue(), ilDataCollectionDatatype\parseFormInput(), ilDataCollectionDatatype\parseHTML(), and ilDataCollectionDatatype\passThroughFilter().

{ return parent::_lookupType($a_id,$a_reference); }

+ Here is the caller graph for this function:

static ilObject2::_prepareCloneSelection (   $a_ref_ids,
  $new_type 
)
staticfinal

Definition at line 250 of file class.ilObject2.php.

{ return parent::_prepareCloneSelection($a_ref_ids,$new_type); }
ilObject2::_resetDeletedDate (   $a_ref_id)
final

only called in ilObjectGUI::insertSavedNodes

Reimplemented from ilObject.

Definition at line 199 of file class.ilObject2.php.

{ return parent::_resetDeletedDate($a_ref_id); }
ilObject2::_setDeletedDate (   $a_ref_id)
final

only called in ilTree::saveSubTree

Reimplemented from ilObject.

Definition at line 198 of file class.ilObject2.php.

{ return parent::_setDeletedDate($a_ref_id); }
ilObject2::_writeDescription (   $a_obj_id,
  $a_desc 
)
final

write description to db (static)

Parameters
int$a_obj_idobject id
string$a_descdescription public

Reimplemented from ilObject.

Definition at line 202 of file class.ilObject2.php.

{ return parent::_writeDescription($a_obj_id, $a_desc); }
ilObject2::_writeImportId (   $a_obj_id,
  $a_import_id 
)
final

write import id to db (static)

Parameters
int$a_obj_idobject id
string$a_import_idimport id public

Reimplemented from ilObject.

Definition at line 203 of file class.ilObject2.php.

{ return parent::_writeImportId($a_obj_id, $a_import_id); }
ilObject2::_writeTitle (   $a_obj_id,
  $a_title 
)
final

write title to db (static)

Parameters
int$a_obj_idobject id
string$a_titletitle public

Reimplemented from ilObject.

Definition at line 201 of file class.ilObject2.php.

{ return parent::_writeTitle($a_obj_id, $a_title); }
ilObject2::appendCopyInfo (   $a_target_id,
  $a_copy_id 
)
final

Prepend Copy info if object with same name exists in that container.

public

Parameters
intcopy_id

Reimplemented from ilObject.

Definition at line 251 of file class.ilObject2.php.

{ return parent::appendCopyInfo($a_target_id,$a_copy_id); }
ilObject2::beforeCloneObject ( )
protected

Definition at line 272 of file class.ilObject2.php.

Referenced by cloneObject().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeCreate ( )
protected

Reimplemented in ilRemoteObjectBase.

Definition at line 87 of file class.ilObject2.php.

Referenced by create().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeCreateMetaData ( )
protected

Definition at line 159 of file class.ilObject2.php.

Referenced by createMetaData().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeDelete ( )
protected

Reimplemented in ilObjFile.

Definition at line 233 of file class.ilObject2.php.

Referenced by delete().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeMDUpdateListener (   $a_element)
protected

Reimplemented in ilObjFile.

Definition at line 136 of file class.ilObject2.php.

Referenced by MDUpdateListener().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeUpdate ( )
protected

Reimplemented in ilObjFile.

Definition at line 113 of file class.ilObject2.php.

Referenced by update().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeUpdateMetaData ( )
protected

Definition at line 182 of file class.ilObject2.php.

Referenced by updateMetaData().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::cloneDependencies (   $a_target_id,
  $a_copy_id 
)

Clone object dependencies.

This method allows to refresh any ref id references to other objects that are affected in the same copy process. Ask ilCopyWizardOptions for the mappings.

public

Parameters
intref_id of target object
intcopy_id

Reimplemented from ilObject.

Reimplemented in ilObjItemGroup, and ilObjWorkspaceFolder.

Definition at line 277 of file class.ilObject2.php.

{ return parent::cloneDependencies($a_target_id,$a_copy_id); }
ilObject2::cloneMetaData (   $target_obj)
final

Copy meta data.

public

Parameters
objecttarget object

Reimplemented from ilObject.

Definition at line 252 of file class.ilObject2.php.

Referenced by ilObjFile\doCloneObject().

{ return parent::cloneMetaData($target_obj); }

+ Here is the caller graph for this function:

ilObject2::cloneObject (   $a_target_id,
  $a_copy_id = null,
  $a_omit_tree = false 
)
final

Clone object permissions, put in tree ...

public

Parameters
inttarget id
intcopy id for class.ilCopyWizardOptions()
Returns
object new object

Reimplemented from ilObject.

Definition at line 254 of file class.ilObject2.php.

References beforeCloneObject(), and doCloneObject().

{
if($this->beforeCloneObject())
{
$new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
if($new_obj)
{
$this->doCloneObject($new_obj, $a_target_id, $a_copy_id);
return $new_obj;
}
}
}

+ Here is the call graph for this function:

ilObject2::countReferences ( )
final

count references of object

public

Returns
integer number of references for this object

Reimplemented from ilObject.

Definition at line 212 of file class.ilObject2.php.

ilObject2::create (   $a_clone_mode = false)
final

Definition at line 69 of file class.ilObject2.php.

References ilObject\$id, beforeCreate(), ilObject\create(), and doCreate().

{
if($this->beforeCreate())
{
if($id)
{
$this->doCreate($a_clone_mode);
return $id;
}
}
}

+ Here is the call graph for this function:

ilObject2::createMetaData ( )
final

create meta data entry

Reimplemented from ilObject.

Definition at line 141 of file class.ilObject2.php.

References beforeCreateMetaData(), and doCreateMetaData().

Referenced by ilObjFile\createProperties().

{
if($this->beforeCreateMetaData())
{
if(parent::createMetaData())
{
$this->doCreateMetaData();
return true;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject2::createReference ( )
final

creates reference for object

public

Returns
integer reference_id of object

Reimplemented from ilObject.

Definition at line 211 of file class.ilObject2.php.

Referenced by ilRemoteObjectBase\createFromECSEContent().

+ Here is the caller graph for this function:

ilObject2::createRoleFolder ( )
final

creates a local role folder

public

Parameters
stringrolefolder title
stringrolefolder description
objectparent object where the rolefolder is attached to
Returns
object rolefolder object

Reimplemented from ilObject.

Definition at line 240 of file class.ilObject2.php.

Referenced by ilObjBlog\initDefaultRoles().

+ Here is the caller graph for this function:

ilObject2::delete ( )
final

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!!

public

Returns
boolean true if object was removed completely; false if only a references was removed

Reimplemented from ilObject.

Definition at line 214 of file class.ilObject2.php.

References beforeDelete(), and doDelete().

Referenced by ilObjTaxonomyGUI\confirmedDelete().

{
if($this->beforeDelete())
{
if(parent::delete())
{
$this->doDelete();
$this->id = null;
return true;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject2::deleteMetaData ( )
final

delete meta data entry

Reimplemented from ilObject.

Definition at line 187 of file class.ilObject2.php.

Referenced by ilObjFile\doDelete().

+ Here is the caller graph for this function:

ilObject2::doCloneObject (   $new_obj,
  $a_target_id,
  $a_copy_id = null 
)
protected

Reimplemented in ilObjFile, ilObjItemGroup, ilObjTaxonomy, ilObjPortfolioTemplate, and ilObjWorkspaceFolder.

Definition at line 267 of file class.ilObject2.php.

Referenced by cloneObject().

{
}

+ Here is the caller graph for this function:

ilObject2::doCreate ( )
protected

Reimplemented in ilRemoteObjectBase, ilObjPortfolioBase, ilVerificationObject, ilObjPoll, ilObjTaxonomy, ilObjItemGroup, ilObjBibliographic, ilObjCloud, ilObjDataCollection, ilObjBlog, and ilObjPortfolioTemplate.

Definition at line 82 of file class.ilObject2.php.

Referenced by create().

{
}

+ Here is the caller graph for this function:

ilObject2::doCreateMetaData ( )
protected

Reimplemented in ilObjFile.

Definition at line 154 of file class.ilObject2.php.

Referenced by createMetaData().

{
}

+ Here is the caller graph for this function:

ilObject2::doDelete ( )
protected

Reimplemented in ilObjFile, ilRemoteObjectBase, ilObjPortfolioBase, ilVerificationObject, ilObjPoll, ilObjTaxonomy, ilObjItemGroup, ilObjCloud, ilObjDataCollection, and ilObjBlog.

Definition at line 228 of file class.ilObject2.php.

Referenced by delete(), and ilObjBibliographic\doUpdate().

{
}

+ Here is the caller graph for this function:

ilObject2::doMDUpdateListener (   $a_element)
protected

Reimplemented in ilObjFile.

Definition at line 131 of file class.ilObject2.php.

Referenced by MDUpdateListener().

{
}

+ Here is the caller graph for this function:

ilObject2::doRead ( )
protected

Reimplemented in ilRemoteObjectBase, ilObjFile, ilObjTaxonomy, ilObjPortfolioBase, ilVerificationObject, ilObjPoll, ilObjBibliographic, ilObjCloud, ilObjItemGroup, ilObjBlog, ilObjDataCollection, and ilObjPortfolioTemplate.

Definition at line 40 of file class.ilObject2.php.

Referenced by read().

{
}

+ Here is the caller graph for this function:

ilObject2::doUpdate ( )
protected
ilObject2::doUpdateMetaData ( )
protected

Reimplemented in ilObjFile.

Definition at line 177 of file class.ilObject2.php.

Referenced by updateMetaData().

{
}

+ Here is the caller graph for this function:

ilObject2::getCreateDate ( )
final

get create date public

Returns
string creation date

Reimplemented from ilObject.

Definition at line 65 of file class.ilObject2.php.

{ return parent::getCreateDate(); }
ilObject2::getDescription ( )
final

get object description

public

Returns
string object description

Reimplemented from ilObject.

Definition at line 55 of file class.ilObject2.php.

Referenced by ilObjFile\addNewsNotification(), and ilObjTaxonomy\doCloneObject().

+ Here is the caller graph for this function:

ilObject2::getId ( )
final

get object id public

Returns
integer object id

Reimplemented from ilObject.

Definition at line 45 of file class.ilObject2.php.

Referenced by ilObjFile\__construct(), ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap\addDuplicatedTaxonomy(), ilObjFile\addFileVersion(), ilObjFile\addNewsNotification(), ilObjWorkspaceRootFolder\addTranslation(), ilObjCloudGUI\afterSave(), ilObjFile\beforeMDUpdateListener(), ilObjPortfolioBase\cloneBasics(), ilObjPortfolioBase\clonePagesAndSettings(), ilObjDataCollection\cloneStructure(), ilObjPoll\countVotes(), ilRemoteObjectBase\createAuthResource(), ilObjFile\createProperties(), ilObjPoll\deleteAllAnswers(), ilObjPoll\deleteAllVotes(), ilObjFile\deletePreview(), ilObjFile\deleteVersions(), ilObjPortfolioTemplate\doCloneObject(), ilObjBlog\doCloneObject(), ilObjBibliographic\doCloneObject(), ilObjFile\doCloneObject(), ilObjDataCollection\doCreate(), ilObjItemGroup\doCreate(), ilObjTaxonomy\doCreate(), ilObjPoll\doCreate(), ilRemoteObjectBase\doCreate(), ilObjFile\doCreateMetaData(), ilObjDataCollection\doDelete(), ilObjCloud\doDelete(), ilObjBibliographic\doDelete(), ilObjItemGroup\doDelete(), ilObjTaxonomy\doDelete(), ilObjPoll\doDelete(), ilRemoteObjectBase\doDelete(), ilObjFile\doDelete(), ilObjFile\doMDUpdateListener(), ilObjFile\doRead(), ilRemoteObjectBase\doRead(), ilObjItemGroup\doUpdate(), ilObjDataCollection\doUpdate(), ilObjPoll\doUpdate(), ilRemoteObjectBase\doUpdate(), ilObjFile\doUpdate(), ilObjFile\doUpdateMetaData(), ilObjFile\export(), ilObjPoll\getAnswers(), ilObjBibliographic\getFileDirectory(), ilVerificationObject\getFilePath(), ilRemoteObjectBase\getFullRemoteLink(), ilObjDataCollection\getTables(), ilObjWorkspaceRootFolder\getTranslations(), ilObjTaxonomy\getTree(), ilObjFile\getUsages(), ilObjFile\getVersions(), ilObjPoll\getVotePercentages(), ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), ilObjBlog\handleQuotaUpdate(), ilObjFile\handleQuotaUpdate(), ilObjDataCollection\hasPermissionToAddTable(), ilObjPoll\hasUserVoted(), ilRemoteObjectBase\importMetadataFromJson(), ilObjBlog\initDefaultRoles(), ilObjFile\initFileStorage(), ilObjWorkspaceRootFolder\removeTranslations(), ilObjFile\replaceFile(), ilObjFile\rollback(), ilObjPoll\saveAnswer(), ilObjPoll\saveVote(), ilRemoteObjectBase\updateFromECSContent(), and ilObjBibliographic\writeSourcefileEntriesToDb().

{ return parent::getId(); }

+ Here is the caller graph for this function:

ilObject2::getImportId ( )
final

get import id

public

Returns
string import id

Reimplemented from ilObject.

Definition at line 58 of file class.ilObject2.php.

{ return parent::getImportId(); }
ilObject2::getLastUpdateDate ( )
final

get last update date public

Returns
string date of last update

Reimplemented from ilObject.

Definition at line 66 of file class.ilObject2.php.

ilObject2::getLongDescription ( )
final

get object long description (stored in object_description)

public

Returns
string object description

Reimplemented from ilObject.

Definition at line 57 of file class.ilObject2.php.

ilObject2::getOwner ( )
final

get object owner

public

Returns
integer owner id

Reimplemented from ilObject.

Definition at line 61 of file class.ilObject2.php.

{ return parent::getOwner(); }
ilObject2::getOwnerName ( )
final

Reimplemented from ilObject.

Definition at line 62 of file class.ilObject2.php.

{ return parent::getOwnerName(); }
ilObject2::getPresentationTitle ( )
final

get presentation title Normally same as title Overwritten for sessions

public

Parameters
@return

Reimplemented from ilObject.

Definition at line 51 of file class.ilObject2.php.

ilObject2::getRefId ( )
final

get reference id public

Returns
integer reference id

Reimplemented from ilObject.

Definition at line 48 of file class.ilObject2.php.

Referenced by ilObjItemGroup\cloneDependencies(), ilObjDataCollection\doCloneObject(), ilObjWorkspaceFolder\downloadFolder(), ilObjBlog\initDefaultRoles(), and ilBibliographicDetailsGUI\showDetails().

{ return parent::getRefId(); }

+ Here is the caller graph for this function:

ilObject2::getTitle ( )
final
ilObject2::getUntranslatedTitle ( )
final

get untranslated object title public

Returns
string object title

Reimplemented from ilObject.

Definition at line 53 of file class.ilObject2.php.

ilObject2::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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public

Returns
array empty array

Reimplemented from ilObject.

Reimplemented in ilObjBlog.

Definition at line 238 of file class.ilObject2.php.

{ return array(); }
ilObject2::isUserRegistered (   $a_user_id = 0)
final

Reimplemented from ilObject.

Definition at line 244 of file class.ilObject2.php.

{ return parent::isUserRegistered($a_user_id); }
ilObject2::MDUpdateListener (   $a_element)
final

Meta data update listener.

Important note: Do never call create() or update() method of ilObject here. It would result in an endless loop: update object -> update meta -> update object -> ... Use static _writeTitle() ... methods instead.

Parameters
string$a_element

Reimplemented from ilObject.

Definition at line 118 of file class.ilObject2.php.

References beforeMDUpdateListener(), and doMDUpdateListener().

{
if($this->beforeMDUpdateListener($a_element))
{
if(parent::MDUpdateListener($a_element))
{
$this->doMDUpdateListener($a_element);
return true;
}
}
return false;
}

+ Here is the call graph for this function:

ilObject2::notify (   $a_event,
  $a_ref_id,
  $a_parent_non_rbac_id,
  $a_node_id,
  $a_params = 0 
)

notifys an object about an event occured Based on the event passed, each object may decide how it reacts.

TODO: add optional array to pass parameters

public

Parameters
stringevent
integerreference id of object where the event occured
integerreference id of node in the tree which is actually notified
arraypasses optional parameters if required
Returns
boolean

Reimplemented from ilObject.

Reimplemented in ilObjWorkspaceRootFolder.

Definition at line 242 of file class.ilObject2.php.

{ return parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params); }
ilObject2::putInTree (   $a_parent_ref)
final

maybe this method should be in tree object!?

Todo:
role/rbac stuff

Reimplemented from ilObject.

Definition at line 209 of file class.ilObject2.php.

Referenced by ilObjTaxonomy\cloneNodes(), and ilRemoteObjectBase\createFromECSEContent().

{ return parent::putInTree($a_parent_ref); }

+ Here is the caller graph for this function:

ilObject2::read (   $a_force_db = false)
final

Read data from db.

Reimplemented from ilObject.

Definition at line 35 of file class.ilObject2.php.

References doRead().

{
parent::read($a_force_db);
$this->doRead();
}

+ Here is the call graph for this function:

ilObject2::requireRegistration ( )
final

Reimplemented from ilObject.

Definition at line 245 of file class.ilObject2.php.

ilObject2::setDescription (   $a_desc)
final

set object description

public

Parameters
string$a_descobject description

Reimplemented from ilObject.

Definition at line 56 of file class.ilObject2.php.

Referenced by ilObjBibliographic\cloneStructure(), and ilRemoteObjectBase\updateFromECSContent().

{ return parent::setDescription($a_desc); }

+ Here is the caller graph for this function:

ilObject2::setId (   $a_id)
final

set object id public

Parameters
integer$a_idobject id

Reimplemented from ilObject.

Definition at line 46 of file class.ilObject2.php.

Referenced by ilObjBibliographic\__construct().

{ return parent::setId($a_id); }

+ Here is the caller graph for this function:

ilObject2::setImportId (   $a_import_id)
final

set import id

public

Parameters
string$a_import_idimport id

Reimplemented from ilObject.

Definition at line 59 of file class.ilObject2.php.

{ return parent::setImportId($a_import_id); }
ilObject2::setObjDataRecord (   $a_record)
final

set object_data record (note: this method should only be called from the ilObjectFactory class)

Parameters
array$a_recordassoc. array from table object_data public
Returns
integer object id

Reimplemented from ilObject.

Definition at line 67 of file class.ilObject2.php.

{ return parent::setObjDataRecord($a_record); }
ilObject2::setOwner (   $a_owner)
final

set object owner

public

Parameters
integer$a_ownerowner id

Reimplemented from ilObject.

Definition at line 64 of file class.ilObject2.php.

Referenced by ilRemoteObjectBase\beforeCreate().

{ return parent::setOwner($a_owner); }

+ Here is the caller graph for this function:

ilObject2::setPermissions (   $a_parent_ref)
final

set permissions of object

Parameters
integerreference_id of parent object public

Reimplemented from ilObject.

Definition at line 210 of file class.ilObject2.php.

Referenced by ilRemoteObjectBase\createFromECSEContent().

{ return parent::setPermissions($a_parent_ref); }

+ Here is the caller graph for this function:

ilObject2::setRefId (   $a_id)
final

set reference id public

Parameters
integer$a_idreference id

Reimplemented from ilObject.

Definition at line 47 of file class.ilObject2.php.

{ return parent::setRefId($a_id); }
ilObject2::setRegisterMode (   $a_bool)
final

Reimplemented from ilObject.

Definition at line 243 of file class.ilObject2.php.

{ return parent::setRegisterMode($a_bool); }
ilObject2::setTitle (   $a_title)
final

set object title

public

Parameters
string$a_titleobject title

Reimplemented from ilObject.

Definition at line 54 of file class.ilObject2.php.

Referenced by ilObjBibliographic\cloneStructure(), ilRemoteObjectBase\updateFromECSContent(), and ilObjFile\updateWithVersion().

{ return parent::setTitle($a_title); }

+ Here is the caller graph for this function:

ilObject2::setType (   $a_type)
final

set object type public

Parameters
integer$a_typeobject type

Reimplemented from ilObject.

Definition at line 50 of file class.ilObject2.php.

Referenced by ilObjBibliographic\cloneStructure().

{ return parent::setType($a_type); }

+ Here is the caller graph for this function:

ilObject2::update ( )
final

update object in db

public

Returns
boolean true on success

Reimplemented from ilObject.

Definition at line 92 of file class.ilObject2.php.

References beforeUpdate(), and doUpdate().

Referenced by ilObjCloudGUI\afterSave(), ilObjPortfolioBase\cloneBasics(), ilObjBlog\doCloneObject(), ilObjPoll\doCloneObject(), ilRemoteObjectBase\updateFromECSContent(), and ilObjFile\updateWithVersion().

{
if($this->beforeUpdate())
{
if (!parent::update())
{
return false;
}
$this->doUpdate();
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject2::updateMetaData ( )
final

update meta data entry

Reimplemented from ilObject.

Definition at line 164 of file class.ilObject2.php.

References beforeUpdateMetaData(), and doUpdateMetaData().

Referenced by ilObjFile\beforeUpdate().

{
if($this->beforeUpdateMetaData())
{
if(parent::updateMetaData())
{
$this->doUpdateMetaData();
return true;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject2::updateOwner ( )
final

update owner of object in db

public

Returns
boolean true on success

Reimplemented from ilObject.

Definition at line 188 of file class.ilObject2.php.

{ return parent::updateOwner(); }
ilObject2::withReferences ( )
final

determines wehter objects are referenced or not (got ref ids or not)

Reimplemented from ilObject.

Definition at line 30 of file class.ilObject2.php.


The documentation for this class was generated from the following file: