ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilObject2 This is an intermediate progress of ilObject class. More...
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 |
Class ilObject2 This is an intermediate progress of ilObject class.
Please do not ust it yet.
Definition at line 14 of file class.ilObject2.php.
ilObject2::__construct | ( | $a_id = 0 , |
|
$a_reference = true |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat 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().
|
staticfinal |
Definition at line 241 of file class.ilObject2.php.
Referenced by ilDataCollectionRecord\deleteFile(), ilDataCollectionRecord\deleteMob(), ilDataCollectionDatatype\parseExportValue(), ilDataCollectionDatatype\parseFormInput(), ilDataCollectionDatatype\parseHTML(), and ilDataCollectionDatatype\passThroughFilter().
|
staticfinal |
get all reference ids of object
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 190 of file class.ilObject2.php.
Referenced by ilObjDataCollection\_checkAccess().
|
staticfinal |
Get icon for repository item.
int | object id |
string | size (big, small, tiny) |
string | object type |
boolean | true: offline, false: online |
Reimplemented from ilObject.
Definition at line 279 of file class.ilObject2.php.
|
final |
get current object id for import id (static)
int | $a_import_id | import id |
Reimplemented from ilObject.
Definition at line 189 of file class.ilObject2.php.
|
staticfinal |
Reimplemented from ilObject.
Definition at line 193 of file class.ilObject2.php.
References ilObject\$title, and ilObject\$type.
|
final |
Get last update for a set of media objects.
array |
Reimplemented from ilObject.
Definition at line 196 of file class.ilObject2.php.
|
staticfinal |
Get objects by type.
Reimplemented from ilObject.
Definition at line 248 of file class.ilObject2.php.
|
final |
get all objects of a certain type
string | $a_type | desired object type |
boolean | $a_omit_trash | omit objects, that are in trash only (default: false) |
Reimplemented from ilObject.
Definition at line 208 of file class.ilObject2.php.
|
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.
|
final |
checks wether object is in trash
Reimplemented from ilObject.
Definition at line 205 of file class.ilObject2.php.
|
final |
only called in ilObjectGUI::insertSavedNodes
Reimplemented from ilObject.
Definition at line 200 of file class.ilObject2.php.
|
staticfinal |
lookup object description
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 194 of file class.ilObject2.php.
|
final |
lookup last update
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 195 of file class.ilObject2.php.
|
staticfinal |
lookup object id
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 207 of file class.ilObject2.php.
Referenced by ilDataCollectionILIASRefField\getStatus().
|
staticfinal |
Reimplemented from ilObject.
Definition at line 197 of file class.ilObject2.php.
Referenced by ilObjBlog\deliverRSS(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), and ilObjBlog\sendNotification().
|
staticfinal |
Reimplemented from ilObject.
Definition at line 60 of file class.ilObject2.php.
|
final |
lookup object owner
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 192 of file class.ilObject2.php.
|
final |
lookup owner name for owner id
Reimplemented from ilObject.
Definition at line 63 of file class.ilObject2.php.
|
staticfinal |
lookup object title
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 191 of file class.ilObject2.php.
Referenced by ilPortfolioRepositoryGUI\confirmPortfolioDeletion(), ilPortfolioHTMLExport\exportHTMLPages(), ilPortfolioPageTableGUI\fillRow(), ilObjHelpSettings\getHelpModules(), ilObjHelpSettings\lookupModuleTitle(), ilObjPortfolioBaseGUI\preview(), and ilPortfolioPageGUI\renderBlog().
|
staticfinal |
lookup object type
int | $a_id | object id |
Reimplemented from ilObject.
Definition at line 204 of file class.ilObject2.php.
Referenced by ilDataCollectionDatatype\parseExportValue(), ilDataCollectionDatatype\parseFormInput(), ilDataCollectionDatatype\parseHTML(), and ilDataCollectionDatatype\passThroughFilter().
|
staticfinal |
Definition at line 250 of file class.ilObject2.php.
|
final |
only called in ilObjectGUI::insertSavedNodes
Reimplemented from ilObject.
Definition at line 199 of file class.ilObject2.php.
|
final |
only called in ilTree::saveSubTree
Reimplemented from ilObject.
Definition at line 198 of file class.ilObject2.php.
|
final |
write description to db (static)
int | $a_obj_id | object id |
string | $a_desc | description public |
Reimplemented from ilObject.
Definition at line 202 of file class.ilObject2.php.
|
final |
write import id to db (static)
int | $a_obj_id | object id |
string | $a_import_id | import id public |
Reimplemented from ilObject.
Definition at line 203 of file class.ilObject2.php.
|
final |
write title to db (static)
int | $a_obj_id | object id |
string | $a_title | title public |
Reimplemented from ilObject.
Definition at line 201 of file class.ilObject2.php.
|
final |
Prepend Copy info if object with same name exists in that container.
public
int | copy_id |
Reimplemented from ilObject.
Definition at line 251 of file class.ilObject2.php.
|
protected |
Definition at line 272 of file class.ilObject2.php.
Referenced by cloneObject().
|
protected |
Reimplemented in ilRemoteObjectBase.
Definition at line 87 of file class.ilObject2.php.
Referenced by create().
|
protected |
Definition at line 159 of file class.ilObject2.php.
Referenced by createMetaData().
|
protected |
Reimplemented in ilObjFile.
Definition at line 233 of file class.ilObject2.php.
Referenced by delete().
|
protected |
Reimplemented in ilObjFile.
Definition at line 136 of file class.ilObject2.php.
Referenced by MDUpdateListener().
|
protected |
Reimplemented in ilObjFile.
Definition at line 113 of file class.ilObject2.php.
Referenced by update().
|
protected |
Definition at line 182 of file class.ilObject2.php.
Referenced by updateMetaData().
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
int | ref_id of target object |
int | copy_id |
Reimplemented from ilObject.
Reimplemented in ilObjItemGroup, and ilObjWorkspaceFolder.
Definition at line 277 of file class.ilObject2.php.
|
final |
Copy meta data.
public
object | target object |
Reimplemented from ilObject.
Definition at line 252 of file class.ilObject2.php.
Referenced by ilObjFile\doCloneObject().
|
final |
Clone object permissions, put in tree ...
public
int | target id |
int | copy id for class.ilCopyWizardOptions() |
Reimplemented from ilObject.
Definition at line 254 of file class.ilObject2.php.
References beforeCloneObject(), and doCloneObject().
|
final |
count references of object
public
Reimplemented from ilObject.
Definition at line 212 of file class.ilObject2.php.
|
final |
Definition at line 69 of file class.ilObject2.php.
References ilObject\$id, beforeCreate(), ilObject\create(), and doCreate().
|
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().
|
final |
creates reference for object
public
Reimplemented from ilObject.
Definition at line 211 of file class.ilObject2.php.
Referenced by ilRemoteObjectBase\createFromECSEContent().
|
final |
creates a local role folder
public
string | rolefolder title |
string | rolefolder description |
object | parent object where the rolefolder is attached to |
Reimplemented from ilObject.
Definition at line 240 of file class.ilObject2.php.
Referenced by ilObjBlog\initDefaultRoles().
|
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
Reimplemented from ilObject.
Definition at line 214 of file class.ilObject2.php.
References beforeDelete(), and doDelete().
Referenced by ilObjTaxonomyGUI\confirmedDelete().
|
final |
delete meta data entry
Reimplemented from ilObject.
Definition at line 187 of file class.ilObject2.php.
Referenced by ilObjFile\doDelete().
|
protected |
Reimplemented in ilObjFile, ilObjItemGroup, ilObjTaxonomy, ilObjPortfolioTemplate, and ilObjWorkspaceFolder.
Definition at line 267 of file class.ilObject2.php.
Referenced by cloneObject().
|
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().
|
protected |
Reimplemented in ilObjFile.
Definition at line 154 of file class.ilObject2.php.
Referenced by createMetaData().
|
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().
|
protected |
Reimplemented in ilObjFile.
Definition at line 131 of file class.ilObject2.php.
Referenced by MDUpdateListener().
|
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().
|
protected |
Reimplemented in ilObjFile, ilRemoteObjectBase, ilObjTaxonomy, ilObjPortfolioBase, ilObjPoll, ilVerificationObject, ilObjCloud, ilObjDataCollection, ilObjBibliographic, ilObjItemGroup, ilObjBlog, ilObjPortfolio, and ilObjPortfolioTemplate.
Definition at line 108 of file class.ilObject2.php.
Referenced by update().
|
protected |
Reimplemented in ilObjFile.
Definition at line 177 of file class.ilObject2.php.
Referenced by updateMetaData().
|
final |
get create date public
Reimplemented from ilObject.
Definition at line 65 of file class.ilObject2.php.
|
final |
get object description
public
Reimplemented from ilObject.
Definition at line 55 of file class.ilObject2.php.
Referenced by ilObjFile\addNewsNotification(), and ilObjTaxonomy\doCloneObject().
|
final |
get object id public
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().
|
final |
get import id
public
Reimplemented from ilObject.
Definition at line 58 of file class.ilObject2.php.
|
final |
get last update date public
Reimplemented from ilObject.
Definition at line 66 of file class.ilObject2.php.
|
final |
get object long description (stored in object_description)
public
Reimplemented from ilObject.
Definition at line 57 of file class.ilObject2.php.
|
final |
get object owner
public
Reimplemented from ilObject.
Definition at line 61 of file class.ilObject2.php.
|
final |
Reimplemented from ilObject.
Definition at line 62 of file class.ilObject2.php.
|
final |
get presentation title Normally same as title Overwritten for sessions
public
@return |
Reimplemented from ilObject.
Definition at line 51 of file class.ilObject2.php.
|
final |
get reference id public
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().
|
final |
get object title public
Reimplemented from ilObject.
Definition at line 52 of file class.ilObject2.php.
Referenced by ilObjTaxonomy\doCloneObject(), ilObjDataCollection\doCreate(), ilObjWorkspaceFolder\downloadFolder(), ilObjFile\getFileExtension(), ilVerificationObject\getOfflineFilename(), ilDataCollectionRecordEditGUI\initForm(), ilObjFile\isHidden(), ilObjFile\isInline(), ilObjFile\sendFile(), and ilObjFile\updateWithVersion().
|
final |
get object type public
Reimplemented from ilObject.
Definition at line 49 of file class.ilObject2.php.
Referenced by ilObjectPlugin\__construct(), ilObjFile\addNewsNotification(), ilObjFile\beforeMDUpdateListener(), ilObjFile\doCreateMetaData(), ilObjFile\doMDUpdateListener(), ilObjFile\doUpdateMetaData(), ilObjBibliographic\getFileDirectory(), ilObjFile\getVersions(), ilObjPortfolio\handleQuotaUpdate(), ilVerificationObject\handleQuotaUpdate(), ilObjBlog\handleQuotaUpdate(), and ilObjFile\handleQuotaUpdate().
|
final |
get untranslated object title public
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
Reimplemented from ilObject.
Reimplemented in ilObjBlog.
Definition at line 238 of file class.ilObject2.php.
|
abstractprotected |
Reimplemented in ilObjCloud, ilObjBibliographic, ilObjFile, ilObjPoll, ilObjItemGroup, ilObjTaxonomy, ilObjHelpSettings, ilObjRemoteCourse, ilObjRemoteGroup, ilObjRemoteTest, ilObjBlog, ilObjTermsOfService, ilObjRemoteGlossary, ilObjRemoteLearningModule, ilObjRemoteWiki, ilObjDataCollection, ilObjWikiSettings, ilObjRemoteFile, ilObjPortfolioTemplate, ilObjRemoteCategory, ilObjWorkspaceFolder, ilObjPortfolio, ilObjCourseVerification, ilObjExerciseVerification, ilObjSCORMVerification, ilObjTestVerification, and ilObjWorkspaceRootFolder.
Referenced by ilObjectPlugin\__construct(), and __construct().
|
final |
Reimplemented from ilObject.
Definition at line 244 of file class.ilObject2.php.
|
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.
string | $a_element |
Reimplemented from ilObject.
Definition at line 118 of file class.ilObject2.php.
References beforeMDUpdateListener(), and doMDUpdateListener().
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
string | event |
integer | reference id of object where the event occured |
integer | reference id of node in the tree which is actually notified |
array | passes optional parameters if required |
Reimplemented from ilObject.
Reimplemented in ilObjWorkspaceRootFolder.
Definition at line 242 of file class.ilObject2.php.
|
final |
maybe this method should be in tree object!?
Reimplemented from ilObject.
Definition at line 209 of file class.ilObject2.php.
Referenced by ilObjTaxonomy\cloneNodes(), and ilRemoteObjectBase\createFromECSEContent().
|
final |
Read data from db.
Reimplemented from ilObject.
Definition at line 35 of file class.ilObject2.php.
References doRead().
|
final |
Reimplemented from ilObject.
Definition at line 245 of file class.ilObject2.php.
|
final |
set object description
public
string | $a_desc | object description |
Reimplemented from ilObject.
Definition at line 56 of file class.ilObject2.php.
Referenced by ilObjBibliographic\cloneStructure(), and ilRemoteObjectBase\updateFromECSContent().
|
final |
set object id public
integer | $a_id | object id |
Reimplemented from ilObject.
Definition at line 46 of file class.ilObject2.php.
Referenced by ilObjBibliographic\__construct().
|
final |
set import id
public
string | $a_import_id | import id |
Reimplemented from ilObject.
Definition at line 59 of file class.ilObject2.php.
|
final |
set object_data record (note: this method should only be called from the ilObjectFactory class)
array | $a_record | assoc. array from table object_data public |
Reimplemented from ilObject.
Definition at line 67 of file class.ilObject2.php.
|
final |
set object owner
public
integer | $a_owner | owner id |
Reimplemented from ilObject.
Definition at line 64 of file class.ilObject2.php.
Referenced by ilRemoteObjectBase\beforeCreate().
|
final |
set permissions of object
integer | reference_id of parent object public |
Reimplemented from ilObject.
Definition at line 210 of file class.ilObject2.php.
Referenced by ilRemoteObjectBase\createFromECSEContent().
|
final |
set reference id public
integer | $a_id | reference id |
Reimplemented from ilObject.
Definition at line 47 of file class.ilObject2.php.
|
final |
Reimplemented from ilObject.
Definition at line 243 of file class.ilObject2.php.
|
final |
set object title
public
string | $a_title | object title |
Reimplemented from ilObject.
Definition at line 54 of file class.ilObject2.php.
Referenced by ilObjBibliographic\cloneStructure(), ilRemoteObjectBase\updateFromECSContent(), and ilObjFile\updateWithVersion().
|
final |
set object type public
integer | $a_type | object type |
Reimplemented from ilObject.
Definition at line 50 of file class.ilObject2.php.
Referenced by ilObjBibliographic\cloneStructure().
|
final |
update object in db
public
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().
|
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().
|
final |
update owner of object in db
public
Reimplemented from ilObject.
Definition at line 188 of file class.ilObject2.php.
|
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.