ILIAS  Release_4_1_x_branch Revision 61804
 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.
 initType ()
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not)
 read ($a_force_db=false)
 Read data from db.
 doRead ()
 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
 _lookupObjIdByImportId ($a_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 ()
 create
 doCreate ()
 update ()
 update object in db
 doUpdate ()
 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
 _lookupDescription ($a_id)
 lookup object description
 _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
 _lookupObjectId ($a_ref_id)
 lookup object id
 _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!!
 doDelete ()
 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
 _exists ($a_id, $a_reference=false)
 checks if an object exists in object_data
 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 ()
 getXMLZip ()
 getHTMLDirectory ()
 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=0)
 Clone object permissions, put in tree ...
 doClone ($a_target_id, $a_copy_id, $new_obj)
 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.

Static Public Member Functions

static _getAllReferences ($a_id)
 get all reference ids of object
static _lookupTitle ($a_id)
 lookup object title
static _getIdsForTitle ($title, $type= '', $partialmatch=false)
static _lookupObjId ($a_id)
static _lookupType ($a_id, $a_reference=false)
 lookup object type
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type.
static _prepareCloneSelection ($a_ref_ids, $new_type)
 Prepare copy wizard object selection.
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 collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies.
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies.

Protected Member Functions

 beforeCreate ()
 beforeUpdate ()
 beforeDelete ()
 beforeClone ()

Additional Inherited Members

- Data Fields inherited from ilObject
const TITLE_LENGTH = 128
 max length of object title
 $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)

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

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

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

+ Here is the call graph for this function:

Member Function Documentation

ilObject2::_exists (   $a_id,
  $a_reference = false 
)
final

checks if an object exists in object_data

public

Parameters
integerobject id or reference id
booleanture if id is a reference, else false (default)
Returns
boolean true if object exists

Reimplemented from ilObject.

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

{ return parent::_exists($a_id, $a_reference); }
static ilObject2::_getAllReferences (   $a_id)
staticfinal

get all reference ids of object

Parameters
int$a_idobject id

Reimplemented from ilObject.

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

{ return parent::_getAllReferences($a_id); }
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 185 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 106 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 110 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 113 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 163 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 125 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 123 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 122 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 117 of file class.ilObject2.php.

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

lookup object description

Parameters
int$a_idobject id

Reimplemented from ilObject.

Definition at line 111 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 112 of file class.ilObject2.php.

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

lookup object id

Parameters
int$a_idobject id

Reimplemented from ilObject.

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

{ return parent::_lookupObjectId($a_ref_id); }
static ilObject2::_lookupObjId (   $a_id)
staticfinal

Reimplemented from ilObject.

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

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

Reimplemented from ilObject.

Definition at line 57 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 109 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 60 of file class.ilObject2.php.

{ return parent::_lookupOwnerName($a_owner_id); }
static ilObject2::_lookupTitle (   $a_id)
staticfinal

lookup object title

Parameters
int$a_idobject id

Reimplemented from ilObject.

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

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

lookup object type

Parameters
int$a_idobject id

Reimplemented from ilObject.

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

{ return parent::_lookupType($a_id,$a_reference); }
static ilObject2::_prepareCloneSelection (   $a_ref_ids,
  $new_type 
)
staticfinal

Prepare copy wizard object selection.

public

Parameters
arrayint array of ref ids

Reimplemented from ilObject.

Definition at line 165 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 116 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 115 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 119 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 120 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 118 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 166 of file class.ilObject2.php.

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

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

Referenced by cloneObject().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeCreate ( )
protected

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

Referenced by create().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeDelete ( )
protected

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

Referenced by delete().

{
return true;
}

+ Here is the caller graph for this function:

ilObject2::beforeUpdate ( )
protected

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

Referenced by update().

