ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObject Class Reference

Class ilObject Basic functions for all objects. More...

+ Inheritance diagram for ilObject:
+ Collaboration diagram for ilObject:

Public Member Functions

 ilObject ($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 object data from db into object
 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
 getDiskUsage ()
 Gets the disk usage of the object in bytes.
 setObjDataRecord ($a_record)
 set object_data record (note: this method should only be called from the ilObjectFactory class)
 create ()
 create
 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
 _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!!
 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 ()
 getXMLZip ()
 getHTMLDirectory ()
 cloneObject ($a_target_id, $a_copy_id=0)
 Clone object permissions, put in tree ...
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container.
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies.
 cloneMetaData ($target_obj)
 Copy meta data.

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
 _exists ($a_id, $a_reference=false)
 checks if an object exists in object_data
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 collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies.
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies.

Data Fields

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 ilObject Basic functions for all objects.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilObject.php 27550 2011-01-26 16:36:29Z hschottm

Definition at line 13 of file class.ilObject.php.

Member Function Documentation

ilObject::_exists (   $a_id,
  $a_reference = false 
)
static

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 in ilObject2.

Definition at line 1519 of file class.ilObject.php.

References $ilDB, and $ilias.

Referenced by ilShopUtils\_createRandomUserAccount(), _lookupOwnerName(), ilNavigationHistory\addItem(), ilSoapObjectAdministration\addObject(), ilSoapAdministration\checkObjectAccess(), ilPageObject\collectMediaObjects(), ilObjRoleFolderGUI\confirmedDeleteObject(), ilObjRole\delete(), ilNewsItem\delete(), ilPageObject\delete(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilObjSCORM2004LearningModuleGUI\deleteTrackingForUser(), ilPublicUserProfileGUI\deliverVCard(), ilObjExerciseGUI\downloadAllObject(), ilSCORM2004Sco\exportFileItems(), ilObjContentObject\exportHTML(), ilObjSCORM2004LearningModule\exportSelected(), ilObjSCORMLearningModule\exportSelected(), ilObjSCORMLearningModule\exportSelectedRaw(), ilPageHistoryTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilPageObject\getContentObject(), ilObjStyleSheet\getContentStylePath(), ilSoapCourseAdministration\getCoursesForUser(), ilSCORM2004ScoGUI\getExportResources(), ilSoapGroupAdministration\getGroupsForUser(), ilPublicUserProfileGUI\getHTML(), ilGoogleMapGUI\getHtml(), ilObjMediaObject\getLinkedMediaObjects(), ilExAssignment\getMemberListData(), ilNoteGUI\getNoteListHTML(), ilTagging\getObjectsForTagAndUser(), ilObjSCORMLearningModule\getTrackedUsers(), ilObjSCORM2004LearningModule\getTrackedUsers(), ilGoogleMapGUI\getUserListHtml(), ilObjectFeedWriter\ilObjectFeedWriter(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItemSco(), ilObjectTest\testCreationDeletion(), ilPageObject\update(), and ilContObjectManifestBuilder\writeResources().

{
global $ilias, $ilDB;
if ($a_reference)
{
$q = "SELECT * FROM object_data ".
"LEFT JOIN object_reference ON object_reference.obj_id=object_data.obj_id ".
"WHERE object_reference.ref_id= ".$ilDB->quote($a_id, "integer");
}
else
{
$q = "SELECT * FROM object_data WHERE obj_id=".$ilDB->quote($a_id, "integer");
}
$r = $ilDB->query($q);
return $ilDB->numRows($r) ? true : false;
}

+ Here is the caller graph for this function:

static ilObject::_getAllReferences (   $a_id)
static

get all reference ids of object

Parameters
int$a_idobject id

Reimplemented in ilObject2.

Definition at line 906 of file class.ilObject.php.

References $ilDB, $query, and $res.

Referenced by ilObjectXMLWriter\__appendObject(), ilParticipants\__construct(), ilAdminUserSearchGUI\__fillGroupTable(), ilLPListOfProgressGUI\__initDetails(), ilLPCollections\__read(), ilCourseObjectiveMaterials\__read(), ilCourseObjectiveQuestion\__read(), ilObjGlossaryAccess\_checkGoto(), ilObjContentObjectAccess\_checkGoto(), ilObjStyleSheet\_getClonableContentStyles(), ilLPStatusCollection\_getCompleted(), ilLPStatusCollection\_getFailed(), ilInternalLink\_getIdForImportId(), ilLPStatusCollection\_getInProgress(), ilLPCollections\_getItems(), ilObjGroup\_getMembers(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusEvent\_getStatusInfo(), ilLMPageObjectGUI\_goto(), ilGlossaryTermGUI\_goto(), ilStructureObjectGUI\_goto(), _hasUntrashedReference(), ilContainerReferenceAccess\_isAccessible(), ilObjSurveyQuestionPool\_isWriteable(), ilObjQuestionPool\_isWriteable(), ilInfoScreenGUI\addObjectSections(), ilCalendarCategoryGUI\addReferenceLinks(), ilObjGlossaryGUI\addUsagesToInfo(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilUserImportParser\assignToRole(), ilCalendarExport\buildAppointmentUrl(), ilWebAccessChecker\checkAccessLM(), ilWebAccessChecker\checkAccessObject(), ilSearchAutoComplete\checkObjectPermission(), ilDAVLocks\cleanUp(), ilSoapCourseAdministration\deleteCourse(), ilContainerReferenceAppEventListener\deleteReferences(), ilUserImportParser\detachFromRole(), ilCalendarAppointmentGUI\distributeNotifications(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilECSImportedContentTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilLuceneSearchResultFilter\filter(), ilSearchResult\filter(), ilSoapCourseAdministration\getCoursesForUser(), ilMail\getEmailsOfRecipients(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilTermUsagesTableGUI\getFirstWritableRefId(), ilMediaPoolPageUsagesTableGUI\getFirstWritableRefId(), ilMediaObjectUsagesTableGUI\getFirstWritableRefId(), ilSoapGroupAdministration\getGroupsForUser(), ilCalendarAppointmentPanelGUI\getHTML(), ilSoapSCORMAdministration\getIMSManifestXML(), assQuestion\getInstances(), ilPDSelectedItemsBlockGUI\getObjectsByMembership(), ilSoapObjectAdministration\getRefIdsByImportId(), ilSoapObjectAdministration\getRefIdsByObjId(), ilSoapTestAdministration\getTestResults(), ilMail\getUserIds(), ilSurveyExporter\getXmlRepresentation(), ilContainerExporter\getXmlRepresentation(), ilCourseExporter\getXmlRepresentation(), ilGroupExporter\getXmlRepresentation(), ilECSTaskScheduler\handleDelete(), ilTaggingAppEventListener\handleEvent(), ilECSCategoryMapping\handleUpdate(), ilSoapTestAdministration\hasWritePermissionForTest(), ilSessionDataSet\importRecord(), ilCourseImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilObjCourseReferenceListGUI\initItem(), ilObjCategoryReferenceListGUI\initItem(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilGlossaryPresentationGUI\listDefinitions(), ilContainerSortingSettings\lookupSortModeFromParentContainer(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), ilCalendarCategoryTableGUI\parse(), ilECSReleasedContentTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilSearchResultPresentation\parseResultReferences(), ilObjSurveyGUI\questionsObject(), ilContainerReference\read(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilSoapWebLinkAdministration\readWebLink(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilObjUserGUI\roleassignmentObject(), ilCalendarAppointmentGUI\showInfoScreen(), ilMailSearchGroupsGUI\showMembers(), ilMailSearchCoursesGUI\showMyCourses(), ilMailSearchGroupsGUI\showMyGroups(), ilPDTaggingBlockGUI\showResourcesForTag(), ilPageEditorGUI\showSnippetInfo(), ilNoteGUI\showTargets(), ilObjectTest\testObjectReference(), ilObjectTest\testSetGetLookup(), ilECSSettingsGUI\updateCommunities(), ilSoapCourseAdministration\updateCourse(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapObjectAdministration\updateObjects(), and ilSoapWebLinkAdministration\updateWebLink().

{
global $ilDB;
$query = "SELECT * FROM object_reference WHERE obj_id = ".
$ilDB->quote($a_id,'integer');
$res = $ilDB->query($query);
$ref = array();
while($obj_rec = $ilDB->fetchAssoc($res))
{
$ref[$obj_rec["ref_id"]] = $obj_rec["ref_id"];
}
return $ref;
}

+ Here is the caller graph for this function:

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

Get icon for repository item.

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

Reimplemented in ilObject2.

Definition at line 1817 of file class.ilObject.php.

References $file_name, $ilSetting, ilContainer\_getContainerDirectory(), ilContainer\_lookupContainerSetting(), _lookupType(), and ilUtil\getImagePath().

Referenced by ilObjectPluginGUI\executeCommand(), ilSubItemSelectionTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilRepositoryExplorer\formatHeader(), ilNavigationHistoryGUI\getHTML(), ilLocatorGUI\getHTML(), ilNavigationHistoryGUI\getHTMLOld(), ilRepositoryExplorer\getImage(), ilObjectListGUI\insertIconsAndCheckboxes(), ilRepUtilGUI\showDeleteConfirmation(), ilNewsForContextBlockGUI\showNews(), ilContainerGUI\showPossibleSubObjects(), ilNoteGUI\showTargets(), and ilRepositoryGUI\showTree().

{
global $ilSetting, $objDefinition;
if ($a_obj_id == "" && $a_type == "")
{
return "";
}
if ($a_type == "")
{
$a_type = ilObject::_lookupType($a_obj_id);
}
if ($a_size == "")
{
$a_size = "big";
}
if ($ilSetting->get("custom_icons") &&
in_array($a_type, array("cat","grp","crs", "root")))
{
require_once("./Services/Container/classes/class.ilContainer.php");
if (ilContainer::_lookupContainerSetting($a_obj_id, "icon_".$a_size))
{
$cont_dir = ilContainer::_getContainerDirectory($a_obj_id);
$file_name = $cont_dir."/icon_".$a_size.".gif";
if (is_file($file_name))
{
return $file_name;
}
}
}
switch($a_size)
{
case "small": $suff = ""; break;
case "tiny": $suff = "_s"; break;
default: $suff = "_b"; break;
}
if (!$a_offline)
{
if ($objDefinition->isRBACObject($a_type))
{
if (!$objDefinition->isPlugin($a_type))
{
return ilUtil::getImagePath("icon_".$a_type.$suff.".gif");
}
else
{
include_once("./Services/Repository/classes/class.ilRepositoryObjectPlugin.php");
return ilRepositoryObjectPlugin::_getIcon($a_type, $a_size);
}
}
return ilUtil::getImagePath("icon_".$a_type.$suff.".gif");
}
else
{
return "./images/icon_".$a_type.$suff.".gif";
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::_getIdForImportId (   $a_import_id)

get current object id for import id (static)

Parameters
int$a_import_idimport id
Returns
int id

Reimplemented in ilObject2.

Definition at line 882 of file class.ilObject.php.

References $ilDB.

{
global $ilDB;
$ilDB->setLimit(1,0);
$q = "SELECT * FROM object_data WHERE import_id = ".$ilDB->quote($a_import_id, "text").
" ORDER BY create_date DESC";
$obj_set = $ilDB->query($q);
if ($obj_rec = $ilDB->fetchAssoc($obj_set))
{
return $obj_rec["obj_id"];
}
else
{
return 0;
}
}
static ilObject::_getIdsForTitle (   $title,
  $type = '',
  $partialmatch = false 
)
static

Reimplemented in ilObject2.

Definition at line 950 of file class.ilObject.php.

References $ilDB, $query, $row, $title, and $type.

Referenced by ilTestEvaluationData\getParticipants(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilObjRoleGUI\mailToRoleObject(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$query = (!$partialmatch)
? "SELECT obj_id FROM object_data WHERE title = ".$ilDB->quote($title, "text")
: "SELECT obj_id FROM object_data WHERE ".$ilDB->like("title", "text", '%'.$title.'%');
if($type != '')
{
$query .= " AND type = ".$ilDB->quote($type, "text");
}
$result = $ilDB->query($query);
$object_ids = array();
while($row = $ilDB->fetchAssoc($result))
{
$object_ids[] = $row['obj_id'];
}
return is_array($object_ids) ? $object_ids : array();
}

+ Here is the caller graph for this function:

ilObject::_getLastUpdateOfObjects (   $a_objs)

Get last update for a set of media objects.

Parameters
array

Reimplemented in ilObject2.

Definition at line 1009 of file class.ilObject.php.

References $ilDB.

Referenced by ilPageObject\getLastUpdateOfIncludedElements().

{
global $ilDB;
if (!is_array($a_objs))
{
$a_objs = array($a_objs);
}
$types = array();
$set = $ilDB->query("SELECT max(last_update) as last_update FROM object_data ".
"WHERE ".$ilDB->in("obj_id", $a_objs, false, "integer")." ");
$rec = $ilDB->fetchAssoc($set);
return ($rec["last_update"]);
}

+ Here is the caller graph for this function:

static ilObject::_getObjectsByType (   $a_obj_type = "",
  $a_owner = "" 
)
static

Get objects by type.

Reimplemented in ilObject2.

Definition at line 1597 of file class.ilObject.php.

References $ilDB, and $row.

Referenced by ilLanguage\getInstalledLanguages(), ilObjLanguageFolder\getLanguages(), ilObjLanguage\refreshAll(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$order = " ORDER BY title";
// where clause
if ($a_obj_type)
{
$where_clause = "WHERE type = ".
$ilDB->quote($a_obj_type, "text");
if ($a_owner != "")
{
$where_clause.= " AND owner = ".$ilDB->quote($a_owner, "integer");
}
}
$q = "SELECT * FROM object_data ".$where_clause.$order;
$r = $ilDB->query($q);
$arr = array();
if ($ilDB->numRows($r) > 0)
{
while ($row = $ilDB->fetchAssoc($r))
{
$row["desc"] = $row["description"];
$arr[$row["obj_id"]] = $row;
}
}
return $arr;
}

+ Here is the caller graph for this function:

ilObject::_getObjectsDataForType (   $a_type,
  $a_omit_trash = false 
)

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 in ilObject2.

Definition at line 1240 of file class.ilObject.php.

References $ilDB, and _hasUntrashedReference().

Referenced by ilObjStyleSheet\_addMissingStyleClassesToAllStyles(), and ilObjSurvey\getQuestionblocksTable().

{
global $ilDB;
$q = "SELECT * FROM object_data WHERE type = ".$ilDB->quote($a_type, "text");
$obj_set = $ilDB->query($q);
$objects = array();
while ($obj_rec = $ilDB->fetchAssoc($obj_set))
{
if ((!$a_omit_trash) || ilObject::_hasUntrashedReference($obj_rec["obj_id"]))
{
$objects[$obj_rec["title"].".".$obj_rec["obj_id"]] = array("id" => $obj_rec["obj_id"],
"type" => $obj_rec["type"], "title" => $obj_rec["title"],
"description" => $obj_rec["description"]);
}
}
ksort($objects);
return $objects;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::_hasUntrashedReference (   $a_obj_id)
ilObject::_isInTrash (   $a_ref_id)

checks wether object is in trash

Reimplemented in ilObject2.

Definition at line 1194 of file class.ilObject.php.

Referenced by _hasUntrashedReference(), ilSoapCourseAdministration\addCourse(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilSoapGroupAdministration\addGroup(), ilSoapObjectAdministration\addObject(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilSoapAdministration\checkObjectAccess(), ilSoapWebLinkAdministration\createWebLink(), ilObjFolder\downloadFolder(), ilSoapCourseAdministration\getCoursesForUser(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapGroupAdministration\getGroup(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilSoapObjectAdministration\getObjectByReference(), ilSoapRBACAdministration\getObjectTreeOperations(), ilSoapObjectAdministration\getPathForRefId(), ilSoapTestAdministration\getTestResults(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapSCORMAdministration\hasSCORMCertificate(), ilSoapObjectAdministration\moveObject(), ilSoapWebLinkAdministration\readWebLink(), ilObjFolder\recurseFolder(), ilObjectTest\testTreeTrash(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapGroupAdministration\updateGroup(), ilSoapObjectAdministration\updateObjects(), and ilSoapWebLinkAdministration\updateWebLink().

{
global $tree;
return $tree->isSaved($a_ref_id);
}

+ Here is the caller graph for this function:

ilObject::_lookupDeletedDate (   $a_ref_id)

only called in ilObjectGUI::insertSavedNodes

Reimplemented in ilObject2.

Definition at line 1059 of file class.ilObject.php.

References $ilDB, and $query.

Referenced by ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$query = "SELECT deleted FROM object_reference".
" WHERE ref_id = ".$ilDB->quote($a_ref_id, "integer");
$set = $ilDB->query($query);
$rec = $ilDB->fetchAssoc($set);
return $rec["deleted"];
}

+ Here is the caller graph for this function:

ilObject::_lookupLastUpdate (   $a_id,
  $a_as_string = false 
)

lookup last update

Parameters
int$a_idobject id

Reimplemented in ilObject2.

Definition at line 990 of file class.ilObject.php.

References ilDatePresentation\formatDate(), and IL_CAL_DATETIME.

Referenced by ilObjFileListGUI\getProperties(), and ilObjectTest\testSetGetLookup().

{
global $ilObjDataCache;
if ($a_as_string)
{
return ilDatePresentation::formatDate(new ilDateTime($ilObjDataCache->lookupLastUpdate($a_id),IL_CAL_DATETIME));
}
else
{
return $ilObjDataCache->lookupLastUpdate($a_id);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::_lookupObjectId (   $a_ref_id)

lookup object id

Parameters
int$a_idobject id

Reimplemented in ilObject2.

Definition at line 1223 of file class.ilObject.php.

Referenced by ilSCORM13Player\__construct(), ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjContentObjectGUI\addMenuEntry(), ilLPListOfProgressGUI\details(), ilContainerGUI\editPageContentObject(), ilSAHSPresentationGUI\executeCommand(), ilSAHSEditGUI\executeCommand(), ilObjSCORMLearningModuleGUI\exportOptions(), ilObjiLincClassroomGUI\getDefaultValues(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapSCORMAdministration\getIMSManifestXML(), ilObjiLincClassroomGUI\getObjectValues(), ilSoapObjectAdministration\getObjIdsByRefIds(), ilTrQuery\getParticipantsForObject(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilTrQuery\getSummaryDataForObject(), ilSoapTestAdministration\getTestResults(), ilTrQuery\getUserDataForObject(), ilTrQuery\getUserObjectMatrix(), ilSoapSCORMAdministration\hasSCORMCertificate(), ilObjSCORMLearningModuleGUI\importForm(), ilObjGroupGUI\initForm(), ilRepositoryExplorer\isClickable(), ilTestScoringGUI\manscoring(), ilObjSCORMLearningModuleGUI\newModuleVersion(), assTextQuestionGUI\outQuestionForTest(), ilRbacLogTableGUI\parseChangesFaPa(), ilSoapWebLinkAdministration\readWebLink(), ilObjiLincClassroomGUI\save(), ilObjectTest\testSetGetLookup(), ilObjiLincClassroomGUI\updateClassroom(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapObjectAdministration\updateObjects(), and ilSoapWebLinkAdministration\updateWebLink().

{
global $ilObjDataCache;
return (int) $ilObjDataCache->lookupObjId($a_ref_id);
}

+ Here is the caller graph for this function:

static ilObject::_lookupObjId (   $a_id)
static

Reimplemented in ilObject2.

Definition at line 1025 of file class.ilObject.php.

Referenced by ilObjCategoryGUI\__buildFilterSelect(), ilTrSummaryTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilAuthShibbolethSettingsGUI\__construct(), ilSessionOverviewGUI\__construct(), ilMainMenuSearchGUI\__construct(), ilObjRoleGUI\__construct(), ilRegistrationGUI\__construct(), ilContainerContentGUI\__forwardToColumnGUI(), ilCourseContentGUI\__forwardToColumnGUI(), ilCourseItems\__sort(), ilObjCourseReferenceAccess\_checkAccess(), ilObjQuestionPool\_getAvailableQuestionpools(), ilObjTest\_getAvailableTests(), ilLPStatusCollection\_getCompleted(), ilLPStatusCollection\_getFailed(), ilLPStatusCollection\_getInProgress(), ilObjContentObjectAccess\_getLastAccessedPage(), ilNewsItem\_getNewsItemsOfUser(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusEvent\_getStatusInfo(), ilObjRemoteCourseGUI\_goto(), ilObjCourseReferenceGUI\_goto(), ilObjCategoryReferenceGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjMailGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjFileGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjGroupGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjTestGUI\_goto(), ilObjCourseGUI\_goto(), ilContainerReferenceAccess\_isAccessible(), ilChangeEvent\_recordReadEvent(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjStyleSheetGUI\addAdminLocatorItems(), ilObjRoleGUI\addAdminLocatorItems(), ilObjUserGUI\addAdminLocatorItems(), ilNavigationHistory\addItem(), ilObjContentObjectGUI\addLocations(), ilPDSelectedItemsBlockGUI\addParentRow(), ilCalendarCategoryGUI\addReferenceLinks(), ilPaymentStatisticGUI\addStatisticWorksheet(), ilObjPaymentSettingsGUI\addStatisticWorksheet(), ilExportContainer\addSubitems(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilDataLoader\assignUsersAsCourseMembers(), ilTableOfContentsExplorer\buildTitle(), ilLearningProgressAccess\checkAccess(), ilAccessHandler\checkAccessOfUser(), ilPrivacySettings\checkExportAccess(), ilContainer\cloneAllObject(), ilContainerSorting\cloneSorting(), ilObjectCopyGUI\copyContainer(), ilContainerGUI\copyObject(), SurveyQuestion\createNewQuestion(), assQuestion\createNewQuestion(), ilObjRole\createPermissionIntersection(), ilObjectRolePermissionTableGUI\createTooltip(), ilAdministrationCommandGUI\delete(), ilSoapCourseAdministration\deleteCourse(), ilObjRole\deleteLocalPolicies(), ilRepUtil\deleteObjects(), ilLMEditorGUI\displayLocator(), ilSCORMPresentationGUI\downloadCertificate(), ilPCResourcesGUI\edit(), ilObjStyleSettingsGUI\editContentStylesObject(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilObjectPluginGUI\executeCommand(), ilObjDlBook\export(), ilLMPresentationGUI\exportbibinfo(), ilRegistrationGUI\fillMembershipLimitation(), ilLinksTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilObjFolderGUI\forwardToTimingsView(), ilDataLoader\generateCalendarEntries(), ilCourseObjectiveMaterialAssignmentTableGUI\getAllSubObjects(), ilContainerGUI\getAsynchItemListObject(), ilObjectGUI\getCenterColumnHTML(), ilParticipants\getDefaultMemberRole(), ilObjSurvey\getGroupData(), ilObjTest\getGroupData(), ilNavigationHistoryGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilLocatorGUI\getHTML(), ilNavigationHistoryGUI\getHTMLOld(), ilLMPageObjectGUI\getLinkXML(), ilGlossaryPresentationGUI\getLinkXML(), ilLMPresentationGUI\getLinkXML(), ilImageMapEditorGUI\getMapAreaLinkString(), ilMainMenuGUI\getMemberViewHTML(), ilNewsItem\getNewsForRefId(), ilTrUserObjectsPropsTableGUI\getObjectHierarchy(), ilTrQuery\getObjectIds(), ilObjectRolePermissionTableGUI\getObjId(), ilObjectRoleTemplatePermissionTableGUI\getObjId(), ilContainerContentGUI\getRightColumnHTML(), ilCourseContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ilSoapUserAdministration\getUsersForContainer(), ilObjFolder\getViewMode(), ilObjGroup\getViewMode(), ilSessionDataSet\getXmlRecord(), ilMembershipRegistrationCodeUtils\handleCode(), ilECSCategoryMapping\handleUpdate(), ilLMPresentationGUI\ilLocator(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), ilSurveyImporter\importXmlRepresentation(), ilObjSessionGUI\infoScreen(), ilObjectCopyGUI\init(), ilSubItemListGUI\init(), ilUserTableGUI\initFilter(), ilCalendarAppointmentGUI\initForm(), ilObjGroupGUI\initForm(), ilConditionHandlerInterface\initFormCondition(), ilLuceneSearchGUI\initFormSearch(), ilCalendarCategories\initialize(), ilObjectCopyGUI\initTargetSelection(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPageObject\insertInstIntoIDs(), ilObjectListGUI\insertSubscribeCommand(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilHACPPresentationGUI\launchSahs(), ilAICCPresentationGUI\launchSahs(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilContainerSortingSettings\lookupSortModeFromParentContainer(), ilObjSessionGUI\membersObject(), ilObjExerciseGUI\membersObject(), ilObjSessionGUI\modifyItemGUI(), ilObjGroupGUI\modifyItemGUI(), ilObjFolderGUI\modifyItemGUI(), ilLMPresentationGUI\offlineexport(), ilECSCategoryMappingTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilAdministrationCommandGUI\paste(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), ilObjRoleGUI\perm2Object(), ilObjSessionGUI\printAttendanceListObject(), ilObjSessionGUI\printViewMembersObject(), ilStartUpGUI\processStartingPage(), ilPurchase\purchase(), ilObjHACPTracking\putparam(), ilObjTest\randomSelectQuestions(), ilUtil\replaceLinkProperties(), ilAccountMail\replacePlaceholders(), ilRepUtil\restoreObjects(), ilExportGUI\saveItemSelection(), ilContainerReferenceGUI\saveObject(), ilObjSCORM2004LearningModuleGUI\selectGlossary(), ilHACPResponse\sendParam(), ilPageObjectGUI\setDefaultLinkXml(), ilContainerContentGUI\setOutput(), ilQuestionEditGUI\setPoolRefId(), ilMailNotification\setRefId(), ilMainMenuGUI\setTemplateVars(), ilCalendarBlockGUI\showCalendarSubscription(), ilRepUtilGUI\showDeleteConfirmation(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilPaymentStatisticGUI\showStatistics(), ilNoteGUI\showTargets(), ilRepositoryGUI\showTree(), ilObjPaymentSettingsGUI\statisticObject(), ilObjSCORMTracking\store(), ilObjSCORMTracking\storeJsApi(), ilObjectTest\testSetGetLookup(), ilObjectTest\testTreeTrash(), ilSoapCourseAdministration\updateCourse(), ilObjSessionGUI\updateMembersObject(), ilContainerReferenceGUI\updateObject(), ilMembershipRegistrationCodeUtils\useCode(), ilECSCategoryMappingRule\validate(), ilSoapObjectAdministration\validateReferences(), ilPDNewsGUI\view(), ilCourseContentGUI\view(), and ilContainerXmlWriter\writeSubitems().

{
global $ilObjDataCache;
return (int) $ilObjDataCache->lookupObjId($a_id);
}

+ Here is the caller graph for this function:

ilObject::_lookupObjIdByImportId (   $a_import_id)

Reimplemented in ilObject2.

Definition at line 458 of file class.ilObject.php.

References $ilDB, $query, $res, and $row.

Referenced by ilSoapObjectAdministration\addObject(), ilSoapObjectAdministration\getObjIdByImportId(), ilSoapObjectAdministration\getRefIdsByImportId(), ilAuthContainerECS\loginObserver(), ilSoapObjectAdministration\removeFromSystemByImportId(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$query = "SELECT * FROM object_data ".
"WHERE import_id = ".$ilDB->quote($a_import_id, "text")." ".
"ORDER BY create_date DESC";
$res = $ilDB->query($query);
while($row = $ilDB->fetchObject($res))
{
return $row->obj_id;
}
return 0;
}

+ Here is the caller graph for this function:

ilObject::_lookupOwner (   $a_id)

lookup object owner

Parameters
int$a_idobject id

Reimplemented in ilObject2.

Definition at line 942 of file class.ilObject.php.

References $owner.

Referenced by ilLPTableBaseGUI\getExportMeta(), ilObjTest\randomSelectQuestions(), and ilObjectTest\testSetGetLookup().

{
global $ilObjDataCache;
$owner = $ilObjDataCache->lookupOwner($a_id);
return $owner;
}

+ Here is the caller graph for this function:

ilObject::_lookupOwnerName (   $a_owner_id)

lookup owner name for owner id

Reimplemented in ilObject2.

Definition at line 498 of file class.ilObject.php.

References $lng, $owner, and _exists().

Referenced by getOwnerName(), and ilObjectTest\testSetGetLookup().

{
global $lng;
if ($a_owner_id != -1)
{
if (ilObject::_exists($a_owner_id))
{
$owner = new ilObjUser($a_owner_id);
}
}
if (is_object($owner))
{
$own_name = $owner->getFullname();
}
else
{
$own_name = $lng->txt("unknown");
}
return $own_name;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilObject::_lookupTitle (   $a_id)
static

lookup object title

Parameters
int$a_idobject id

Reimplemented in ilObject2, and ilContainerReference.

Definition at line 928 of file class.ilObject.php.

Referenced by ilObjCategoryGUI\__buildFilterSelect(), ilRegistrationSettingsGUI\__buildRoleSelection(), ilMediaPoolTableGUI\__construct(), ilRegistrationSettingsGUI\__prepareAutomaticRoleList(), ilObjCourseGUI\__showWaitingList(), ilAccountRegistrationGUI\__validateRole(), ilExport\_generateIndexFile(), ilObjStyleSheet\_getClonableContentStyles(), ilObjStyleSheet\_getStandardStyles(), ilLPStatusEvent\_getStatusInfo(), ilObjRemoteCourseGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjMailGUI\_goto(), ilLMPageObjectGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjFileGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilStructureObjectGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjGroupGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjTestGUI\_goto(), ilObjCourseGUI\_goto(), ilObjUser\_lookupDesktopItems(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjStyleSheetGUI\addAdminLocatorItems(), ilNavigationHistory\addItem(), ilObjContentObjectGUI\addLocations(), ilObjContentObjectGUI\addMenuEntry(), ilPDSelectedItemsBlockGUI\addParentRow(), ilCalendarCategoryGUI\addReferenceLinks(), ilPermission2GUI\addRole(), ilPaymentStatisticGUI\addStatisticWorksheet(), ilObjPaymentSettingsGUI\addStatisticWorksheet(), ilObjStyleSettings\addStyle(), ilObjStyleSheetFolder\addStyle(), ilObjGlossaryGUI\addUsagesToInfo(), ilObjRoleGUI\checkDuplicate(), ilObjStyleSettingsGUI\confirmDeleteIndividualStyles(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilContainerGUI\copyObject(), ilObjectRolePermissionTableGUI\createTooltip(), ilObjStyleSheetGUI\deleteObject(), ilObjStyleSheetFolderGUI\deleteStyleObject(), ilObjStyleSettingsGUI\deleteStyleObject(), ilUserImportParser\detachFromRole(), ilShibbolethRoleAssignmentRules\doAssignments(), ilAccessHandler\doConditionCheck(), ilObjTest\duplicateQuestionpoolForTest(), ilObjStyleSettingsGUI\editContentStylesObject(), ilRegistrationSettingsGUI\editRoles(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilObjectPluginGUI\executeCommand(), ilPageEditorGUI\executeCommand(), ilObjDlBook\export(), ilLMPresentationGUI\exportbibinfo(), ilECSSettingsGUI\exportImported(), ilExport\exportObject(), ilECSSettingsGUI\exportReleased(), ilRegistrationGUI\fillMembershipLimitation(), ilNewsForContextTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilTermUsagesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilObjUserTracking\getAccessPerUserDetail(), ilObjUserTracking\getAccessTotalPerObj(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ilObjUser\getClipboardChilds(), ilObjUser\getClipboardObjects(), ilParticipants\getDefaultMemberRole(), ilObjSurvey\getGroupData(), ilObjTest\getGroupData(), ilHistoryGUI\getHistoryTable(), ilObjLearningModuleSubItemListGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), assQuestion\getInstances(), ilRoleAutoComplete\getListByObject(), ilImageMapEditorGUI\getMapAreaLinkString(), ilMailNotification\getObjectTitle(), ilObjUser\getProfileAsString(), ilObjSCORM2004LearningModuleGUI\getPropertiesEditableValues(), ilShopSearchResult\getResultsForPresentation(), ilObjSurvey\getRoleData(), ilObjTest\getRoleData(), ilAuthShibbolethSettingsGUI\getRuleValues(), ilLMPresentationGUI\ilLocator(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), ilSoapUserAdministration\importUsers(), ilObjSessionGUI\infoScreen(), ilUserTableGUI\initFilter(), ilConditionHandlerInterface\initFormCondition(), ilCourseItemAdministrationGUI\initFormEdit(), ilCourseObjectivesGUI\initFormLimits(), ilLuceneSearchGUI\initFormSearch(), ilObjCourseReferenceListGUI\initItem(), ilObjCategoryReferenceListGUI\initItem(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilObjMediaPoolGUI\insertFromClipboard(), ilObjectListGUI\insertPreconditions(), ilObjRole\isAutoGenerated(), ilRbacReview\isDeleteable(), ilGlossaryPresentationGUI\listDefinitions(), ilGlossaryPresentationGUI\listTermByGiven(), ilSearchResultPresentation\lookupTitle(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), ilExportContainer\manifestWriterBegin(), ilLDAPRoleAssignmentRule\matches(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilLDAPRoleAssignmentTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilObjRoleGUI\perm2Object(), ilLDAPSettingsGUI\prepareGlobalRoleSelection(), ilAuthShibbolethSettingsGUI\prepareRoleSelect(), ilECSSettingsGUI\prepareRoleSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilRadiusSettingsGUI\prepareRoleSelection(), ilOpenIdSettingsGUI\prepareRoleSelection(), ilStartUpGUI\processStartingPage(), ilObjStyleSheetFolder\read(), ilObjStyleSettings\read(), ilCalendarCategory\read(), ilMediaObjectDataSet\readData(), ilSearchResultPresentation\renderItemList(), ilUtil\replaceLinkProperties(), ilAccountMail\replacePlaceholders(), ilRepUtil\restoreObjects(), ilLDAPSettingsGUI\setValuesByArray(), ilFeedbackGUI\showBarometerById(), ilPermissionGUI\showConfirmBlockRole(), ilNewsForContextBlockGUI\showFeedUrl(), ilPageObjectGUI\showMediaFullscreen(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPreconditionsOfPage(), ilPDTaggingBlockGUI\showResourcesForTag(), ilPageEditorGUI\showSnippetInfo(), ilPaymentStatisticGUI\showStatistics(), ilNoteGUI\showTargets(), ilObjPaymentSettingsGUI\statisticObject(), ilObjectTest\testSetGetLookup(), ilShibbolethRoleAssignmentRules\updateAssignments(), ilMediaPoolItem\updateObjectTitle(), ilObjContentObject\validatePages(), ilPDNewsGUI\view(), ilPDNotesGUI\view(), and ilContainerXmlWriter\writeSubitems().

{
global $ilObjDataCache;
$tit = $ilObjDataCache->lookupTitle($a_id);
//echo "<br>LOOKING-$a_id-:$tit";
return $tit;
}

+ Here is the caller graph for this function:

static ilObject::_lookupType (   $a_id,
  $a_reference = false 
)
static

lookup object type

Parameters
int$a_idobject id

Reimplemented in ilObject2.

Definition at line 1162 of file class.ilObject.php.

References $ilDB.

Referenced by ilAdminSubItemsTableGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilMainMenuSearchGUI\__construct(), ilObjRoleGUI\__construct(), ilMemberAgreement\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilMemberAgreementGUI\__construct(), ilMemberExportGUI\__construct(), ilRegistrationGUI\__construct(), ilParticipants\__construct(), ilMemberExport\__construct(), ilContainerContentGUI\__forwardToColumnGUI(), ilCourseContentGUI\__forwardToColumnGUI(), ilSoapUserAdministration\__validateUserData(), ilAdvancedMDValues\_appendXMLByObjId(), ilAdvancedMDValues\_cloneValues(), ilHistory\_createEntry(), ilExport\_createExportDirectory(), ilExport\_generateIndexFile(), ilPCSectionGUI\_getCharacteristics(), ilPCParagraphGUI\_getCharacteristics(), ilLPStatusFactory\_getClassById(), ilConditionHandler\_getConditionsOfTarget(), ilHistory\_getEntriesForObject(), ilExport\_getExportDirectory(), ilExport\_getExportFiles(), _getIcon(), ilLPStatusFactory\_getInstance(), ilObjAssessmentFolder\_getLog(), ilObjMediaObject\_getMobsOfObject(), ilNewsItem\_getNewsItemsOfUser(), ilLMPageObject\_getPresentationTitle(), ilObjGroupGUI\_goto(), ilObjCourseGUI\_goto(), ilChangeEvent\_recordReadEvent(), ilTimingCache\_showWarning(), ilObjContentObjectGUI\addMenuEntry(), ilPDSelectedItemsBlockGUI\addParentRow(), ilCalendarCategoryGUI\addReferenceLinks(), ilPermission2GUI\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilExportContainer\addSubitems(), ilDesktopItemGUI\addToDesktop(), ilSoapCourseAdministration\assignCourseMember(), ilObjRoleGUI\assignDesktopItemObject(), ilSoapGroupAdministration\assignGroupMember(), ilUserImportParser\assignToRole(), ilWebAccessChecker\checkAccessObject(), ilAccessHandler\checkAccessOfUser(), ilWebAccessChecker\checkAccessTestQuestion(), ilPrivacySettings\checkExportAccess(), ilContainer\cloneAllObject(), ilObjRoleFolderGUI\confirmedDeleteObject(), ilObjectCopyGUI\copyContainer(), ilObjectRolePermissionTableGUI\createTooltip(), ilAdministrationCommandGUI\delete(), ilObjMediaPool\delete(), delete(), ilPageObject\delete(), ilObjMediaPool\deleteChild(), ilSoapCourseAdministration\deleteCourse(), ilObjRole\deleteLocalPolicies(), ilCalendarSharedStatus\deleteStatus(), ilUserImportParser\detachFromRole(), ilObjSystemFolderGUI\displayList(), ilLMEditorGUI\displayLocator(), ilPCResourcesGUI\edit(), ilContainerGUI\editPageContentObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilAdministrationGUI\executeCommand(), ilPublicUserProfileGUI\executeCommand(), ilRepositoryGUI\executeCommand(), ilObjContentObject\exportHTML(), ilObjContentObject\exportXMLMediaObjects(), ilRegistrationGUI\fillAgreement(), ilRegistrationGUI\fillMembershipLimitation(), ilLinksTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilShopSearchResult\filter(), ilSearchResult\filter(), ilObjPluginDispatchGUI\forward(), ilAdministrationGUI\frameset(), ilContainerGUI\getAsynchItemListObject(), ilObjectGUI\getCenterColumnHTML(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilParticipants\getDefaultMemberRole(), ilObjStyleSheet\getEffectiveContentStyleId(), ilUserDefinedFields\getExportableFields(), ilLPTableBaseGUI\getExportMeta(), ilObjLearningModuleSubItemListGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilLocatorGUI\getHTML(), ilLMPageObjectGUI\getLinkXML(), ilGlossaryPresentationGUI\getLinkXML(), ilLMPresentationGUI\getLinkXML(), ilObjectListGUI\getListItemHTML(), ilExAssignment\getMemberListData(), ilMainMenuGUI\getMemberViewHTML(), ilPageObject\getMultimediaXML(), ilNewsItem\getNewsForRefId(), ilCalendarCategories\getNotificationCalendars(), ilTrQuery\getObjectIds(), ilObjectRolePermissionTableGUI\getObjType(), ilObjectRoleTemplatePermissionTableGUI\getObjType(), ilExportUserSettings\getOrderedExportableFields(), ilTrQuery\getParticipantsForObject(), ilObjSCORM2004LearningModuleGUI\getPropertiesEditableValues(), ilContainerContentGUI\getRightColumnHTML(), ilCourseContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ilPageContentGUI\getStyle(), ilUserQuery\getUserListData(), ilCOPageExporter\getXmlExportHeadDependencies(), ilFileExporter\getXmlRepresentation(), ilMembershipRegistrationCodeUtils\handleCode(), ilTaggingAppEventListener\handleEvent(), ilSearchAppEventListener\handleEvent(), ilSCORM13Package\il_import(), ilHistoryGUI\ilHistoryGUI(), ilInternalLinkGUI\ilInternalLinkGUI(), ilObjectFeedWriter\ilObjectFeedWriter(), ilRepositoryGUI\ilRepositoryGUI(), ilUserFeedWriter\ilUserFeedWriter(), ilObjSessionGUI\infoScreen(), ilObjectCopyGUI\init(), ilSubItemListGUI\init(), ilCalendarAppointmentGUI\initForm(), ilConditionHandlerInterface\initFormCondition(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjectCopyGUI\initTargetSelection(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPageObject\insertInstIntoIDs(), ilObjectListGUI\insertLinkCommand(), ilObjectListGUI\insertPasteCommand(), ilObjectListGUI\insertSubscribeCommand(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilObjUserFolderGUI\jumpToUserObject(), ilRepositorySearchGUI\listUsers(), ilContainerSortingSettings\lookupSortModeFromParentContainer(), ilTestScoringGUI\manscoring(), ilObjExerciseGUI\membersObject(), assTextQuestionGUI\outQuestionForTest(), ilCourseObjectivesTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilAdministrationCommandGUI\paste(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), ilObjectGUI\prepareOutput(), ilCalendarCategory\read(), ilMediaObjectDataSet\readData(), ilCalendarCategories\readSelectedCategories(), ilObjectGUI\redirectToRefId(), ilDesktopItemGUI\removeFromDesktop(), ilSearchResultPresentation\renderItemList(), ilPCTableGUI\renderTable(), ilAccountMail\replacePlaceholders(), ilObjUserGUI\roleassignmentObject(), ilCalendarAppointmentGUI\save(), ilExportGUI\saveItemSelection(), ilObjFileGUI\saveUnzipObject(), ilSCORM2004PageGUI\setDefaultLinkXml(), ilPageObjectGUI\setDefaultLinkXml(), ilLPStatus\setInProgressIfNotAttempted(), ilMailNotification\setRefId(), ilMainMenuGUI\setTemplateVars(), ilMemberAgreementGUI\showAgreement(), ilRepUtilGUI\showDeleteConfirmation(), ilCalendarAppointmentGUI\showInfoScreen(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilObjExerciseGUI\showParticipantObject(), ilNoteGUI\showTargets(), ilRepositoryGUI\showTree(), ilObjectGUI\showUpperIcon(), ilRepositoryExplorer\sortNodes(), ilSearchAppEventListener\storeElement(), ilObjectTest\testSetGetLookup(), ilObjectTest\testTreeTrash(), ilPageObject\update(), ilSoapCourseAdministration\updateCourse(), ilMediaPoolItem\updateObjectTitle(), ilECSCategoryMappingRule\validate(), ilSoapObjectAdministration\validateReferences(), ilPDNewsGUI\view(), ilPDNotesGUI\view(), ilPublicUserProfileGUI\view(), ilLPStatus\writeStatus(), ilContainerXmlWriter\writeSubitems(), and ilPCParagraph\xml2output().

{
global $ilObjDataCache;
if($a_reference)
{
return $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_id));
}
return $ilObjDataCache->lookupType($a_id);
global $ilDB;
if ($a_reference === true)
{
$q = "SELECT type FROM object_reference obr, object_data obd ".
"WHERE obr.ref_id = ".$ilDB->quote($a_id, "integer")." ".
"AND obr.obj_id = obd.obj_id ";
}
else
{
$q = "SELECT type FROM object_data WHERE obj_id = ".$ilDB->quote($a_id, "integer");
}
$obj_set = $ilDB->query($q);
$obj_rec = $ilDB->fetchAssoc($obj_set);
return $obj_rec["type"];
}

+ Here is the caller graph for this function:

static ilObject::_prepareCloneSelection (   $a_ref_ids,
  $new_type 
)
static

Prepare copy wizard object selection.

public

Parameters
arrayint array of ref ids

Reimplemented in ilObject2.

Definition at line 1639 of file class.ilObject.php.

References $ilDB, $lng, $path, $query, $res, $row, $title, and ilPlugin\lookupTxt().

Referenced by ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjQuestionPool\_getAvailableQuestionpools(), and ilObjTest\_getAvailableTests().

{
global $ilDB,$lng,$objDefinition;
$query = "SELECT obj_data.title obj_title,path_data.title path_title,child FROM tree ".
"JOIN object_reference obj_ref ON child = obj_ref.ref_id ".
"JOIN object_data obj_data ON obj_ref.obj_id = obj_data.obj_id ".
"JOIN object_reference path_ref ON parent = path_ref.ref_id ".
"JOIN object_data path_data ON path_ref.obj_id = path_data.obj_id ".
"WHERE ".$ilDB->in("child", $a_ref_ids, false, "integer")." ".
"ORDER BY obj_data.title ";
$res = $ilDB->query($query);
if (!$objDefinition->isPlugin($new_type))
{
$options[0] = $lng->txt('obj_'.$new_type.'_select');
}
else
{
include_once("./Services/Component/classes/class.ilPlugin.php");
$options[0] = ilPlugin::lookupTxt("rep_robj", $new_type, "obj_".$new_type."_select");
}
while($row = $ilDB->fetchObject($res))
{
if(strlen($title = $row->obj_title) > 40)
{
$title = substr($title,0,40).'...';
}
if(strlen($path = $row->path_title) > 40)
{
$path = substr($path,0,40).'...';
}
$options[$row->child] = ($title.' ('.$lng->txt('path').': '.$path.')');
}
return $options ? $options : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::_resetDeletedDate (   $a_ref_id)

only called in ilObjectGUI::insertSavedNodes

Reimplemented in ilObject2.

Definition at line 1047 of file class.ilObject.php.

References $ilDB, $query, and $res.

Referenced by ilTree\insertNode(), ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$query = "UPDATE object_reference SET deleted = ".$ilDB->quote(null,'timestamp').
" WHERE ref_id = ".$ilDB->quote($a_ref_id,'integer');
$res = $ilDB->manipulate($query);
}

+ Here is the caller graph for this function:

ilObject::_setDeletedDate (   $a_ref_id)

only called in ilTree::saveSubTree

Reimplemented in ilObject2.

Definition at line 1035 of file class.ilObject.php.

References $ilDB, $query, and $res.

Referenced by ilTree\saveSubTree(), ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

{
global $ilDB;
$query = "UPDATE object_reference SET deleted= ".$ilDB->now().' '.
"WHERE ref_id = ".$ilDB->quote($a_ref_id,'integer');
$res = $ilDB->manipulate($query);
}

+ Here is the caller graph for this function:

ilObject::_writeDescription (   $a_obj_id,
  $a_desc 
)

write description to db (static)

Parameters
int$a_obj_idobject id
string$a_descdescription public

Reimplemented in ilObject2.

Definition at line 1099 of file class.ilObject.php.

References $desc, $ilDB, $res, getId(), getLongDescription(), and ilUtil\shortenText().

Referenced by ilObjMediaObject\MDUpdateListener().

{
global $ilDB,$objDefinition;
$desc = ilUtil::shortenText($a_desc,MAXLENGTH_OBJ_DESC,true);
$q = "UPDATE object_data ".
"SET ".
"description = ".$ilDB->quote($desc, "text").",".
"last_update = ".$ilDB->now()." ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id, "integer");
$ilDB->manipulate($q);
if($objDefinition->isRBACObject($this->getType()))
{
// Update long description
$res = $ilDB->query("SELECT * FROM object_description WHERE obj_id = ".
$ilDB->quote($a_obj_id,'integer'));
if($res->numRows())
{
$values = array(
'description' => array('clob',$this->getLongDescription())
);
$ilDB->update('object_description',$values,array('obj_id' => array('integer',$this->getId())));
}
else
{
$values = array(
'description' => array('clob',$this->getLongDescription()),
'obj_id' => array('integer',$this->getId()));
$ilDB->insert('object_description',$values);
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::_writeImportId (   $a_obj_id,
  $a_import_id 
)

write import id to db (static)

Parameters
int$a_obj_idobject id
string$a_import_idimport id public

Reimplemented in ilObject2.

Definition at line 1144 of file class.ilObject.php.

References $ilDB.

Referenced by ilAuthContainerECS\createUser(), ilCourseXMLParser\handlerBeginTag(), ilObjGlossaryGUI\importFileObject(), ilObjContentObject\importFromDirectory(), and ilGlossaryImporter\importXmlRepresentation().

{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"import_id = ".$ilDB->quote($a_import_id, "text").",".
"last_update = ".$ilDB->now()." ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id, "integer");
$ilDB->manipulate($q);
}

+ Here is the caller graph for this function:

ilObject::_writeTitle (   $a_obj_id,
  $a_title 
)

write title to db (static)

Parameters
int$a_obj_idobject id
string$a_titletitle public

Reimplemented in ilObject2.

Definition at line 1079 of file class.ilObject.php.

References $ilDB.

Referenced by ilObjMediaObject\MDUpdateListener(), and ilObjSAHSLearningModuleGUI\uploadObject().

{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"title = ".$ilDB->quote($a_title, "text").",".
"last_update = ".$ilDB->now()." ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id, "integer");
$ilDB->manipulate($q);
}

+ Here is the caller graph for this function:

ilObject::appendCopyInfo (   $a_target_id,
  $a_copy_id 
)

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

public

Parameters
intcopy_id

Reimplemented in ilObject2.

Definition at line 1734 of file class.ilObject.php.

References $title, ilObjFileAccess\_appendNumberOfCopyToFilename(), ilCopyWizardOptions\_getInstance(), getTitle(), and getType().

Referenced by cloneObject().

{
global $tree;
include_once('Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
$cp_options = ilCopyWizardOptions::_getInstance($a_copy_id);
if(!$cp_options->isRootNode($this->getRefId()))
{
return $this->getTitle();
}
$nodes = $tree->getChilds($a_target_id);
$title_unique = false;
require_once 'Modules/File/classes/class.ilObjFileAccess.php';
$numberOfCopy = 1;
while(!$title_unique)
{
$found = 0;
foreach($nodes as $node)
{
if(($title == $node['title']) and ($this->getType() == $node['type']))
{
$found++;
}
}
if($found > 0)
{
}
else
{
break;
}
}
return $title;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::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 in ilObjCourse, ilObjGroup, ilObjSession, ilContainer, ilObject2, ilObjFolder, and ilCourseStart.

Definition at line 1784 of file class.ilObject.php.

{
return true;
//include_once('Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
//$cwo = ilCopyWizardOptions::_getInstance($a_copy_id);
//$mappings = $cwo->getMappings();
}
ilObject::cloneMetaData (   $target_obj)

Copy meta data.

public

Parameters
objecttarget object

Reimplemented in ilObject2.

Definition at line 1801 of file class.ilObject.php.

References getId(), and getType().

Referenced by ilObjLinkResource\cloneObject(), ilObjFile\cloneObject(), ilObjCourse\cloneObject(), ilObjSurvey\cloneObject(), and ilObjTest\cloneObject().

{
include_once "./Services/MetaData/classes/class.ilMD.php";
$md = new ilMD($this->getId(),0,$this->getType());
$md->cloneMD($target_obj->getId(),0,$target_obj->getType());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::cloneObject (   $a_target_id,
  $a_copy_id = 0 
)

Clone object permissions, put in tree ...

public

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

Reimplemented in ilObjTest, ilObjSurvey, ilObjQuestionPool, ilObjCourse, ilObjGroup, ilObjFile, ilContainer, ilObjSession, ilContainerReference, ilObjExercise, ilObjCategory, ilObjLinkResource, ilObject2, ilObjSurveyQuestionPool, ilObjFolder, and ilObjExternalFeed.

Definition at line 1688 of file class.ilObject.php.

References $ilDB, $location, $query, $res, $title, ilAdvancedMDValues\_cloneValues(), appendCopyInfo(), getId(), getLongDescription(), getRefId(), and getType().

{
global $objDefinition,$ilUser,$rbacadmin, $ilDB;
$location = $objDefinition->getLocation($this->getType());
$class_name = ('ilObj'.$objDefinition->getClassName($this->getType()));
$title = $this->appendCopyInfo($a_target_id,$a_copy_id);
// create instance
include_once($location."/class.".$class_name.".php");
$new_obj = new $class_name(0, false);
$new_obj->setOwner($ilUser->getId());
$new_obj->setTitle($title);
$new_obj->setDescription($this->getLongDescription());
$new_obj->setType($this->getType());
// Choose upload mode to avoid creation of additional settings, db entries ...
$new_obj->create(true);
$new_obj->createReference();
$new_obj->putInTree($a_target_id);
$new_obj->setPermissions($a_target_id);
// copy local roles
$rbacadmin->copyLocalRoles($this->getRefId(),$new_obj->getRefId());
include_once('./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
ilAdvancedMDValues::_cloneValues($this->getId(),$new_obj->getId());
// BEGIN WebDAV: Clone WebDAV properties
$query = "INSERT INTO dav_property (obj_id,node_id,ns,name,value) ".
"SELECT ".$ilDB->quote($new_obj->getId(),'integer').",node_id,ns,name,value ".
"FROM dav_property ".
"WHERE obj_id = ".$ilDB->quote($this->getId(),'integer');
$res = $ilDB->manipulate($query);
// END WebDAV: Clone WebDAV properties
return $new_obj;
}

+ Here is the call graph for this function:

static ilObject::collectDeletionDependencies ( $deps,
  $a_ref_id,
  $a_obj_id,
  $a_type,
  $a_depth = 0 
)
staticfinal

Collect deletion dependencies.

E.g.

Parameters
@return

Definition at line 1887 of file class.ilObject.php.

References $id, $location, and $type.

Referenced by ilRepUtilGUI\showDeleteConfirmation().

{
global $objDefinition, $tree;
if ($a_depth == 0)
{
$deps["dep"] = array();
}
$deps["del_ids"][$a_obj_id] = $a_obj_id;
if (!$objDefinition->isPlugin($type))
{
$class_name = "ilObj".$objDefinition->getClassName($a_type);
$location = $objDefinition->getLocation($a_type);
include_once($location."/class.".$class_name.".php");
$odeps = call_user_func(array($class_name, "getDeletionDependencies"), $a_obj_id);
if (is_array($odeps))
{
foreach ($odeps as $id => $message)
{
$deps["dep"][$id][$a_obj_id][] = $message;
}
}
// get deletion dependency of childs
foreach ($tree->getChilds($a_ref_id) as $c)
{
ilObject::collectDeletionDependencies($deps, $c["child"], $c["obj_id"], $c["type"], $a_depth + 1);
}
}
// delete all dependencies to objects that will be deleted, too
if ($a_depth == 0)
{
foreach ($deps["del_ids"] as $obj_id)
{
unset($deps["dep"][$obj_id]);
}
$deps = $deps["dep"];
}
}

+ Here is the caller graph for this function:

ilObject::countReferences ( )

count references of object

public

Returns
integer number of references for this object

Reimplemented in ilObject2.

Definition at line 1334 of file class.ilObject.php.

References $ilDB, $query, $res, and $row.

Referenced by delete().

{
global $ilDB;
if (!isset($this->id))
{
$message = "ilObject::countReferences(): No obj_id given!";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
$query = "SELECT COUNT(ref_id) num FROM object_reference ".
"WHERE obj_id = ".$ilDB->quote($this->id,'integer')." ";
$res = $ilDB->query($query);
$row = $ilDB->fetchObject($res);
return $row->num;
}

+ Here is the caller graph for this function:

ilObject::create ( )

create

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

public

Returns
integer object id

Reimplemented in ilContainer, ilObjGroup, ilObjSession, ilObjFileAccessSettings, ilObjMediaCast, ilObjRole, ilObjMediaPool, ilObjDiskQuotaSettings, ilObjFileBasedLM, ilObject2, and ilObjBookingPool.

Definition at line 593 of file class.ilObject.php.

References $GLOBALS, $id, $ilDB, $log, $owner, getDescription(), getImportId(), getLongDescription(), getOwner(), getTitle(), setOwner(), and ilUtil\shortenText().

Referenced by ilObjGlossary\create(), ilObjQuestionPool\create(), ilObjContentObject\create(), ilObjFile\create(), ilObjLinkResource\create(), ilObjSAHSLearningModule\create(), ilObjSurveyQuestionPool\create(), ilObjSurvey\create(), ilObjRemoteCourse\create(), ilObjMediaObject\create(), ilObjTest\create(), ilObjStyleSheet\create(), ilObjStyleSheet\createFromXMLFile(), and ilObjStyleSheet\import().

{
global $ilDB, $log,$ilUser,$objDefinition;
if (!isset($this->type))
{
$message = get_class($this)."::create(): No object type given!";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
// write log entry
$log->write("ilObject::create(), start");
$this->title = ilUtil::shortenText($this->getTitle(), $this->max_title, $this->add_dots);
$this->desc = ilUtil::shortenText($this->getDescription(), $this->max_desc, $this->add_dots);
// determine owner
if ($this->getOwner() > 0)
{
$owner = $this->getOwner();
}
elseif(is_object($ilUser))
{
$owner = $ilUser->getId();
}
else
{
$owner = 0;
}
$this->id = $ilDB->nextId("object_data");
$q = "INSERT INTO object_data ".
"(obj_id,type,title,description,owner,create_date,last_update,import_id) ".
"VALUES ".
"(".
$ilDB->quote($this->id, "integer").",".
$ilDB->quote($this->type, "text").",".
$ilDB->quote($this->getTitle(), "text").",".
$ilDB->quote($this->getDescription(), "text").",".
$ilDB->quote($owner, "integer").",".
$ilDB->now().",".
$ilDB->now().",".
$ilDB->quote($this->getImportId(), "text").")";
$ilDB->manipulate($q);
//$this->id = $ilDB->getLastInsertId();
// Save long form of description if is rbac object
if($objDefinition->isRBACObject($this->getType()))
{
$values = array(
'obj_id' => array('integer',$this->id),
'description' => array('clob', $this->getLongDescription()));
//var_dump($values);
$ilDB->insert('object_description',$values);
}
// the line ($this->read();) messes up meta data handling: meta data,
// that is not saved at this time, gets lost, so we query for the dates alone
//$this->read();
$q = "SELECT last_update, create_date FROM object_data".
" WHERE obj_id = ".$ilDB->quote($this->id, "integer");
$obj_set = $ilDB->query($q);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->last_update = $obj_rec["last_update"];
$this->create_date = $obj_rec["create_date"];
// set owner for new objects
$this->setOwner($owner);
// write log entry
$log->write("ilObject::create(), finished, obj_id: ".$this->id.", type: ".
$this->type.", title: ".$this->getTitle());
$GLOBALS['ilAppEventHandler']->raise(
'Services/Object',
'create',
array('obj_id' => $this->id,'obj_type' => $this->type));
return $this->id;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::createMetaData ( )

create meta data entry

Reimplemented in ilObjTest, ilObjSurvey, ilObjMediaObject, ilObjFile, and ilObject2.

Definition at line 787 of file class.ilObject.php.

References getId(), getLongDescription(), getTitle(), and getType().

Referenced by ilObjGlossary\create(), ilObjQuestionPool\create(), ilObjContentObject\create(), ilObjLinkResource\create(), ilObjSAHSLearningModule\create(), ilObjSurveyQuestionPool\create(), ilObjFileBasedLM\create(), ilObjCourse\create(), and updateMetaData().

{
include_once 'Services/MetaData/classes/class.ilMDCreator.php';
global $ilUser;
$md_creator = new ilMDCreator($this->getId(),0,$this->getType());
$md_creator->setTitle($this->getTitle());
$md_creator->setTitleLanguage($ilUser->getPref('language'));
$md_creator->setDescription($this->getLongDescription());
$md_creator->setDescriptionLanguage($ilUser->getPref('language'));
$md_creator->setKeywordLanguage($ilUser->getPref('language'));
$md_creator->setLanguage($ilUser->getPref('language'));
$md_creator->create();
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::createReference ( )

creates reference for object

public

Returns
integer reference_id of object

Reimplemented in ilObjTest, ilObjStyleSheet, ilObjSurvey, ilObject2, ilObjMediaObject, and ilObjQuestionPool.

Definition at line 1306 of file class.ilObject.php.

References $ilDB, $query, and $ref_id.

{
global $ilDB;
if (!isset($this->id))
{
$message = "ilObject::createNewReference(): No obj_id given!";
$this->raiseError($message,$this->ilias->error_obj->WARNING);
}
$next_id = $ilDB->nextId('object_reference');
$query = "INSERT INTO object_reference ".
"(ref_id, obj_id) VALUES (".$ilDB->quote($next_id,'integer').','.$ilDB->quote($this->id ,'integer').")";
$this->ilias->db->query($query);
$this->ref_id = $next_id;
$this->referenced = true;
return $this->ref_id;
}
ilObject::createRoleFolder ( )

creates a local role folder

public

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

Reimplemented in ilObject2.

Definition at line 1485 of file class.ilObject.php.

References getId(), and getRefId().

Referenced by ilObjContentObject\initDefaultRoles(), ilObjiLincCourse\initDefaultRoles(), ilObjCourse\initDefaultRoles(), and ilObjGroup\initDefaultRoles().

{
global $rbacreview;
// does a role folder already exists?
// (this check is only 'to be sure' that no second role folder is created under one object.
// the if-construct should never return true)
if ($rolf_data = $rbacreview->getRoleFolderofObject($this->getRefId()))
{
$rfoldObj = $this->ilias->obj_factory->getInstanceByRefId($rolf_data["ref_id"]);
}
else
{
include_once ("./Services/AccessControl/classes/class.ilObjRoleFolder.php");
$rfoldObj = new ilObjRoleFolder();
$rfoldObj->setTitle($this->getId());
$rfoldObj->setDescription(" (ref_id ".$this->getRefId().")");
$rfoldObj->create();
$rfoldObj->createReference();
$rfoldObj->putInTree($this->getRefId());
$rfoldObj->setPermissions($this->getRefId());
}
return $rfoldObj;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

public

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

Reimplemented in ilObjStyleSheet, ilObjUser, ilObjCourse, ilObjGlossary, ilObjFile, ilObjGroup, ilObjSAHSLearningModule, ilObjTest, ilObjSession, ilObjRemoteCourse, ilObjContentObject, ilObjRole, ilObjSurvey, ilObjExercise, ilContainerReference, ilObjMediaCast, ilObjSurveyQuestionPool, ilObjiLincClassroom, ilObjiLincCourse, ilObjMediaPool, ilObjStyleSettings, ilObjFileBasedLM, ilObjAuthSettings, ilObject2, ilObjLinkResource, ilObjStyleSheetFolder, ilObjQuestionPool, ilObjMediaObject, ilObjBookingPool, ilObjLearningResourcesSettings, ilObjMediaCastSettings, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjTaggingSettings, ilObjComponentSettings, ilObjExternalFeed, ilObjSurveyAdministration, ilObjAssessmentFolder, ilObjAdvancedEditing, ilObjPDFGeneration, ilObjRecoveryFolder, ilObjAICCLearningModule, ilObjExternalToolsSettings, ilObjRoleFolder, ilObjAccessibilitySettings, ilObjMediaObjectsSettings, ilObjCategory, ilObjRootFolder, ilObjSystemFolder, ilObjObjectFolder, ilObjRoleTemplate, ilObj< module_name >, and ilObjUserFolder.

Definition at line 1364 of file class.ilObject.php.

References $ilDB, $log, $query, $res, ilChangeEvent\_delete(), ilBlockSetting\_deleteSettingsOfBlock(), _lookupType(), countReferences(), getId(), getRefId(), getTitle(), getType(), and ilUtil\removeItemFromDesktops().

{
global $rbacadmin, $log, $ilDB;
$remove = false;
// delete object_data entry
if ((!$this->referenced) || ($this->countReferences() == 1))
{
// check type match
$db_type = ilObject::_lookupType($this->getId());
if ($this->type != $db_type)
{
$message = "ilObject::delete(): Type mismatch. Object with obj_id: ".$this->id." ".
"was instantiated by type '".$this->type."'. DB type is: ".$db_type;
// write log entry
$log->write($message);
// raise error
$this->ilias->raiseError("ilObject::delete(): Type mismatch. (".$this->type."/".$this->id.")",$this->ilias->error_obj->WARNING);
}
// delete entry in object_data
$q = "DELETE FROM object_data ".
"WHERE obj_id = ".$ilDB->quote($this->getId(), "integer");
$ilDB->manipulate($q);
// delete long description
$query = "DELETE FROM object_description WHERE obj_id = ".
$ilDB->quote($this->getId(), "integer");
$ilDB->manipulate($query);
// write log entry
$log->write("ilObject::delete(), deleted object, obj_id: ".$this->getId().", type: ".
$this->getType().", title: ".$this->getTitle());
// remove news
include_once("./Services/News/classes/class.ilNewsItem.php");
$news_item = new ilNewsItem();
$news_item->deleteNewsOfContext($this->getId(), $this->getType());
include_once("./Services/Block/classes/class.ilBlockSetting.php");
$remove = true;
}
else
{
// write log entry
$log->write("ilObject::delete(), object not deleted, number of references: ".
$this->countReferences().", obj_id: ".$this->getId().", type: ".
$this->getType().", title: ".$this->getTitle());
}
// delete object_reference entry
if ($this->referenced)
{
// delete entry in object_reference
$query = "DELETE FROM object_reference ".
"WHERE ref_id = ".$ilDB->quote($this->getRefId(),'integer');
$res = $ilDB->manipulate($query);
// write log entry
$log->write("ilObject::delete(), reference deleted, ref_id: ".$this->getRefId().
", obj_id: ".$this->getId().", type: ".
$this->getType().", title: ".$this->getTitle());
// DELETE PERMISSION ENTRIES IN RBAC_PA
// DONE: method overwritten in ilObjRole & ilObjUser.
// this call only applies for objects in rbac (not usr,role,rolt)
// TODO: Do this for role templates too
$rbacadmin->revokePermission($this->getRefId(),0,false);
include_once "Services/AccessControl/classes/class.ilRbacLog.php";
// Remove desktop items
}
// remove conditions
if ($this->referenced)
{
$ch =& new ilConditionHandler();
$ch->delete($this->getRefId());
unset($ch);
}
// BEGIN WebDAV: Delete WebDAV properties
$query = "DELETE FROM dav_property ".
"WHERE obj_id = ".$ilDB->quote($this->getId(),'integer');
$res = $ilDB->manipulate($query);
// END WebDAV: Delete WebDAV properties
include_once './Services/Tracking/classes/class.ilChangeEvent.php';
return $remove;
}

+ Here is the call graph for this function:

ilObject::deleteMetaData ( )

delete meta data entry

Reimplemented in ilObjMediaObject, and ilObject2.

Definition at line 841 of file class.ilObject.php.

References getId(), and getType().

Referenced by ilObjAICCLearningModule\delete(), ilObjQuestionPool\delete(), ilObjLinkResource\delete(), ilObjFileBasedLM\delete(), ilObjSurveyQuestionPool\delete(), ilObjSurvey\delete(), ilObjContentObject\delete(), ilObjTest\delete(), ilObjSAHSLearningModule\delete(), ilObjFile\delete(), ilObjGlossary\delete(), and ilObjCourse\delete().

{
// Delete meta data
include_once('Services/MetaData/classes/class.ilMD.php');
$md = new ilMD($this->getId(), 0, $this->getType());
$md->deleteAll();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::getCreateDate ( )

get create date public

Returns
string creation date

Reimplemented in ilObject2.

Definition at line 540 of file class.ilObject.php.

References $create_date.

Referenced by ilObjUser\getProfileAsString().

{
}

+ Here is the caller graph for this function:

static ilObject::getDeletionDependencies (   $a_obj_id)
static

Get deletion dependencies.

Reimplemented in ilObjGlossary.

Definition at line 1934 of file class.ilObject.php.

{
return false;
}
ilObject::getDescription ( )

get object description

public

Returns
string object description

Reimplemented in ilObjQuestionPool, ilObjContentObject, ilObjMediaObject, ilObjGlossary, and ilObject2.

Definition at line 404 of file class.ilObject.php.

References $desc.

Referenced by ilObjExercise\__formatSubject(), ilObjFile\addNewsNotification(), create(), ilObjStyleSheet\getXML(), ilObjStyleSheet\ilClone(), ilObjRoleGUI\readRoleProperties(), ilObjSurvey\toXML(), ilObjiLincClassroom\update(), and update().

{
return $this->desc;
}

+ Here is the caller graph for this function:

ilObject::getDiskUsage ( )

Gets the disk usage of the object in bytes.

Returns null, if the object does not use disk space at all.

The implementation of class ilObject always returns null.
Subclasses which use disk space can override this method to return a
non-null value.

@access     public
@return     integer         the disk usage in bytes or null

Reimplemented in ilObjFile, ilObjSAHSLearningModule, ilObjMediaCast, and ilObjFileBasedLM.

Definition at line 567 of file class.ilObject.php.

{
return null;
}
ilObject::getHTMLDirectory ( )

Reimplemented in ilObject2.

Definition at line 1589 of file class.ilObject.php.

{
return false;
}
ilObject::getId ( )

get object id public

Returns
integer object id

Reimplemented in ilObjMediaObject, ilCourseStart, and ilObject2.

Definition at line 292 of file class.ilObject.php.

References $id.

Referenced by ilObjCourse\__createDefaultSettings(), ilObjCourse\__deleteSettings(), ilObjCourse\__readSettings(), ilObjContentObject\_deleteStyleAssignments(), ilObjStyleSheet\_replaceStylePar(), _writeDescription(), ilObjStyleSheet\addCharacteristic(), ilObjUser\addDesktopItem(), ilObjFile\addFileVersion(), ilObjSystemFolder\addHeaderTitleTranslation(), ilObjSurvey\addMaterialTag(), ilObjFile\addNewsNotification(), ilObjUser\addObjectToClipboard(), ilObjStyleSheet\addParameter(), ilObjStyleSheet\addTemplate(), ilObjUser\addToPCClipboard(), ilObjCategory\addTranslation(), ilObjRootFolder\addTranslation(), ilObjRole\adjustPermissions(), ilObjRole\changeExistingObjects(), ilObjStyleSheet\characteristicExists(), ilObjContentObject\checkTree(), ilObjStyleSheet\cleanExportDirectory(), ilObjSurvey\cleanupMediaobjectUsage(), ilObjTest\cleanupMediaobjectUsage(), ilObjUser\clipboardDeleteAll(), ilObjUser\clipboardDeleteObjectsOfType(), ilObjUser\clipboardHasObjectsOfType(), ilObjFolder\cloneDependencies(), ilContainer\cloneDependencies(), ilObjSession\cloneDependencies(), ilObjGroup\cloneDependencies(), ilObjCourse\cloneDependencies(), cloneMetaData(), ilObjFolder\cloneObject(), ilObjSurveyQuestionPool\cloneObject(), ilObjLinkResource\cloneObject(), ilObjExercise\cloneObject(), ilObjSession\cloneObject(), ilContainer\cloneObject(), ilObjFile\cloneObject(), ilObjGroup\cloneObject(), ilObjCourse\cloneObject(), ilObjQuestionPool\cloneObject(), cloneObject(), ilObjSurveyQuestionPool\copyQuestion(), ilObjQuestionPool\copyQuestion(), ilObjSAHSLearningModule\create(), ilObjMediaPool\create(), ilObjMediaCast\create(), ilObjRemoteCourse\create(), ilObjSession\create(), ilObjGroup\create(), ilObjCourse\create(), ilContainer\create(), ilObjStyleSheet\create(), ilObjRemoteCourse\createAuthResource(), ilContainer\createContainerDirectory(), ilObjContentObject\createExportDirectory(), ilObjGlossary\createExportDirectory(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilObjStyleSheet\createFromXMLFile(), ilObjStyleSheet\createImagesDirectory(), ilObjContentObject\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilObjContentObject\createLMTree(), ilObjFile\createMetaData(), createMetaData(), ilObjRole\createPermissionIntersection(), ilObjFile\createProperties(), ilObjContentObject\createProperties(), createRoleFolder(), ilObjSCORM2004LearningModule\createScorm2004Tree(), ilObjRoleTemplate\delete(), ilObjCategory\delete(), ilObjAICCLearningModule\delete(), ilObjExternalFeed\delete(), ilObjBookingPool\delete(), ilObjLinkResource\delete(), ilObjFileBasedLM\delete(), ilObjMediaCast\delete(), ilContainerReference\delete(), ilObjExercise\delete(), ilObjRole\delete(), ilObjContentObject\delete(), ilObjRemoteCourse\delete(), ilObjSession\delete(), ilObjSAHSLearningModule\delete(), ilObjGroup\delete(), ilObjFile\delete(), ilObjGlossary\delete(), ilObjCourse\delete(), ilObjStyleSheet\delete(), ilObjUser\delete(), delete(), ilObjSurveyQuestionPool\deleteAllData(), ilObjStyleSheet\deleteCharacteristic(), ilObjRole\deleteLocalPolicies(), deleteMetaData(), ilObjUser\deletePref(), ilObjQuestionPool\deleteQuestionpool(), ilObjStyleSheet\deleteStylePar(), ilObjStyleSheet\deleteStyleParOfChar(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjUser\deleteUserDefinedFieldEntries(), ilObjFile\deleteVersions(), ilObjExercise\deliverFile(), ilObjExercise\determinStatusOfUser(), ilObjStyleSheet\do_3_10_Migration(), ilObjUser\dropDesktopItem(), ilObjQuestionPool\duplicateQuestion(), ilObjSCORM2004LearningModule\executeDragDrop(), ilObjContentObject\executeDragDrop(), ilObjFile\export(), ilObjExercise\exportGradesExcel(), ilObjGlossary\exportHTML(), ilObjSCORM2004LearningModule\exportHTML(), ilObjContentObject\exportHTML(), ilObjSCORM2004LearningModule\exportHTML4PDF(), ilObjContentObject\exportHTMLPages(), ilObjSCORM2004LearningModule\exportHTMLScoObjects(), ilObjSCORM2004LearningModule\exportPDF(), ilObjSCORM2004LearningModule\exportScorm(), ilObjContentObject\exportSCORM(), ilObjSCORM2004LearningModule\exportSelected(), ilObjSCORMLearningModule\exportSelected(), ilObjSCORMLearningModule\exportSelectedRaw(), ilObjGroup\exportXML(), ilObjQuestionPool\exportXMLMetaData(), ilObjGlossary\exportXMLMetaData(), ilObjContentObject\exportXMLMetaData(), ilObjSCORM2004LearningModule\exportXMLMetaData(), ilObjTest\exportXMLMetaData(), ilObjContentObject\exportXMLPageObjects(), ilObjSCORM2004LearningModule\exportXMLScoObjects(), ilObjSCORM2004LearningModule\exportXMLStructureObjects(), ilObjTest\fromXML(), ilObjGlossary\getAllGlossaryIds(), ilObjQuestionPool\getAllQuestionIds(), ilObjQuestionPool\getAllQuestions(), ilObjSCORMLearningModule\getAllScoIds(), ilObjUser\getAppliedUsers(), ilObjSCORMLearningModule\getAttemptsForUser(), ilObjSCORM2004LearningModule\getAttemptsForUser(), ilObjSurvey\getAuthor(), ilObjTest\getAuthor(), ilContainer\getBigIconPath(), ilObjUser\getClipboardObjects(), ilContainer\getContainerDirectory(), ilObjSCORM2004LearningModule\getCourseCompletionForUser(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjUser\getDesktopItems(), ilObjGlossary\getExportDirectory(), ilObjGlossary\getExportFiles(), ilObjExternalFeed\getFeedBlock(), ilContainer\getFirstColumn(), ilObjSystemFolder\getHeaderTitleTranslations(), ilObjTest\getImagePath(), ilObjTest\getImagePathWeb(), ilObjStyleSheet\getImagesDirectory(), ilObjMediaPool\getMediaObjects(), ilObjSCORMLearningModule\getModuleVersionForUser(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjUser\getPCClipboardContent(), ilObjUser\getPersonalPicturePath(), ilObjSAHSLearningModule\getPointsInPercent(), ilObjQuestionPool\getPrintviewQuestions(), ilObjQuestionPool\getQplQuestions(), ilObjQuestionPool\getQuestionBrowserData(), ilObjQuestionPool\getQuestionList(), ilObjSurveyQuestionPool\getQuestions(), ilObjSurveyQuestionPool\getQuestionsData(), ilObjSCORM2004LearningModule\getSequencingSettings(), ilContainer\getSmallIconPath(), ilContainer\getSubItems(), ilObjSurvey\getSurveyTimes(), ilContainer\getTinyIconPath(), ilObjAICCLearningModule\getTrackedItems(), ilObjSCORMLearningModule\getTrackedItems(), ilObjSCORM2004LearningModule\getTrackedItems(), ilObjSCORMLearningModule\getTrackedUsers(), ilObjSCORM2004LearningModule\getTrackedUsers(), ilObjAICCLearningModule\getTrackingData(), ilObjSCORMLearningModule\getTrackingDataAgg(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjSCORMLearningModule\getTrackingDataAggSco(), ilObjSCORMLearningModule\getTrackingDataPerUser(), ilObjSCORMLearningModule\getTrackingItems(), ilObjAICCLearningModule\getTrackingItems(), ilObjCategory\getTranslations(), ilObjRootFolder\getTranslations(), ilObjSCORM2004LearningModule\getTree(), ilObjFile\getUsages(), ilObjMediaPool\getUsedFormats(), ilObjStyleSheet\ilClone(), ilObjFile\ilObjFile(), ilObjStyleSheet\import(), ilObjContentObject\importFromDirectory(), ilObjSurvey\importObject(), ilObjSCORMLearningModule\importRaw(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilObjSession\initAppointments(), ilObjCourse\initCourseMemberObject(), ilObjContentObject\initDefaultRoles(), ilObjiLincCourse\initDefaultRoles(), ilObjCourse\initDefaultRoles(), ilObjGroup\initDefaultRoles(), ilObjFile\initFileStorage(), ilObjLinkResource\initLinkResourceItemsObject(), ilObjGroup\initParticipants(), ilObjCourse\initWaitingList(), ilObjSurvey\inviteGroup(), ilObjSurvey\inviteRole(), ilObjUser\isChild(), ilObjUser\isDesktopItem(), ilObjSurvey\isSurveyStarted(), ilObjSurveyQuestionPool\loadFromDb(), ilObjQuestionPool\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjTest\logAction(), ilObjLinkResource\MDUpdateListener(), ilObjFile\MDUpdateListener(), MDUpdateListener(), ilObjGlossary\modifyExportIdentifier(), ilObjSurveyQuestionPool\paste(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjQuestionPool\pasteFromClipboard(), ilObjExercise\processUploadedFile(), ilObjFolder\putInTree(), putInTree(), ilObjTest\randomSelectQuestions(), ilObjRoleFolder\read(), ilObjFileBasedLM\read(), ilObjGlossary\read(), ilObjBookingPool\read(), ilObjSAHSLearningModule\read(), ilObjMediaPool\read(), ilObjStyleSettings\read(), ilObjStyleSheetFolder\read(), ilObjContentObject\read(), ilContainerReference\read(), ilObjMediaCast\read(), ilObjFolder\read(), ilObjFile\read(), ilObjExercise\read(), ilObjRemoteCourse\read(), ilObjSession\read(), ilObjGroup\read(), ilContainer\read(), ilObjStyleSheet\read(), ilObjMediaCast\readItems(), ilObjAICCLearningModule\readObject(), ilObjSCORM2004LearningModule\readObject(), ilObjContentObject\readProperties(), ilObjRoleGUI\readRoleProperties(), ilObjUser\readUserDefinedFields(), ilObjCourse\register(), ilObjGroup\register(), ilContainer\removeBigIcon(), ilObjSystemFolder\removeHeaderTitleTranslations(), ilObjUser\removeObjectFromClipboard(), ilContainer\removeSmallIcon(), ilContainer\removeTinyIcon(), ilObjCategory\removeTranslations(), ilObjRootFolder\removeTranslations(), ilObjFile\replaceFile(), ilObjStyleSheet\replaceStylePar(), ilObjUser\resetLastPasswordChange(), ilObjUser\resetOwner(), ilObjiLincCourse\saveActivationStatus(), ilObjiLincCourse\saveAKClassValues(), ilObjSurvey\saveAuthorToMetadata(), ilObjTest\saveAuthorToMetadata(), ilObjExercise\saveData(), ilObjStyleSheet\saveHideStatus(), ilContainer\saveIcons(), ilObjSurveyQuestionPool\saveToDb(), ilObjQuestionPool\saveToDb(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjUser\setDesktopItemParameters(), ilObjTest\setEvaluationAdditionalFields(), ilObjSurvey\setInvitation(), ilObjLinkResource\toXML(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilObjFileBasedLM\update(), ilObjBookingPool\update(), ilObjStyleSheetFolder\update(), ilObjStyleSettings\update(), ilObjNull\update(), ilObjiLincCourse\update(), ilObjMediaCast\update(), ilContainerReference\update(), ilObjGlossary\update(), ilObjFile\update(), ilObjExercise\update(), ilObjSession\update(), ilObjSAHSLearningModule\update(), ilObjGroup\update(), update(), ilContainer\update(), ilObjCourse\update(), ilObjStyleSheet\update(), ilObjStyleSheet\updateColor(), ilObjRemoteCourse\updateFromECSContent(), ilObjUser\updateLogin(), ilObjQuestionPool\updateMetaData(), ilObjFile\updateMetaData(), updateMetaData(), ilObjRole\updateOperationStack(), updateOwner(), ilObjContentObject\updateProperties(), ilObjSCORM2004LearningModule\updateSequencingSettings(), ilObjCourse\updateSettings(), ilObjCategory\updateTranslation(), ilObjUser\updateUserDefinedFields(), ilObjExercise\updateUserStatus(), ilObjContentObject\validatePages(), ilObjUser\writeAccepted(), ilObjStyleSheet\writeCSSFile(), and ilObjContentObject\writeStyleSheetId().

{
return $this->id;
}

+ Here is the caller graph for this function:

ilObject::getImportId ( )

get import id

public

Returns
string import id

Reimplemented in ilObjMediaObject, ilObjContentObject, and ilObject2.

Definition at line 442 of file class.ilObject.php.

References $import_id.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilObject::getLastUpdateDate ( )

get last update date public

Returns
string date of last update

Reimplemented in ilObject2.

Definition at line 550 of file class.ilObject.php.

References $last_update.

{
}
ilObject::getLongDescription ( )

get object long description (stored in object_description)

public

Returns
string object description

Reimplemented in ilObjLanguageExt, and ilObject2.

Definition at line 431 of file class.ilObject.php.

References $desc.

Referenced by _writeDescription(), cloneObject(), create(), createMetaData(), ilObjCourse\prepareAppointments(), ilObjGroup\prepareAppointments(), ilObjSession\prepareCalendarAppointments(), update(), and updateMetaData().

{
return strlen($this->long_desc) ? $this->long_desc : $this->desc;
}

+ Here is the caller graph for this function:

ilObject::getOwner ( )

get object owner

public

Returns
integer owner id

Reimplemented in ilObject2.

Definition at line 479 of file class.ilObject.php.

References $owner.

Referenced by create(), getOwnerName(), ilObjTest\sendAdvancedNotification(), ilObjSurvey\sendCodes(), ilObjTest\sendSimpleNotification(), and updateOwner().

{
return $this->owner;
}

+ Here is the caller graph for this function:

ilObject::getOwnerName ( )

Reimplemented in ilObject2.

Definition at line 490 of file class.ilObject.php.

References _lookupOwnerName(), and getOwner().

Referenced by ilObjUserTracking\getAccessTotalPerObj().

{
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::getPresentationTitle ( )

get presentation title Normally same as title Overwritten for sessions

public

Parameters
@return

Reimplemented in ilObjSession, ilObjRole, and ilObject2.

Definition at line 357 of file class.ilObject.php.

References getTitle().

{
return $this->getTitle();
}

+ Here is the call graph for this function:

ilObject::getRefId ( )

get reference id public

Returns
integer reference id

Reimplemented in ilObjStyleSheet, ilCourseStart, ilObjMediaObject, and ilObject2.

Definition at line 323 of file class.ilObject.php.

References $ref_id.

Referenced by ilObjCourse\__getLocalRoles(), ilObjCourse\__setCourseStatus(), ilObjFolder\addAdditionalSubItemInformation(), ilObjGroup\addAdditionalSubItemInformation(), ilObjGroup\cloneAutoGeneratedRoles(), ilObjCourse\cloneAutoGeneratedRoles(), ilObjFolder\cloneDependencies(), ilObjGroup\cloneDependencies(), ilObjCourse\cloneDependencies(), cloneObject(), ilObjTest\cloneObject(), ilObjTest\createRandomSolutions(), ilObjRoleFolder\createRole(), createRoleFolder(), ilObjTest\createTestSession(), ilObjRoleFolder\delete(), delete(), ilObjSurvey\disinviteUser(), ilObjFolder\downloadFolder(), ilObjiLincCourse\getAdminIds(), ilObjGlossary\getAllGlossaryIds(), ilObjCourse\getDefaultCourseRoles(), ilObjGroup\getDefaultGroupRoles(), ilObjiLincCourse\getDefaultRoles(), ilObjGroup\getGroupAdminIds(), ilObjCourse\getLocalCourseRoles(), ilObjGroup\getLocalGroupRoles(), ilObjiLincCourse\getLocalRoles(), ilContainer\getSubItems(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilObjContentObject\importFromDirectory(), ilObjCourse\initCourseItemObject(), ilObjiLincCourse\initDefaultRoles(), ilObjCourse\initDefaultRoles(), ilObjGroup\initDefaultRoles(), ilObjGroup\initGroupStatus(), ilObjSurvey\inviteGroup(), ilObjSurvey\inviteRole(), ilObjSurvey\inviteUser(), ilObjRoleFolder\isDeleted(), ilObjGroup\leaveGroup(), ilObjTest\logAction(), MDUpdateListener(), ilObjRoleFolder\purge(), ilObjFolder\putInTree(), putInTree(), ilObjGroup\readGroupStatus(), ilObjCourse\register(), ilObjGroup\register(), ilObjSurvey\sendCodes(), ilObjSCORMLearningModule\sendExportFile(), ilObjExercise\sendFeedbackFileNotification(), setPermissions(), ilObjTest\setTestSession(), update(), and ilObjGroup\updateGroupType().

{
return $this->ref_id;
}

+ Here is the caller graph for this function:

ilObject::getType ( )

get object type public

Returns
string object type

Reimplemented in ilObject2.

Definition at line 333 of file class.ilObject.php.

References $type.

Referenced by ilObjExercise\__formatBody(), ilObjFile\addNewsNotification(), appendCopyInfo(), ilObjSurvey\cleanupMediaobjectUsage(), ilObjTest\cleanupMediaobjectUsage(), cloneMetaData(), ilObjSurveyQuestionPool\cloneObject(), ilContainer\cloneObject(), ilObjQuestionPool\cloneObject(), cloneObject(), ilObjGlossary\createExportDirectory(), ilObjFile\createMetaData(), ilObjMediaObject\createMetaData(), createMetaData(), ilObjExternalFeed\delete(), delete(), ilObjMediaObject\deleteMetaData(), deleteMetaData(), ilObjContentObject\executeDragDrop(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportSCORM(), ilObjContentObject\exportXML(), ilObjQuestionPool\exportXMLMetaData(), ilObjGlossary\exportXMLMetaData(), ilObjContentObject\exportXMLMetaData(), ilObjSCORM2004LearningModule\exportXMLMetaData(), ilObjTest\exportXMLMetaData(), ilObjContentObject\exportXMLPageObjects(), ilObjSurvey\getAuthor(), ilObjTest\getAuthor(), ilObjGlossary\getExportDirectory(), ilObjGlossary\getExportFiles(), ilObjSCORM2004LearningModule\getExportFiles(), ilObjExternalFeed\getFeedBlock(), ilContainer\getGroupedObjTypes(), ilObjMediaObject\getXML(), ilObjStyleSheet\ilClone(), ilObjContentObject\importFromDirectory(), ilObjLinkResource\MDUpdateListener(), ilObjFile\MDUpdateListener(), ilObjMediaObject\MDUpdateListener(), MDUpdateListener(), ilObj< module_name >\notify(), ilObjAccessibilitySettings\notify(), ilObjMediaObjectsSettings\notify(), ilObjExternalToolsSettings\notify(), ilObjRecoveryFolder\notify(), ilObjPDFGeneration\notify(), ilObjAdvancedEditing\notify(), ilObjAssessmentFolder\notify(), ilObjComponentSettings\notify(), ilObjNewsSettings\notify(), ilObjTaggingSettings\notify(), ilObjPersonalDesktopSettings\notify(), ilObjSurveyAdministration\notify(), ilObjMediaCastSettings\notify(), ilObjLearningResourcesSettings\notify(), ilObjStyleSheetFolder\notify(), ilObjAuthSettings\notify(), ilObjExternalFeed\notify(), ilObjQuestionPool\notify(), ilObjBookingPool\notify(), ilObjStyleSettings\notify(), ilObjFileBasedLM\notify(), ilObjMediaPool\notify(), ilObjSurveyQuestionPool\notify(), ilObjMediaCast\notify(), ilObjSurvey\notify(), ilObjTest\notify(), ilObjSAHSLearningModule\notify(), ilObjGlossary\notify(), ilObjContentObject\notify(), putInTree(), ilObjMediaCast\readItems(), ilObjSurvey\saveAuthorToMetadata(), ilObjTest\saveAuthorToMetadata(), setPermissions(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilObjNull\update(), update(), ilObjQuestionPool\updateMetaData(), ilObjMediaObject\updateMetaData(), ilObjFile\updateMetaData(), updateMetaData(), and ilObjContentObject\validatePages().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilObject::getUntranslatedTitle ( )

get untranslated object title public

Returns
string object title

Reimplemented in ilObject2.

Definition at line 378 of file class.ilObject.php.

References $untranslatedTitle.

ilObject::getXMLZip ( )

Reimplemented in ilObjTest, ilObjContentObject, ilObjGlossary, ilObjFile, ilObjDlBook, and ilObject2.

Definition at line 1585 of file class.ilObject.php.

{
return false;
}
ilObject::ilObject (   $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 98 of file class.ilObject.php.

References $ilBench, $ilias, $lng, and read().

Referenced by ilObject2\__construct(), ilObjBookingPool\__construct(), ilObjPrivacySecurity\__construct(), ilObjCalendarSettings\__construct(), ilObjRemoteCourse\__construct(), ilObjGroup\__construct(), ilObj< module_name >\ilObj< module_name >(), ilObjAccessibilitySettings\ilObjAccessibilitySettings(), ilObjAdvancedEditing\ilObjAdvancedEditing(), ilObjAICCLearningModule\ilObjAICCLearningModule(), ilObjAssessmentFolder\ilObjAssessmentFolder(), ilObjAuthSettings\ilObjAuthSettings(), ilObjCertificateSettings\ilObjCertificateSettings(), ilObjComponentSettings\ilObjComponentSettings(), ilObjContentObject\ilObjContentObject(), ilObjDiskQuotaSettings\ilObjDiskQuotaSettings(), ilObjExercise\ilObjExercise(), ilObjExternalFeed\ilObjExternalFeed(), ilObjExternalToolsSettings\ilObjExternalToolsSettings(), ilObjFile\ilObjFile(), ilObjFileAccessSettings\ilObjFileAccessSettings(), ilObjFileBasedLM\ilObjFileBasedLM(), ilObjGlossary\ilObjGlossary(), ilObjHACPLearningModule\ilObjHACPLearningModule(), ilObjiLincCourse\ilObjiLincCourse(), ilObjLanguage\ilObjLanguage(), ilObjLanguageFolder\ilObjLanguageFolder(), ilObjLearningResourcesSettings\ilObjLearningResourcesSettings(), ilObjMail\ilObjMail(), ilObjMDSettings\ilObjMDSettings(), ilObjMediaCast\ilObjMediaCast(), ilObjMediaCastSettings\ilObjMediaCastSettings(), ilObjMediaObject\ilObjMediaObject(), ilObjMediaObjectsSettings\ilObjMediaObjectsSettings(), ilObjMediaPool\ilObjMediaPool(), ilObjNewsSettings\ilObjNewsSettings(), ilObjNull\ilObjNull(), ilObjObjectFolder\ilObjObjectFolder(), ilObjPaymentSettings\ilObjPaymentSettings(), ilObjPDFGeneration\ilObjPDFGeneration(), ilObjPersonalDesktopSettings\ilObjPersonalDesktopSettings(), ilObjQuestionPool\ilObjQuestionPool(), ilObjRecoveryFolder\ilObjRecoveryFolder(), ilObjRole\ilObjRole(), ilObjRoleFolder\ilObjRoleFolder(), ilObjRoleTemplate\ilObjRoleTemplate(), ilObjRootFolder\ilObjRootFolder(), ilObjSAHSLearningModule\ilObjSAHSLearningModule(), ilObjSCORM2004LearningModule\ilObjSCORM2004LearningModule(), ilObjSCORMLearningModule\ilObjSCORMLearningModule(), ilObjSearchSettings\ilObjSearchSettings(), ilObjStyleSettings\ilObjStyleSettings(), ilObjStyleSheet\ilObjStyleSheet(), ilObjStyleSheetFolder\ilObjStyleSheetFolder(), ilObjSurvey\ilObjSurvey(), ilObjSurveyAdministration\ilObjSurveyAdministration(), ilObjSurveyQuestionPool\ilObjSurveyQuestionPool(), ilObjSystemFolder\ilObjSystemFolder(), ilObjTaggingSettings\ilObjTaggingSettings(), ilObjTest\ilObjTest(), ilObjTypeDefinition\ilObjTypeDefinition(), ilObjUser\ilObjUser(), ilObjUserFolder\ilObjUserFolder(), and ilObjUserTracking\ilObjUserTracking().

{
global $ilias, $lng, $ilBench;
$ilBench->start("Core", "ilObject_Constructor");
if (DEBUG)
{
echo "<br/><font color=\"red\">type(".$this->type.") id(".$a_id.") referenced(".$a_reference.")</font>";
}
$this->ilias =& $ilias;
$this->lng =& $lng;
$this->max_title = MAXLENGTH_OBJ_TITLE;
$this->max_desc = MAXLENGTH_OBJ_DESC;
$this->add_dots = true;
$this->referenced = $a_reference;
$this->call_by_reference = $a_reference;
if ($a_id == 0)
{
$this->referenced = false; // newly created objects are never referenced
} // they will get referenced if createReference() is called
if ($this->referenced)
{
$this->ref_id = $a_id;
}
else
{
$this->id = $a_id;
}
// read object data
if ($a_id != 0)
{
$this->read();
}
$ilBench->stop("Core", "ilObject_Constructor");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::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 in ilObjGroup, ilObjCourse, ilObjTest, ilObjMediaCast, ilObjiLincCourse, ilObjMediaPool, ilObjFileBasedLM, ilObjStyleSettings, ilObjQuestionPool, ilObjBookingPool, ilObjAuthSettings, ilObject2, ilObjExternalFeed, ilObjStyleSheetFolder, ilObjLearningResourcesSettings, ilObjMediaCastSettings, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjTaggingSettings, ilObjComponentSettings, ilObjSurveyAdministration, ilObjAssessmentFolder, ilObjAdvancedEditing, ilObjPDFGeneration, ilObjRecoveryFolder, ilObjExternalToolsSettings, ilObjAccessibilitySettings, ilObjMediaObjectsSettings, ilObjContentObject, and ilObj< module_name >.

Definition at line 1471 of file class.ilObject.php.

Referenced by setPermissions().

{
return array();
}

+ Here is the caller graph for this function:

ilObject::isUserRegistered (   $a_user_id = 0)

Reimplemented in ilObject2.

Definition at line 1574 of file class.ilObject.php.

{
return false;
}
ilObject::MDUpdateListener (   $a_element)

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 in ilObjCourse, ilObjMediaObject, ilObjFile, ilObject2, and ilObjLinkResource.

Definition at line 746 of file class.ilObject.php.

References $GLOBALS, $id, getId(), getRefId(), getType(), setDescription(), setTitle(), and update().

Referenced by ilObjContentObject\importFromDirectory().

{
include_once 'Services/MetaData/classes/class.ilMD.php';
$GLOBALS['ilAppEventHandler']->raise(
'Services/Object',
'update',
array('obj_id' => $this->getId(),
'obj_type' => $this->getType(),
'ref_id' => $this->getRefId()));
switch($a_element)
{
case 'General':
// Update Title and description
$md = new ilMD($this->getId(),0, $this->getType());
if(!is_object($md_gen = $md->getGeneral()))
{
return false;
}
$this->setTitle($md_gen->getTitle());
foreach($md_gen->getDescriptionIds() as $id)
{
$md_des = $md_gen->getDescription($id);
$this->setDescription($md_des->getDescription());
break;
}
$this->update();
break;
default:
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::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 in ilObjGroup, ilObjContentObject, ilObjGlossary, ilObjSAHSLearningModule, ilObjTest, ilObjSurvey, ilObjiLincCourse, ilObjMediaCast, ilObjSurveyQuestionPool, ilObjMediaPool, ilObjFileBasedLM, ilObjStyleSettings, ilObjBookingPool, ilObjQuestionPool, ilObjExternalFeed, ilObjAuthSettings, ilObjStyleSheetFolder, ilObject2, ilObjLearningResourcesSettings, ilObjMediaCastSettings, ilObjSurveyAdministration, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjTaggingSettings, ilObjComponentSettings, ilObjAssessmentFolder, ilObjAdvancedEditing, ilObjPDFGeneration, ilObjRecoveryFolder, ilObjExternalToolsSettings, ilObjAccessibilitySettings, ilObjMediaObjectsSettings, ilObj< module_name >, and ilObjRootFolder.

Definition at line 1551 of file class.ilObject.php.

{
global $tree;
$parent_id = (int) $tree->getParentId($a_node_id);
if ($parent_id != 0)
{
$obj_data =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
$obj_data->notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$parent_id,$a_params);
}
return true;
}
ilObject::putInTree (   $a_parent_ref)

maybe this method should be in tree object!?

Todo:
role/rbac stuff

Reimplemented in ilObjContentObject, ilObject2, and ilObjFolder.

Definition at line 1266 of file class.ilObject.php.

References $log, getId(), getRefId(), getTitle(), and getType().

{
global $tree, $log;
$tree->insertNode($this->getRefId(), $a_parent_ref);
// write log entry
$log->write("ilObject::putInTree(), parent_ref: $a_parent_ref, ref_id: ".
$this->getRefId().", obj_id: ".$this->getId().", type: ".
$this->getType().", title: ".$this->getTitle());
}

+ Here is the call graph for this function:

ilObject::read (   $a_force_db = false)

read object data from db into object

Parameters
booleanpublic

Reimplemented in ilObjCourse, ilObjTest, ilObjRemoteCourse, ilObjFileAccessSettings, ilObjSurvey, ilObjDiskQuotaSettings, ilObjQuestionPool, ilObjSurveyQuestionPool, ilObjRoleFolder, and ilObject2.

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

References $ilBench, $ilDB, $log, $obj_data_record, $query, $res, $row, DB_FETCHMODE_OBJECT, and setDescription().

Referenced by ilObject().

{
global $objDefinition, $ilBench, $ilDB, $log;
$ilBench->start("Core", "ilObject_read");
if (isset($this->obj_data_record) && !$a_force_db)
{
}
else if ($this->referenced)
{
// check reference id
if (!isset($this->ref_id))
{
$message = "ilObject::read(): No ref_id given! (".$this->type.")";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
// read object data
$ilBench->start("Core", "ilObject_read_readData");
$q = "SELECT * FROM object_data, object_reference WHERE object_data.obj_id=object_reference.obj_id ".
"AND object_reference.ref_id= ".$ilDB->quote($this->ref_id, "integer");
$object_set = $ilDB->query($q);
$ilBench->stop("Core", "ilObject_read_readData");
// check number of records
if ($ilDB->numRows($object_set) == 0)
{
$message = "ilObject::read(): Object with ref_id ".$this->ref_id." not found! (".$this->type.")";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
$obj = $ilDB->fetchAssoc($object_set);
}
else
{
// check object id
if (!isset($this->id))
{
$message = "ilObject::read(): No obj_id given! (".$this->type.")";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
// read object data
$q = "SELECT * FROM object_data ".
"WHERE obj_id = ".$ilDB->quote($this->id, "integer");
$object_set = $ilDB->query($q);
// check number of records
if ($ilDB->numRows($object_set) == 0)
{
$message = "ilObject::read(): Object with obj_id: ".$this->id." (".$this->type.") not found!";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
$obj = $ilDB->fetchAssoc($object_set);
}
$this->id = $obj["obj_id"];
// check type match (the "xxx" type is used for the unit test)
if ($this->type != $obj["type"] && $obj["type"] != "xxx")
{
$message = "ilObject::read(): Type mismatch. Object with obj_id: ".$this->id." ".
"was instantiated by type '".$this->type."'. DB type is: ".$obj["type"];
// write log entry
$log->write($message);
// raise error
$this->ilias->raiseError("ilObject::read(): Type mismatch. (".$this->type."/".$this->id.")",$this->ilias->error_obj->WARNING);
}
$this->type = $obj["type"];
$this->title = $obj["title"];
// BEGIN WebDAV: WebDAV needs to access the untranslated title of an object
$this->untranslatedTitle = $obj["title"];
// END WebDAV: WebDAV needs to access the untranslated title of an object
$this->desc = $obj["description"];
$this->owner = $obj["owner"];
$this->create_date = $obj["create_date"];
$this->last_update = $obj["last_update"];
$this->import_id = $obj["import_id"];
if($objDefinition->isRBACObject($this->getType()))
{
// Read long description
$query = "SELECT * FROM object_description WHERE obj_id = ".$ilDB->quote($this->id,'integer');
$res = $this->ilias->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
if(strlen($row->description))
{
$this->setDescription($row->description);
}
}
}
// multilingual support systemobjects (sys) & categories (db)
$ilBench->start("Core", "ilObject_Constructor_getTranslation");
$translation_type = $objDefinition->getTranslationType($this->type);
if ($translation_type == "sys")
{
$this->title = $this->lng->txt("obj_".$this->type);
$this->desc = $this->lng->txt("obj_".$this->type."_desc");
}
elseif ($translation_type == "db")
{
$q = "SELECT title,description FROM object_translation ".
"WHERE obj_id = ".$ilDB->quote($this->id,'integer')." ".
"AND lang_code = ".$ilDB->quote($this->ilias->account->getCurrentLanguage(),'text')." ".
"AND NOT lang_default = 1";
$r = $this->ilias->db->query($q);
$row = $r->fetchRow(DB_FETCHMODE_OBJECT);
if ($row)
{
$this->title = $row->title;
$this->setDescription($row->description);
#$this->desc = $row->description;
}
}
$ilBench->stop("Core", "ilObject_Constructor_getTranslation");
$ilBench->stop("Core", "ilObject_read");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::requireRegistration ( )

Reimplemented in ilObject2.

Definition at line 1579 of file class.ilObject.php.

References $register.

{
}
ilObject::setDescription (   $a_desc)

set object description

public

Parameters
string$a_descobject description

Reimplemented in ilObjQuestionPool, ilObjContentObject, ilObjMediaObject, ilObjGlossary, and ilObject2.

Definition at line 415 of file class.ilObject.php.

References ilUtil\shortenText().

Referenced by ilObjRole\assignData(), ilObjTest\fromXML(), ilObjLanguage\install(), ilObjRoleGUI\loadRoleProperties(), MDUpdateListener(), ilObjRoleFolder\read(), ilObjiLincClassroom\read(), read(), ilObjLanguageExt\setLocal(), and ilObjLanguage\uninstall().

{
// Shortened form is storted in object_data. Long form is stored in object_description
$this->desc = ilUtil::shortenText($a_desc, $this->max_desc, $this->add_dots);
$this->long_desc = $a_desc;
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::setId (   $a_id)

set object id public

Parameters
integer$a_idobject id

Reimplemented in ilObjMediaObject, ilCourseStart, and ilObject2.

Definition at line 302 of file class.ilObject.php.

Referenced by ilObjUser\ilObjUser().

{
$this->id = $a_id;
}

+ Here is the caller graph for this function:

ilObject::setImportId (   $a_import_id)

set import id

public

Parameters
string$a_import_idimport id

Reimplemented in ilObjMediaObject, ilObjContentObject, and ilObject2.

Definition at line 453 of file class.ilObject.php.

Referenced by ilCategoryImportParser\handlerBeginTag().

{
$this->import_id = $a_import_id;
}

+ Here is the caller graph for this function:

ilObject::setObjDataRecord (   $a_record)

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 in ilObject2.

Definition at line 580 of file class.ilObject.php.

{
$this->obj_data_record = $a_record;
}
ilObject::setOwner (   $a_owner)

set object owner

public

Parameters
integer$a_ownerowner id

Reimplemented in ilObject2.

Definition at line 528 of file class.ilObject.php.

Referenced by create(), and ilObjUser\setActive().

{
$this->owner = $a_owner;
}

+ Here is the caller graph for this function:

ilObject::setPermissions (   $a_parent_ref)

set permissions of object

Parameters
integerreference_id of parent object public

Reimplemented in ilObject2.

Definition at line 1285 of file class.ilObject.php.

References getRefId(), getType(), and initDefaultRoles().

{
global $rbacadmin, $rbacreview;
$parentRoles = $rbacreview->getParentRoleIds($a_parent_ref);
foreach ($parentRoles as $parRol)
{
$ops = $rbacreview->getOperationsOfRole($parRol["obj_id"], $this->getType(), $parRol["parent"]);
$rbacadmin->grantPermission($parRol["obj_id"], $ops, $this->getRefId());
}
$this->initDefaultRoles();
}

+ Here is the call graph for this function:

ilObject::setRefId (   $a_id)

set reference id public

Parameters
integer$a_idreference id

Reimplemented in ilCourseStart, and ilObject2.

Definition at line 312 of file class.ilObject.php.

{
$this->ref_id = $a_id;
$this->referenced = true;
}
ilObject::setRegisterMode (   $a_bool)

Reimplemented in ilObject2.

Definition at line 1567 of file class.ilObject.php.

Referenced by ilObjGroup\__construct(), and ilObjiLincCourse\ilObjiLincCourse().

{
$this->register = (bool) $a_bool;
}

+ Here is the caller graph for this function:

ilObject::setTitle (   $a_title)

set object title

public

Parameters
string$a_titleobject title

Reimplemented in ilObjQuestionPool, ilObjSurveyQuestionPool, ilObjGlossary, ilObjContentObject, ilObjMediaObject, and ilObject2.

Definition at line 390 of file class.ilObject.php.

References $title, and ilUtil\shortenText().

Referenced by ilObjRole\assignData(), ilObjTest\fromXML(), ilObjRoleGUI\loadRoleProperties(), MDUpdateListener(), ilObjRoleFolder\read(), ilObjiLincClassroom\read(), ilObjLanguage\uninstall(), and ilObjRemoteCourse\updateFromECSContent().

{
$this->title = ilUtil::shortenText($a_title, $this->max_title, $this->add_dots);
// BEGIN WebDAV: WebDAV needs to access the untranslated title of an object
$this->untranslatedTitle = $this->title;
// END WebDAV: WebDAV needs to access the untranslated title of an object
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::setType (   $a_type)

set object type public

Parameters
integer$a_typeobject type

Reimplemented in ilObject2.

Definition at line 343 of file class.ilObject.php.

{
$this->type = $a_type;
}
ilObject::update ( )

update object in db

public

Returns
boolean true on success

Reimplemented in ilObjStyleSheet, ilObjCourse, ilContainer, ilObjGroup, ilObjTest, ilObjSAHSLearningModule, ilObjUser, ilObjSession, ilObjRemoteCourse, ilObjExercise, ilObjFile, ilObjGlossary, ilObjSurvey, ilObjFileAccessSettings, ilContainerReference, ilObjContentObject, ilObjMediaCast, ilObjMediaPool, ilObjRole, ilObjiLincCourse, ilObjDiskQuotaSettings, ilObjNull, ilObjAuthSettings, ilObject2, ilObjSurveyQuestionPool, ilObjQuestionPool, ilObjLinkResource, ilObjStyleSettings, ilObjStyleSheetFolder, ilObjSurveyAdministration, ilObjAssessmentFolder, ilObjAdvancedEditing, ilObjPDFGeneration, ilObjLearningResourcesSettings, ilObjMediaCastSettings, ilObjRecoveryFolder, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjTaggingSettings, ilObjExternalToolsSettings, ilObjComponentSettings, ilObjBookingPool, ilObjSearchSettings, ilObjFileBasedLM, ilObjPaymentSettings, ilObj< module_name >, ilObjAccessibilitySettings, ilObjMediaObjectsSettings, and ilObjExternalFeed.

Definition at line 683 of file class.ilObject.php.

References $GLOBALS, $ilDB, $res, getDescription(), getId(), getImportId(), getLongDescription(), getRefId(), getTitle(), and getType().

Referenced by ilObjLanguage\install(), MDUpdateListener(), ilObjLanguageExt\setLocal(), ilObjLanguage\uninstall(), and ilObjMediaObject\update().

{
global $objDefinition, $ilDB;
$q = "UPDATE object_data ".
"SET ".
"title = ".$ilDB->quote($this->getTitle(), "text").",".
"description = ".$ilDB->quote($this->getDescription(), "text").", ".
"import_id = ".$ilDB->quote($this->getImportId(), "text").",".
"last_update = ".$ilDB->now()." ".
"WHERE obj_id = ".$ilDB->quote($this->getId(), "integer");
$ilDB->manipulate($q);
// the line ($this->read();) messes up meta data handling: meta data,
// that is not saved at this time, gets lost, so we query for the dates alone
//$this->read();
$q = "SELECT last_update FROM object_data".
" WHERE obj_id = ".$ilDB->quote($this->getId(), "integer");
$obj_set = $ilDB->query($q);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->last_update = $obj_rec["last_update"];
if($objDefinition->isRBACObject($this->getType()))
{
// Update long description
$res = $this->ilias->db->query("SELECT * FROM object_description WHERE obj_id = ".
$ilDB->quote($this->getId(),'integer'));
if($res->numRows())
{
$values = array(
'description' => array('clob',$this->getLongDescription())
);
$ilDB->update('object_description',$values,array('obj_id' => array('integer',$this->getId())));
}
else
{
$values = array(
'description' => array('clob',$this->getLongDescription()),
'obj_id' => array('integer',$this->getId()));
$ilDB->insert('object_description',$values);
}
}
$GLOBALS['ilAppEventHandler']->raise(
'Services/Object',
'update',
array('obj_id' => $this->getId(),
'obj_type' => $this->getType(),
'ref_id' => $this->getRefId()));
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::updateMetaData ( )

update meta data entry

Reimplemented in ilObjFile, ilObjMediaObject, ilObject2, and ilObjQuestionPool.

Definition at line 808 of file class.ilObject.php.

References createMetaData(), getId(), getLongDescription(), getTitle(), and getType().

Referenced by ilObjFileBasedLM\update(), ilObjLinkResource\update(), ilObjSurveyQuestionPool\update(), ilObjContentObject\update(), ilObjSurvey\update(), ilObjGlossary\update(), ilObjSAHSLearningModule\update(), and ilObjCourse\update().

{
include_once("Services/MetaData/classes/class.ilMD.php");
include_once("Services/MetaData/classes/class.ilMDGeneral.php");
include_once("Services/MetaData/classes/class.ilMDDescription.php");
$md =& new ilMD($this->getId(), 0, $this->getType());
$md_gen =& $md->getGeneral();
// BEGIN WebDAV: meta data can be missing sometimes.
if ($md_gen == null)
{
$this->createMetaData();
$md =& new ilMD($this->getId(), 0, $this->getType());
$md_gen =& $md->getGeneral();
}
// END WebDAV: meta data can be missing sometimes.
$md_gen->setTitle($this->getTitle());
// sets first description (maybe not appropriate)
$md_des_ids =& $md_gen->getDescriptionIds();
if (count($md_des_ids) > 0)
{
$md_des =& $md_gen->getDescription($md_des_ids[0]);
$md_des->setDescription($this->getLongDescription());
$md_des->update();
}
$md_gen->update();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::updateOwner ( )

update owner of object in db

public

Returns
boolean true on success

Reimplemented in ilObject2.

Definition at line 855 of file class.ilObject.php.

References $ilDB, getId(), and getOwner().

Referenced by ilObjUser\update().

{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"owner = ".$ilDB->quote($this->getOwner(), "integer").", ".
"last_update = ".$ilDB->now()." ".
"WHERE obj_id = ".$ilDB->quote($this->getId(), "integer");
$ilDB->manipulate($q);
$q = "SELECT last_update FROM object_data".
" WHERE obj_id = ".$ilDB->quote($this->getId(), "integer");
$obj_set = $ilDB->query($q);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->last_update = $obj_rec["last_update"];
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObject::withReferences ( )

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

Reimplemented in ilObject2.

Definition at line 144 of file class.ilObject.php.

References $referenced.

Referenced by ilObjFolder\putInTree().

{
// both vars could differ. this method should always return true if one of them is true without changing their status
return ($this->call_by_reference) ? true : $this->referenced;
}

+ Here is the caller graph for this function:

Field Documentation

ilObject::$add_dots

Definition at line 85 of file class.ilObject.php.

ilObject::$create_date

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

Referenced by getCreateDate().

ilObject::$import_id
ilObject::$last_update

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

Referenced by ilObjUser\getLastUpdate(), and getLastUpdateDate().

ilObject::$lng

Definition at line 33 of file class.ilObject.php.

Referenced by ilObjExercise\__formatBody(), ilObjRole\__getPermissionDefinitions(), ilObjTest\_buildName(), ilObjLanguageExt\_deleteValues(), ilObjMediaObject\_determineWidthHeight(), ilObjiLincClassroom\_getDocent(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjQuestionPool\_getQuestionTypes(), ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), ilObjLanguageExt\_getRemarks(), ilObjSCORMLearningModule\_getStatusForUser(), ilObjRole\_getTranslation(), ilObjLanguageExt\_getValues(), ilObjGroup\_importFromFile(), _lookupOwnerName(), ilObjExercise\_lookupStatusTime(), _prepareCloneSelection(), ilObjLanguageExt\_saveValues(), ilObjAdvancedEditing\_setUsedHTMLTags(), ilObjExercise\addUploadedFile(), ilObjUser\assignData(), ilObjUserFolder\buildExportFile(), ilObjTest\buildName(), ilObjLanguageFolder\checkAllLanguages(), ilObjLanguageFolderGUI\confirmRefreshObject(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilObjLanguage\countUsers(), ilObjFolder\downloadFolder(), ilObjTest\getAllTestResults(), ilObjGlossary\getDeletionDependencies(), ilObjTest\getDetailedTestResults(), ilObjLanguageFolder\getLanguages(), ilObjUser\getProfileAsString(), ilObjQuestionPool\getQuestionTypeTranslations(), ilObjTest\getQuestionTypeTranslations(), ilObjMediaPool\getUsedFormats(), ilObjTest\getUserData(), ilObjStyleSheet\ilClone(), ilObject(), ilObjiLincClassroom\ilObjiLincClassroom(), ilObjLanguage\ilObjLanguage(), ilObjLanguageFolder\ilObjLanguageFolder(), ilObjTest\ilObjTest(), ilObjContentObject\importFromDirectory(), ilObjContentObject\importFromZipFile(), ilObjExercise\processUploadedFile(), ilObjSCORM2004LearningModule\readObject(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjTest\saveManualFeedback(), ilObjTest\userLookupFullName(), and ilObjLanguageFolderGUI\viewObject().

ilObject::$long_desc

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

ilObject::$max_desc

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

ilObject::$max_title

Definition at line 73 of file class.ilObject.php.

ilObject::$obj_data_record

object_data record

Definition at line 90 of file class.ilObject.php.

Referenced by read().

ilObject::$objectList

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

ilObject::$owner
ilObject::$referenced

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

Referenced by withReferences().

ilObject::$register = false

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

Referenced by requireRegistration().

ilObject::$untranslatedTitle

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

Referenced by getUntranslatedTitle().


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