{
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.

Definition at line 183 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 167 of file class.ilObject2.php.

{ return parent::cloneMetaData($target_obj); }
ilObject2::cloneObject (   $a_target_id,
  $a_copy_id = 0 
)
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 169 of file class.ilObject2.php.

References beforeClone(), and doClone().

{
$this->beforeClone();
$new_obj = parent::cloneObject($a_target_id,$a_copy_id);
$this->doClone($a_target_id,$a_copy_id,$new_obj);
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 129 of file class.ilObject2.php.

ilObject2::create ( )
final

create

note: title, description and type should be set when this function is called

public

Returns
integer object id

Reimplemented from ilObject.

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

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

{
$this->beforeCreate();
$this->doCreate();
}

+ Here is the call graph for this function:

ilObject2::createMetaData ( )
final

create meta data entry

Reimplemented from ilObject.

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

ilObject2::createReference ( )
final

creates reference for object

public

Returns
integer reference_id of object

Reimplemented from ilObject.

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

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 155 of file class.ilObject2.php.

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 131 of file class.ilObject2.php.

References beforeDelete(), and doDelete().

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

+ Here is the call graph for this function:

ilObject2::deleteMetaData ( )
final

delete meta data entry

Reimplemented from ilObject.

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

ilObject2::doClone (   $a_target_id,
  $a_copy_id,
  $new_obj 
)
abstract

Referenced by cloneObject().

+ Here is the caller graph for this function:

ilObject2::doCreate ( )
abstract

Referenced by create().

+ Here is the caller graph for this function:

ilObject2::doDelete ( )
abstract

Referenced by delete().

+ Here is the caller graph for this function:

ilObject2::doRead ( )
abstract

Referenced by read().

+ Here is the caller graph for this function:

ilObject2::doUpdate ( )
abstract

Referenced by update().

+ 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 62 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 52 of file class.ilObject2.php.

ilObject2::getHTMLDirectory ( )
final

Reimplemented from ilObject.

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

ilObject2::getId ( )
final

get object id public

Returns
integer object id

Reimplemented from ilObject.

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

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

get import id

public

Returns
string import id

Reimplemented from ilObject.

Definition at line 55 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 63 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 54 of file class.ilObject2.php.

ilObject2::getOwner ( )
final

get object owner

public

Returns
integer owner id

Reimplemented from ilObject.

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

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

Reimplemented from ilObject.

Definition at line 59 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 48 of file class.ilObject2.php.

ilObject2::getRefId ( )
final

get reference id public

Returns
integer reference id

Reimplemented from ilObject.

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

{ return parent::getRefId(); }
ilObject2::getTitle ( )
final

get object title public

Returns
string object title

Reimplemented from ilObject.

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

{ return parent::getTitle(); }
ilObject2::getType ( )
final

get object type public

Returns
string object type

Reimplemented from ilObject.

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

Referenced by ilObjectPlugin\__construct().

{ return parent::getType(); }

+ Here is the caller graph for this function:

ilObject2::getUntranslatedTitle ( )
final

get untranslated object title public

Returns
string object title

Reimplemented from ilObject.

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

ilObject2::getXMLZip ( )
final

Reimplemented from ilObject.

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

{ return parent::getXMLZip(); }
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.

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

{ return array(); }
ilObject2::initType ( )
abstract

Referenced by ilObjectPlugin\__construct(), and __construct().

+ Here is the caller graph for this function:

ilObject2::isUserRegistered (   $a_user_id = 0)
final

Reimplemented from ilObject.

Definition at line 159 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 101 of file class.ilObject2.php.

{ return parent::MDUpdateListener($a_element); }
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.

Definition at line 157 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 126 of file class.ilObject2.php.

{ return parent::putInTree($a_parent_ref); }
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 160 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 53 of file class.ilObject2.php.

{ return parent::setDescription($a_desc); }
ilObject2::setId (   $a_id)
final

set object id public

Parameters
integer$a_idobject id

Reimplemented from ilObject.

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

{ return parent::setId($a_id); }
ilObject2::setImportId (   $a_import_id)
final

set import id

public

Parameters
string$a_import_idimport id

Reimplemented from ilObject.

Definition at line 56 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 64 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 61 of file class.ilObject2.php.

{ return parent::setOwner($a_owner); }
ilObject2::setPermissions (   $a_parent_ref)
final

set permissions of object

Parameters
integerreference_id of parent object public

Reimplemented from ilObject.

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

{ return parent::setPermissions($a_parent_ref); }
ilObject2::setRefId (   $a_id)
final

set reference id public

Parameters
integer$a_idreference id

Reimplemented from ilObject.

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

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

Reimplemented from ilObject.

Definition at line 158 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 51 of file class.ilObject2.php.

{ return parent::setTitle($a_title); }
ilObject2::setType (   $a_type)
final

set object type public

Parameters
integer$a_typeobject type

Reimplemented from ilObject.

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

{ return parent::setType($a_type); }
ilObject2::update ( )
final

update object in db

public

Returns
boolean true on success

Reimplemented from ilObject.

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

References beforeUpdate(), and doUpdate().

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

+ Here is the call graph for this function:

ilObject2::updateMetaData ( )
final

update meta data entry

Reimplemented from ilObject.

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

ilObject2::updateOwner ( )
final

update owner of object in db

public

Returns
boolean true on success

Reimplemented from ilObject.

Definition at line 105 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: