Class ilObject Basic functions for all objects. More...
Inheritance 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 | |
| getTitle () | |
| get object title public | |
| setTitle ($a_title) | |
| set object title | |
| getDescription () | |
| get object description | |
| setDescription ($a_desc) | |
| set object description | |
| getLongDescription () | |
| get object long description (stored in object_description) | |
| getImportId () | |
| get import id | |
| setImportId ($a_import_id) | |
| set import id | |
| _lookupObjIdByImportId ($a_import_id) | |
| getOwner () | |
| get object owner | |
| getOwnerName () | |
| _lookupOwnerName ($a_owner_id) | |
| lookup owner name for owner id | |
| setOwner ($a_owner) | |
| set object owner | |
| getCreateDate () | |
| get create date public | |
| getLastUpdateDate () | |
| get last update date public | |
| setObjDataRecord ($a_record) | |
| set object_data record (note: this method should only be called from the ilObjectFactory class) | |
| create () | |
| create | |
| 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) | |
| _getAllReferences ($a_id) | |
| get all reference ids of object | |
| _lookupTitle ($a_id) | |
| lookup object title | |
| _lookupDescription ($a_id) | |
| lookup object description | |
| _lookupLastUpdate ($a_id, $a_as_string=false) | |
| lookup last update | |
| _lookupObjId ($a_id) | |
| _setDeletedDate ($a_ref_id) | |
| only called in ilTree::saveSubTree | |
| _resetDeletedDate ($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) | |
| _lookupType ($a_id, $a_reference=false) | |
| lookup object type | |
| _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 ... | |
| prependCopyInfo ($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. | |
| _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) | |
Static Public Member Functions | |
| _exists ($a_id, $a_reference=false) | |
| checks if an object exists in object_data | |
| static | _getObjectsByType ($a_obj_type="") |
| Get objects by type. | |
| static | _prepareCloneSelection ($a_ref_ids, $new_type) |
| Prepare copy wizard object selection. | |
Data Fields | |
| $ilias | |
| $lng | |
| $id | |
| $ref_id | |
| $type | |
| $title | |
| $desc | |
| $long_desc | |
| $owner | |
| $create_date | |
| $last_update | |
| $import_id | |
| $register = false | |
| $referenced | |
| $objectList | |
| $max_title | |
| $max_desc | |
| $add_dots | |
| $obj_data_record | |
| object_data record | |
Class ilObject Basic functions for all objects.
Definition at line 33 of file class.ilObject.php.
| ilObject::_exists | ( | $ | a_id, | |
| $ | a_reference = false | |||
| ) | [static] |
checks if an object exists in object_data
public
| integer | object id or reference id | |
| boolean | ture if id is a reference, else false (default) |
Definition at line 1368 of file class.ilObject.php.
References $ilias.
Referenced by _lookupOwnerName(), ilNavigationHistory::addItem(), ilPageObject::collectMediaObjects(), ilObjRoleFolderGUI::confirmedDeleteObject(), ilNewsItem::delete(), ilPageObject::delete(), ilObjRole::delete(), ilObjExerciseGUI::downloadAllObject(), ilObjContentObject::exportHTML(), ilForum::fetchPostNodeData(), ilPDNewsTableGUI::fillRow(), ilMediaCastTableGUI::fillRow(), ilPageObject::getContentObject(), ilObjStyleSheet::getContentStylePath(), ilGoogleMapGUI::getHtml(), ilObjMediaObject::getLinkedMediaObjects(), ilObjExercise::getMemberListData(), ilObjGroup::getNewRegistrations(), ilObjForumListGUI::getProperties(), ilForumPost::getUserData(), ilForum::getUserData(), ilGoogleMapGUI::getUserListHtml(), ilObjectFeedWriter::ilObjectFeedWriter(), ilNewsForContextBlockGUI::showNews(), ilPageObjectGUI::showPage(), ilObjSCORMLearningModuleGUI::showTrackingItem(), ilObjSCORM2004LearningModuleGUI::showTrackingItem(), ilPageObject::update(), and ilObjForumGUI::viewThreadObject().
{
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);
}
else
{
$q = "SELECT * FROM object_data WHERE obj_id=".$ilDB->quote($a_id);
}
$r = $ilDB->query($q);
return $r->numRows() ? true : false;
}
Here is the caller graph for this function:| ilObject::_getAllReferences | ( | $ | a_id | ) |
get all reference ids of object
| int | $a_id object id |
Definition at line 843 of file class.ilObject.php.
Referenced by ilObjectXMLWriter::__appendObject(), ilCourseParticipants::__construct(), ilRepositorySearchGUI::__fillGroupTable(), ilAdminUserSearchGUI::__fillGroupTable(), ilLPListOfProgressGUI::__initDetails(), ilLPCollections::__read(), ilCourseObjectiveQuestion::__read(), ilCourseObjectiveMaterials::__read(), ilUsersOnlineBlockGUI::__showActiveChatsOfUser(), ilObjContentObjectAccess::_checkGoto(), ilObjGlossaryAccess::_checkGoto(), ilObjStyleSheet::_getClonableContentStyles(), ilInternalLink::_getIdForImportId(), ilLPCollections::_getItems(), ilObjGroup::_getMembers(), ilStructureObjectGUI::_goto(), ilLMPageObjectGUI::_goto(), ilGlossaryTermGUI::_goto(), ilObjForumGUI::_goto(), _hasUntrashedReference(), ilSoapCourseAdministration::assignCourseMember(), ilSoapGroupAdministration::assignGroupMember(), ilUserImportParser::assignToRole(), ilWebAccessChecker::checkAccess(), ilSoapCourseAdministration::deleteCourse(), ilSoapCourseAdministration::excludeCourseMember(), ilSoapGroupAdministration::excludeGroupMember(), ilSearchResult::filter(), ilSoapCourseAdministration::getCourseXML(), ilMail::getEmailsOfRecipients(), ilSoapExerciseAdministration::getExerciseXML(), ilSoapFileAdministration::getFileXML(), ilInfoScreenGUI::getHTML(), ilSoapSCORMAdministration::getIMSManifestXML(), ilSoapObjectAdministration::getRefIdsByImportId(), ilSoapObjectAdministration::getRefIdsByObjId(), ilMail::getUserIds(), ilSoapCourseAdministration::isAssignedToCourse(), ilSoapGroupAdministration::isAssignedToGroup(), ilGlossaryPresentationGUI::listDefinitions(), ilMailSearchCoursesGUI::mailCourses(), ilMailSearchGroupsGUI::mailGroups(), ilSoapObjectAdministration::removeFromSystemByImportId(), ilCronForumNotification::sendMails(), ilMailSearchGroupsGUI::showMembers(), ilNoteGUI::showTargets(), ilSoapCourseAdministration::updateCourse(), ilSoapExerciseAdministration::updateExercise(), ilSoapFileAdministration::updateFile(), and ilSoapObjectAdministration::updateObjects().
{
global $ilDB;
$q = "SELECT * FROM object_reference WHERE obj_id = ".
$ilDB->quote($a_id);
$obj_set = $ilDB->query($q);
$ref = array();
while ($obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC))
{
$ref[$obj_rec["ref_id"]] = $obj_rec["ref_id"];
}
return $ref;
}
Here is the caller graph for this function:| ilObject::_getIcon | ( | $ | a_obj_id = "", |
|
| $ | a_size = "big", |
|||
| $ | a_type = "", |
|||
| $ | a_offline = false | |||
| ) |
Definition at line 1638 of file class.ilObject.php.
References $file_name, $ilSetting, ilContainer::_getContainerDirectory(), ilContainer::_lookupContainerSetting(), _lookupType(), and ilUtil::getImagePath().
Referenced by ilForumLocatorGUI::display(), ilNewsForContextBlockGUI::fillRow(), ilRepositoryExplorer::formatHeader(), ilNavigationHistoryGUI::getHTML(), ilLocatorGUI::getHTML(), ilRepositoryExplorer::getImage(), and ilNewsForContextBlockGUI::showNews().
{
global $ilSetting;
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("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)
{
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)
| int | $a_import_id import id |
Definition at line 820 of file class.ilObject.php.
{
global $ilDB;
$q = "SELECT * FROM object_data WHERE import_id = ".$ilDB->quote($a_import_id).
" ORDER BY create_date DESC LIMIT 1";
$obj_set = $ilDB->query($q);
if ($obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC))
{
return $obj_rec["obj_id"];
}
else
{
return 0;
}
}
| static ilObject::_getObjectsByType | ( | $ | a_obj_type = "" |
) | [static] |
Get objects by type.
Definition at line 1446 of file class.ilObject.php.
Referenced by ilLanguage::getInstalledLanguages(), ilObjLanguageFolder::getLanguages(), and ilObjLanguageFolderGUI::refreshObject().
{
global $ilDB;
$order = " ORDER BY title";
// where clause
if ($a_obj_type)
{
$where_clause = "WHERE type = ".
$ilDB->quote($a_obj_type);
}
$q = "SELECT * FROM object_data ".$where_clause.$order;
$r = $ilDB->query($q);
$arr = array();
if ($r->numRows() > 0)
{
while ($row = $r->fetchRow(DB_FETCHMODE_ASSOC))
{
$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
| string | $a_type desired object type | |
| boolean | $a_omit_trash omit objects, that are in trash only (default: false) |
Definition at line 1107 of file class.ilObject.php.
References _hasUntrashedReference().
{
global $ilDB;
$q = "SELECT * FROM object_data WHERE type = ".$ilDB->quote($a_type);
$obj_set = $ilDB->query($q);
$objects = array();
while ($obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC))
{
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:| ilObject::_hasUntrashedReference | ( | $ | a_obj_id | ) |
checks wether an object has at least one reference that is not in trash
Definition at line 1071 of file class.ilObject.php.
References $ref_id, _getAllReferences(), and _isInTrash().
Referenced by ilLMObject::_getAllObjectsForImportId(), ilLMObject::_getIdForImportId(), ilGlossaryTerm::_getIdForImportId(), _getObjectsDataForType(), ilObjQuestionPool::_isWriteable(), ilObjSurveyQuestionPool::_isWriteable(), and ilSoapObjectAdministration::getObjIdsByRefIds().
{
$ref_ids = ilObject::_getAllReferences($a_obj_id);
foreach($ref_ids as $ref_id)
{
if(!ilObject::_isInTrash($ref_id))
{
return true;
}
}
return false;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObject::_isInTrash | ( | $ | a_ref_id | ) |
checks wether object is in trash
Definition at line 1061 of file class.ilObject.php.
Referenced by _hasUntrashedReference(), ilSoapCourseAdministration::addCourse(), ilSoapExerciseAdministration::addExercise(), ilSoapFileAdministration::addFile(), ilSoapGroupAdministration::addGroup(), ilSoapObjectAdministration::addObject(), ilSoapRBACAdministration::addRole(), ilSoapRBACAdministration::addRoleFromTemplate(), ilSoapCourseAdministration::getCourseXML(), ilSoapExerciseAdministration::getExerciseXML(), ilSoapFileAdministration::getFileXML(), ilSoapGroupAdministration::getGroup(), ilSoapSCORMAdministration::getIMSManifestXML(), ilSoapObjectAdministration::getObjectByReference(), ilSoapRBACAdministration::getObjectTreeOperations(), ilSoapCourseAdministration::updateCourse(), ilSoapExerciseAdministration::updateExercise(), ilSoapFileAdministration::updateFile(), ilSoapGroupAdministration::updateGroup(), and ilSoapObjectAdministration::updateObjects().
{
global $tree;
return $tree->isSaved($a_ref_id);
}
Here is the caller graph for this function:| ilObject::_lookupDescription | ( | $ | a_id | ) |
lookup object description
| int | $a_id object id |
Definition at line 879 of file class.ilObject.php.
Referenced by ilObjUser::_lookupDesktopItems(), ilObjStyleSettingsGUI::editContentStylesObject(), ilSearchResult::getResultsForPresentation(), ilSearchresultGUI::showResults(), and ilObjStyleSheetFolderGUI::viewObject().
{
global $ilObjDataCache;
return $ilObjDataCache->lookupDescription($a_id);
}
Here is the caller graph for this function:| ilObject::_lookupLastUpdate | ( | $ | a_id, | |
| $ | a_as_string = false | |||
| ) |
lookup last update
| int | $a_id object id |
Definition at line 891 of file class.ilObject.php.
References formatDate().
Referenced by ilObjFileListGUI::getProperties().
{
global $ilObjDataCache;
if ($a_as_string)
{
include_once("classes/class.ilFormat.php");
return ilFormat::formatDate($ilObjDataCache->lookupLastUpdate($a_id), "datetime", true);
}
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
| int | $a_id object id |
Definition at line 1090 of file class.ilObject.php.
Referenced by ilSCORM13Player::__construct(), ilObjForumGUI::_goto(), ilObjSurveyGUI::addHeadingObject(), ilObjContentObjectGUI::addMenuEntry(), ilObjiLincClassroomGUI::create(), ilObjiLincClassroomGUI::displayEditForm(), ilContainerGUI::editPageContentObject(), ilSAHSPresentationGUI::executeCommand(), ilSAHSEditGUI::executeCommand(), ilSoapExerciseAdministration::getExerciseXML(), ilSoapFileAdministration::getFileXML(), ilSoapSCORMAdministration::getIMSManifestXML(), ilSoapObjectAdministration::getObjIdsByRefIds(), ilRepositoryExplorer::isClickable(), ilTestScoringGUI::manscoring(), ilForum::moveThreads(), ilObjTestGUI::propertiesObject(), ilObjSurveyGUI::propertiesObject(), ilObjiLincClassroomGUI::save(), ilSoapExerciseAdministration::updateExercise(), ilSoapFileAdministration::updateFile(), and ilSoapObjectAdministration::updateObjects().
{
global $ilObjDataCache;
return (int) $ilObjDataCache->lookupObjId($a_ref_id);
}
Here is the caller graph for this function:| ilObject::_lookupObjId | ( | $ | a_id | ) |
Definition at line 906 of file class.ilObject.php.
Referenced by ilObjCategoryGUI::__buildFilterSelect(), ilCourseContentGUI::__forwardToColumnGUI(), ilObjContentObjectAccess::_getLastAccessedPage(), ilNewsItem::_getNewsItemsOfUser(), ilObjLinkResourceGUI::_goto(), ilObjQuestionPoolGUI::_goto(), ilObjTestGUI::_goto(), ilObjSurveyQuestionPoolGUI::_goto(), ilObjSurveyGUI::_goto(), ilObjSAHSLearningModuleGUI::_goto(), ilObjMediaCastGUI::_goto(), ilObjContentObjectGUI::_goto(), ilObjFileBasedLMGUI::_goto(), ilObjGlossaryGUI::_goto(), ilObjForumGUI::_goto(), ilObjFileGUI::_goto(), ilObjExerciseGUI::_goto(), ilObjCourseGUI::_goto(), ilObjChatGUI::_goto(), ilObjCategoryGUI::_goto(), ilObjGroupGUI::_goto(), ilObjUserGUI::addAdminLocatorItems(), ilObjStyleSheetGUI::addAdminLocatorItems(), ilObjRoleTemplateGUI::addAdminLocatorItems(), ilObjRoleGUI::addAdminLocatorItems(), ilNavigationHistory::addItem(), ilObjContentObjectGUI::addLocations(), ilPDSelectedItemsBlockGUI::addParentRow(), ilPaymentStatisticGUI::addStatisticWorksheet(), ilObjPaymentSettingsGUI::addStatisticWorksheet(), ilSoapCourseAdministration::assignCourseMember(), ilSoapGroupAdministration::assignGroupMember(), ilTableOfContentsExplorer::buildTitle(), ilAccessHandler::checkAccessOfUser(), ilObjAdvancedEditingGUI::clearCategoryPageObject(), ilUserResult::createLink(), ilSoapCourseAdministration::deleteCourse(), ilLMEditorGUI::displayLocator(), ilObjStyleSettingsGUI::editContentStylesObject(), ilPaymentStatisticGUI::editStatistic(), ilObjPaymentSettingsGUI::editStatisticObject(), ilSoapCourseAdministration::excludeCourseMember(), ilSoapGroupAdministration::excludeGroupMember(), ilPDNewsTableGUI::fillRow(), ilNewsForContextBlockGUI::fillRow(), ilObjectGUI::getCenterColumnHTML(), ilSoapCourseAdministration::getCourseXML(), ilNavigationHistoryGUI::getHTML(), ilLocatorGUI::getHTML(), ilLMPresentationGUI::getLinkXML(), ilLMPageObjectGUI::getLinkXML(), ilGlossaryPresentationGUI::getLinkXML(), ilObjMediaObjectGUI::getMapAreaLinkString(), ilNewsItem::getNewsForRefId(), ilCourseContentGUI::getRightColumnHTML(), ilObjectGUI::getRightColumnHTML(), ilLMPresentationGUI::ilLocator(), ilObjectFeedWriter::ilObjectFeedWriter(), ilUserFeedWriter::ilUserFeedWriter(), ilConditionHandlerInterface::initFormCondition(), ilPageObject::insertInstIntoIDs(), ilObjectListGUI::insertPath(), ilSoapCourseAdministration::isAssignedToCourse(), ilSoapGroupAdministration::isAssignedToGroup(), ilSCORMPresentationGUI::launchSahs(), ilHACPPresentationGUI::launchSahs(), ilSAHSPresentationGUI::launchSahs(), ilAICCPresentationGUI::launchSahs(), ilObjCategoryGUI::listUsersObject(), ilObjExerciseGUI::membersObject(), ilObjRoleGUI::permObject(), ilStartUpGUI::processStartingPage(), ilObjHACPTracking::putparam(), ilUtil::replaceLinkProperties(), ilAccountMail::replacePlaceholders(), ilSearchGUI::saveResult(), ilAdvancedSearchGUI::saveResult(), ilHACPResponse::sendParam(), ilMainMenuGUI::setTemplateVars(), ilInternalLinkGUI::showLinkHelp(), ilNewsForContextBlockGUI::showNews(), ilSearchresultGUI::showResults(), ilSearchGUI::showSearch(), ilPaymentStatisticGUI::showStatistics(), ilNoteGUI::showTargets(), ilObjPaymentSettingsGUI::statisticObject(), ilObjSCORMTracking::store(), ilObjAdvancedEditingGUI::undoLastCategoryChangeObject(), ilSoapCourseAdministration::updateCourse(), and ilPDNewsGUI::view().
{
global $ilObjDataCache;
return (int) $ilObjDataCache->lookupObjId($a_id);
}
Here is the caller graph for this function:| ilObject::_lookupObjIdByImportId | ( | $ | a_import_id | ) |
Definition at line 442 of file class.ilObject.php.
References $res.
Referenced by ilSoapObjectAdministration::addObject(), ilSoapObjectAdministration::getObjIdByImportId(), ilSoapObjectAdministration::getRefIdsByImportId(), and ilSoapObjectAdministration::removeFromSystemByImportId().
{
global $ilDB;
$query = "SELECT * FROM object_data ".
"WHERE import_id = ".$ilDB->quote($a_import_id)." ".
"ORDER BY create_date DESC";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
return $row->obj_id;
}
return 0;
}
Here is the caller graph for this function:| ilObject::_lookupOwnerName | ( | $ | a_owner_id | ) |
lookup owner name for owner id
Definition at line 482 of file class.ilObject.php.
References $lng, $owner, and _exists().
Referenced by getOwnerName().
{
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:| ilObject::_lookupTitle | ( | $ | a_id | ) |
lookup object title
| int | $a_id object id |
Definition at line 865 of file class.ilObject.php.
Referenced by ilObjCategoryGUI::__buildFilterSelect(), ilRegistrationSettingsGUI::__buildRoleSelection(), ilRegistrationSettingsGUI::__prepareAutomaticRoleList(), ilUsersOnlineBlockGUI::__showActiveChatsOfUser(), ilObjCourseGUI::__showWaitingList(), ilRegistrationGUI::__validateRole(), ilForum::_getModerators(), ilObjStyleSheet::_getStandardStyles(), ilObjLinkResourceGUI::_goto(), ilObjQuestionPoolGUI::_goto(), ilObjTestGUI::_goto(), ilObjSurveyQuestionPoolGUI::_goto(), ilObjSurveyGUI::_goto(), ilObjSAHSLearningModuleGUI::_goto(), ilObjMediaCastGUI::_goto(), ilStructureObjectGUI::_goto(), ilObjContentObjectGUI::_goto(), ilLMPageObjectGUI::_goto(), ilObjFileBasedLMGUI::_goto(), ilObjGlossaryGUI::_goto(), ilGlossaryTermGUI::_goto(), ilObjForumGUI::_goto(), ilObjFileGUI::_goto(), ilObjExerciseGUI::_goto(), ilObjCourseGUI::_goto(), ilObjChatGUI::_goto(), ilObjCategoryGUI::_goto(), ilObjGroupGUI::_goto(), ilObjUser::_lookupDesktopItems(), ilObjStyleSheetGUI::addAdminLocatorItems(), ilObjRoleTemplateGUI::addAdminLocatorItems(), ilNavigationHistory::addItem(), ilObjContentObjectGUI::addLocations(), ilObjContentObjectGUI::addMenuEntry(), ilPDSelectedItemsBlockGUI::addParentRow(), ilPaymentStatisticGUI::addStatisticWorksheet(), ilObjPaymentSettingsGUI::addStatisticWorksheet(), ilObjStyleSheetFolder::addStyle(), ilObjStyleSettings::addStyle(), ilLDAPRoleAssignments::assignedRoles(), ilObjStyleSettingsGUI::confirmDeleteIndividualStyles(), ilObjMediaPoolGUI::confirmRemove(), ilPageEditorGUI::copyLinkedMediaToClipboard(), ilObjMediaPool::deleteChild(), ilObjStyleSheetGUI::deleteObject(), ilObjStyleSheetFolderGUI::deleteStyleObject(), ilObjStyleSettingsGUI::deleteStyleObject(), ilAccessHandler::doConditionCheck(), ilObjStyleSettingsGUI::editContentStylesObject(), ilRegistrationSettingsGUI::editRoles(), ilPaymentStatisticGUI::editStatistic(), ilObjPaymentSettingsGUI::editStatisticObject(), ilPageEditorGUI::executeCommand(), ilPDNewsTableGUI::fillRow(), ilNewsForContextBlockGUI::fillRow(), ilObjUserTracking::getAccessPerUserDetail(), ilObjSysUserTracking::getAccessPerUserDetail(), ilObjUserTracking::getAccessTotalPerObj(), ilObjSysUserTracking::getAccessTotalPerObj(), ilObjUser::getClipboardObjects(), ilHistoryGUI::getHistoryTable(), ilObjMediaObjectGUI::getMapAreaLinkString(), ilObjUser::getProfileAsString(), ilSearchResult::getResultsForPresentation(), ilLMPresentationGUI::ilLocator(), ilObjectFeedWriter::ilObjectFeedWriter(), ilUserFeedWriter::ilUserFeedWriter(), ilSoapUserAdministration::importUsers(), ilConditionHandlerInterface::initFormCondition(), ilObjMediaPoolGUI::insertFromClipboard(), ilObjectListGUI::insertPath(), ilObjectListGUI::insertPreconditions(), ilGlossaryPresentationGUI::listDefinitions(), ilGlossaryPresentationGUI::listTermByGiven(), ilObjCategoryGUI::listUsersObject(), ilLDAPRoleAssignmentTableGUI::parse(), ilObjRoleGUI::permObject(), ilLDAPSettingsGUI::prepareRoleSelect(), ilRadiusSettingsGUI::prepareRoleSelection(), ilStartUpGUI::processStartingPage(), ilObjContentObjectGUI::properties(), ilUtil::replaceLinkProperties(), ilAccountMail::replacePlaceholders(), ilSearchGUI::saveResult(), ilAdvancedSearchGUI::saveResult(), ilFeedbackGUI::showBarometerById(), ilNewsForContextBlockGUI::showFeedUrl(), ilPageObjectGUI::showMediaFullscreen(), ilNewsForContextBlockGUI::showNews(), ilPageObjectGUI::showPage(), ilLMPresentationGUI::showPreconditionsOfPage(), ilSearchresultGUI::showResults(), ilSearchGUI::showSearch(), ilPaymentStatisticGUI::showStatistics(), ilNoteGUI::showTargets(), ilObjMediaObjectGUI::showUsagesObject(), ilObjPaymentSettingsGUI::statisticObject(), ilPDNewsGUI::view(), and ilPDNotesGUI::view().
{
global $ilObjDataCache;
$tit = $ilObjDataCache->lookupTitle($a_id);
//echo "<br>LOOKING-$a_id-:$tit";
return $tit;
}
Here is the caller graph for this function:| ilObject::_lookupType | ( | $ | a_id, | |
| $ | a_reference = false | |||
| ) |
lookup object type
| int | $a_id object id |
Definition at line 1025 of file class.ilObject.php.
Referenced by ilCourseContentGUI::__forwardToColumnGUI(), ilSoapUserAdministration::__validateUserData(), ilAdvancedMDValues::_appendXMLByObjId(), ilAdvancedMDValues::_cloneValues(), ilHistory::_createEntry(), ilConditionHandler::_getConditionsOfTarget(), ilHistory::_getEntriesForObject(), _getIcon(), ilNewsItem::_getNewsItemsOfUser(), ilObjSurveyGUI::addHeadingObject(), ilObjContentObjectGUI::addMenuEntry(), ilPDSelectedItemsBlockGUI::addParentRow(), ilSoapRBACAdministration::addRoleFromTemplate(), ilContainerGUI::addToDeskObject(), ilSoapCourseAdministration::assignCourseMember(), ilObjRoleGUI::assignDesktopItemObject(), ilSoapGroupAdministration::assignGroupMember(), ilUserImportParser::assignToRole(), ilTestCertificateGUI::certificateEditor(), ilWebAccessChecker::checkAccess(), ilAccessHandler::checkAccessOfUser(), ilObjRoleFolderGUI::confirmedDeleteObject(), ilObjMediaPoolGUI::confirmRemove(), ilObjMediaPoolGUI::copyToClipboard(), delete(), ilObjMediaPool::deleteChild(), ilSoapCourseAdministration::deleteCourse(), ilObjSystemFolderGUI::displayList(), ilObjectGUI::displayList(), ilLMEditorGUI::displayLocator(), ilContainerGUI::editPageContentObject(), assTextSubsetGUI::editQuestion(), assTextQuestionGUI::editQuestion(), assSingleChoiceGUI::editQuestion(), assOrderingQuestionGUI::editQuestion(), assNumericGUI::editQuestion(), assMultipleChoiceGUI::editQuestion(), assMatchingQuestionGUI::editQuestion(), assJavaAppletGUI::editQuestion(), assImagemapQuestionGUI::editQuestion(), assFlashAppGUI::editQuestion(), assClozeTestGUI::editQuestion(), SurveyTextQuestionGUI::editQuestion(), SurveyOrdinalQuestionGUI::editQuestion(), SurveyNominalQuestionGUI::editQuestion(), SurveyMetricQuestionGUI::editQuestion(), SurveyMatrixQuestionGUI::editQuestion(), ilSoapCourseAdministration::excludeCourseMember(), ilSoapGroupAdministration::excludeGroupMember(), ilRepositoryGUI::executeCommand(), ilAdministrationGUI::executeCommand(), assTextSubsetGUI::feedback(), assTextQuestionGUI::feedback(), assSingleChoiceGUI::feedback(), assQuestionTypeTemplateGUI::feedback(), assOrderingQuestionGUI::feedback(), assNumericGUI::feedback(), assMultipleChoiceGUI::feedback(), assMatchingQuestionGUI::feedback(), assJavaAppletGUI::feedback(), assImagemapQuestionGUI::feedback(), assFlashAppGUI::feedback(), assClozeTestGUI::feedback(), ilPDNewsTableGUI::fillRow(), ilNewsForContextBlockGUI::fillRow(), ilSearchResult::filter(), ilObjectGUI::getCenterColumnHTML(), ilSoapCourseAdministration::getCourseXML(), ilLocatorGUI::getHTML(), ilLMPresentationGUI::getLinkXML(), ilLMPageObjectGUI::getLinkXML(), ilGlossaryPresentationGUI::getLinkXML(), ilObjectListGUI::getListItemHTML(), ilObjExercise::getMemberListData(), ilObjGroup::getNewRegistrations(), ilNewsItem::getNewsForRefId(), ilCourseContentGUI::getRightColumnHTML(), ilObjectGUI::getRightColumnHTML(), ilHistoryGUI::ilHistoryGUI(), ilInternalLinkGUI::ilInternalLinkGUI(), ilObjectFeedWriter::ilObjectFeedWriter(), ilRepositoryGUI::ilRepositoryGUI(), ilUserFeedWriter::ilUserFeedWriter(), ilConditionHandlerInterface::initFormCondition(), ilPageObject::insertInstIntoIDs(), ilSoapCourseAdministration::isAssignedToCourse(), ilSoapGroupAdministration::isAssignedToGroup(), ilTestScoringGUI::manscoring(), ilObjExerciseGUI::membersObject(), ilObjectGUI::prepareOutput(), ilObjTestGUI::propertiesObject(), ilObjSurveyGUI::propertiesObject(), ilObjectGUI::redirectToRefId(), ilContainerGUI::removeFromDeskObject(), ilAccountMail::replacePlaceholders(), ilSearchGUI::saveResult(), ilAdvancedSearchGUI::saveResult(), ilObjFileGUI::saveUnzipObject(), ilMainMenuGUI::setTemplateVars(), ilInternalLinkGUI::showLinkHelp(), ilNewsForContextBlockGUI::showNews(), ilNoteGUI::showTargets(), ilObjectGUI::showUpperIcon(), ilSoapCourseAdministration::updateCourse(), ilLMObject::updateInternalLinks(), ilPDNewsGUI::view(), ilPDNotesGUI::view(), 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 as obr, object_data as obd ".
"WHERE obr.ref_id = ".$ilDB->quote($a_id)." ".
"AND obr.obj_id = obd.obj_id ";
#$q = "SELECT type FROM object_data as obj ".
# "LEFT JOIN object_reference as ref ON ref.obj_id=obj.obj_id ".
# "WHERE ref.ref_id = '".$a_id."'";
}
else
{
$q = "SELECT type FROM object_data WHERE obj_id = ".$ilDB->quote($a_id);
}
$obj_set = $ilDB->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
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
| array | int array of ref ids |
Definition at line 1483 of file class.ilObject.php.
References $lng, $res, $title, and ilUtil::quoteArray().
Referenced by ilObjQuestionPool::_getAvailableQuestionpools(), ilObjSurveyQuestionPool::_getAvailableQuestionpools(), ilObjSurvey::_getAvailableSurveys(), ilObjTest::_getAvailableTests(), ilObjectGUI::buildCloneSelect(), and ilObjUserFolderGUI::viewObject().
{
global $ilDB,$lng;
$query = "SELECT obj_data.title as obj_title,path_data.title as path_title,child FROM tree ".
"JOIN object_reference as obj_ref ON child = obj_ref.ref_id ".
"JOIN object_data as obj_data ON obj_ref.obj_id = obj_data.obj_id ".
"JOIN object_reference as path_ref ON parent = path_ref.ref_id ".
"JOIN object_data as path_data ON path_ref.obj_id = path_data.obj_id ".
"WHERE child IN (".implode(',',ilUtil::quoteArray($a_ref_ids)).") ".
"ORDER BY obj_data.title ";
$res = $ilDB->query($query);
$options[0] = $lng->txt('obj_'.$new_type.'_select');
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
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
Definition at line 928 of file class.ilObject.php.
Referenced by ilTree::insertNode().
{
global $ilDB;
$q = "UPDATE object_reference SET deleted= ".$ilDB->quote("0000-00-00 00:00:00").
" WHERE ref_id = ".$ilDB->quote($a_ref_id);
$ilDB->query($q);
}
Here is the caller graph for this function:| ilObject::_setDeletedDate | ( | $ | a_ref_id | ) |
only called in ilTree::saveSubTree
Definition at line 916 of file class.ilObject.php.
Referenced by ilTree::saveSubTree().
{
global $ilDB;
$q = "UPDATE object_reference SET deleted=now() ".
"WHERE ref_id = ".$ilDB->quote($a_ref_id);
$ilDB->query($q);
}
Here is the caller graph for this function:| ilObject::_writeDescription | ( | $ | a_obj_id, | |
| $ | a_desc | |||
| ) |
write description to db (static)
| int | $a_obj_id object id | |
| string | $a_desc description public |
Definition at line 964 of file class.ilObject.php.
References $desc, $res, getId(), and ilUtil::shortenText().
Referenced by ilObjMediaObject::MDUpdateListener(), and MDUpdateListener().
{
global $ilDB,$objDefinition;
$desc = ilUtil::shortenText($a_desc,MAXLENGTH_OBJ_DESC,true);
$q = "UPDATE object_data ".
"SET ".
"description = ".$ilDB->quote($desc).",".
"last_update = now() ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id);
$ilDB->query($q);
if($objDefinition->isRBACObject($this->getType()))
{
// Update long description
$res = $ilDB->query("SELECT * FROM object_description WHERE obj_id = ".
$ilDB->quote($a_obj_id));
if($res->numRows())
{
$query = "UPDATE object_description SET description = ".
$ilDB->quote($a_desc)." ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
}
else
{
$query = "INSERT INTO object_description SET obj_id = ".
$ilDB->quote($this->getId()).", ".
"description = ".$ilDB->quote($a_desc);
}
$ilDB->query($query);
}
}
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)
| int | $a_obj_id object id | |
| string | $a_import_id import id public |
Definition at line 1007 of file class.ilObject.php.
Referenced by ilCourseXMLParser::handlerBeginTag(), ilObjContentObjectGUI::importFileObject(), and ilObjGlossaryGUI::importFileObject().
{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"import_id = ".$ilDB->quote($a_import_id).",".
"last_update = now() ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id);
$ilDB->query($q);
}
Here is the caller graph for this function:| ilObject::_writeTitle | ( | $ | a_obj_id, | |
| $ | a_title | |||
| ) |
write title to db (static)
| int | $a_obj_id object id | |
| string | $a_title title public |
Definition at line 944 of file class.ilObject.php.
Referenced by ilObjMediaObject::MDUpdateListener(), MDUpdateListener(), and ilObjSAHSLearningModuleGUI::uploadObject().
{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"title = ".$ilDB->quote($a_title).",".
"last_update = now() ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id);
$ilDB->query($q);
}
Here is the caller graph for this function:| ilObject::cloneDependencies | ( | $ | a_target_id, | |
| $ | a_copy_id | |||
| ) |
Clone object dependencies.
public
| int | ref_id of target object | |
| int | copy_id |
Reimplemented in ilObjFolder, ilObjGroup, ilCourseStart, and ilObjCourse.
Definition at line 1618 of file class.ilObject.php.
{
return true;
}
| ilObject::cloneMetaData | ( | $ | target_obj | ) |
Copy meta data.
public
| object | target object |
Definition at line 1630 of file class.ilObject.php.
References getId(), and getType().
Referenced by ilObjLinkResource::cloneObject(), ilObjTest::cloneObject(), ilObjSurvey::cloneObject(), ilObjFile::cloneObject(), and ilObjCourse::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
| int | target id | |
| int | copy id for class.ilCopyWizardOptions() |
Reimplemented in ilObjFolder, ilObjGroup, ilObjChat, ilObjCourse, ilObjExercise, ilObjExternalFeed, ilObjFile, ilObjForum, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, ilObjQuestionPool, and ilObjLinkResource.
Definition at line 1523 of file class.ilObject.php.
References $title, ilAdvancedMDValues::_cloneValues(), getDescription(), getId(), getRefId(), getType(), and prependCopyInfo().
{
global $objDefinition,$ilUser,$rbacadmin;
$module = $objDefinition->getModule($this->getType());
$module_dir = ($module == "")
? ""
: $module."/";
$class_name = ('ilObj'.$objDefinition->getClassName($this->getType()));
$title = $this->prependCopyInfo($a_copy_id);
// create instance
include_once($module_dir."classes/class.".$class_name.".php");
$new_obj = new $class_name(0, false);
$new_obj->setOwner($ilUser->getId());
$new_obj->setTitle($title);
$new_obj->setDescription($this->getDescription());
$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);
$new_obj->initDefaultRoles();
// 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());
return $new_obj;
}
Here is the call graph for this function:| ilObject::countReferences | ( | ) |
count references of object
public
Definition at line 1198 of file class.ilObject.php.
Referenced by delete().
{
if (!isset($this->id))
{
$message = "ilObject::countReferences(): No obj_id given!";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
$q = "SELECT COUNT(ref_id) AS num FROM object_reference ".
"WHERE obj_id = '".$this->id."'";
$row = $this->ilias->db->getRow($q);
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
Reimplemented in ilObjGroup, ilObjRole, ilObjFileBasedLM, ilObjMediaCast, ilObjMediaPool, and ilObjSAHSLearningModule.
Definition at line 560 of file class.ilObject.php.
References $log, $owner, getDescription(), getImportId(), getLongDescription(), getOwner(), getTitle(), setOwner(), and ilUtil::shortenText().
Referenced by ilObjMediaObject::create(), ilObjLinkResource::create(), ilObjQuestionPool::create(), ilObjTest::create(), ilObjSurveyQuestionPool::create(), ilObjSurvey::create(), ilObjContentObject::create(), ilObjGlossary::create(), ilObjFile::create(), ilObjCourse::create(), ilObjStyleSheet::create(), and ilObjStyleSheet::createFromXMLFile().
{
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;
}
$q = "INSERT INTO object_data ".
"(type,title,description,owner,create_date,last_update,import_id) ".
"VALUES ".
"(".
$ilDB->quote($this->type).",".
$ilDB->quote($this->getTitle()).",".
$ilDB->quote($this->getDescription()).",".
$ilDB->quote($owner).",now(),now(),".
$ilDB->quote($this->getImportId()).")";
$ilDB->query($q);
$this->id = $ilDB->getLastInsertId();
// Save long form of description if is rbac object
if($objDefinition->isRBACObject($this->getType()))
{
$query = "INSERT INTO object_description SET ".
"obj_id = ".$ilDB->quote($this->id).",".
"description = ".$ilDB->quote($this->getLongDescription());
$ilDB->query($query);
}
// 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);
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$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());
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 ilObjFile, ilObjSurvey, ilObjTest, and ilObjMediaObject.
Definition at line 733 of file class.ilObject.php.
References getId(), getLongDescription(), getTitle(), and getType().
Referenced by ilObjLinkResource::create(), ilObjQuestionPool::create(), ilObjSurveyQuestionPool::create(), ilObjSAHSLearningModule::create(), ilObjContentObject::create(), ilObjFileBasedLM::create(), ilObjGlossary::create(), and ilObjCourse::create().
{
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
Reimplemented in ilObjStyleSheet, ilObjSurvey, ilObjTest, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 1171 of file class.ilObject.php.
{
global $ilDB;
if (!isset($this->id))
{
$message = "ilObject::createNewReference(): No obj_id given!";
$this->raiseError($message,$this->ilias->error_obj->WARNING);
}
$q = "INSERT INTO object_reference ".
"(obj_id) VALUES (".$ilDB->quote($this->id).")";
$this->ilias->db->query($q);
$this->ref_id = $ilDB->getLastInsertId();
$this->referenced = true;
return $this->ref_id;
}
| ilObject::createRoleFolder | ( | ) |
creates a local role folder
public
| string | rolefolder title | |
| string | rolefolder description | |
| object | parent object where the rolefolder is attached to |
Definition at line 1334 of file class.ilObject.php.
References getId(), and getRefId().
Referenced by ilObjContentObject::initDefaultRoles(), ilObjForum::initDefaultRoles(), ilObjCourse::initDefaultRoles(), ilObjChat::initDefaultRoles(), ilObjiLincCourse::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 ("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
Reimplemented in ilObjAdvancedEditing, ilObjAssessmentFolder, ilObjExternalToolsSettings, ilObjGroup, ilObjObjectFolder, ilObjRecoveryFolder, ilObjRole, ilObjRoleFolder, ilObjRoleTemplate, ilObjRootFolder, ilObjStyleSettings, ilObjStyleSheet, ilObjStyleSheetFolder, ilObjSystemFolder, ilObjSysUserTracking, ilObj< module_name >, ilObjiLincClassroom, ilObjiLincCourse, ilObjCategory, ilObjChat, ilObjCourse, ilObjExercise, ilObjExternalFeed, ilObjFile, ilObjForum, ilObjGlossary, ilObjFileBasedLM, ilObjContentObject, ilObjMediaCast, ilObjMediaPool, ilObjRemoteCourse, ilObjAICCLearningModule, ilObjSAHSLearningModule, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, ilObjQuestionPool, ilObjLinkResource, ilObjAuthSettings, ilObjMediaObject, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjUser, and ilObjUserFolder.
Definition at line 1225 of file class.ilObject.php.
References $log, 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());
$this->ilias->db->query($q);
// delete long description
$query = "DELETE FROM object_description WHERE obj_id = ".
$ilDB->quote($this->getId());
$this->ilias->db->query($query);
// write log entry
$log->write("ilObject::delete(), deleted object, obj_id: ".$this->getId().", type: ".
$this->getType().", title: ".$this->getTitle());
$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
$q = "DELETE FROM object_reference ".
"WHERE ref_id = ".$ilDB->quote($this->getRefId());
$this->ilias->db->query($q);
// 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);
// Remove desktop items
ilUtil::removeItemFromDesktops($this->getRefId());
}
// remove conditions
if ($this->referenced)
{
$ch =& new ilConditionHandler();
$ch->delete($this->getRefId());
unset($ch);
}
// 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");
ilBlockSetting::_deleteSettingsOfBlock($this->getId(), "news");
return $remove;
}
Here is the call graph for this function:| ilObject::deleteMetaData | ( | ) |
delete meta data entry
Reimplemented in ilObjMediaObject.
Definition at line 779 of file class.ilObject.php.
References getId(), and getType().
Referenced by ilObjLinkResource::delete(), ilObjQuestionPool::delete(), ilObjTest::delete(), ilObjSurveyQuestionPool::delete(), ilObjSurvey::delete(), ilObjSAHSLearningModule::delete(), ilObjAICCLearningModule::delete(), ilObjContentObject::delete(), ilObjFileBasedLM::delete(), ilObjGlossary::delete(), ilObjFile::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
Definition at line 524 of file class.ilObject.php.
Referenced by ilObjUser::getProfileAsString().
{
return $this->create_date;
}
Here is the caller graph for this function:| ilObject::getDescription | ( | ) |
get object description
public
Reimplemented in ilObjGlossary, ilObjContentObject, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 388 of file class.ilObject.php.
Referenced by ilObjExercise::__formatSubject(), ilObjFile::addNewsNotification(), cloneObject(), create(), ilObjStyleSheet::ilClone(), ilObjTest::toXML(), ilObjSurvey::toXML(), ilObjForum::update(), ilObjiLincClassroom::update(), and update().
{
return $this->desc;
}
Here is the caller graph for this function:| ilObject::getHTMLDirectory | ( | ) |
| ilObject::getId | ( | ) |
get object id public
Reimplemented in ilCourseStart, and ilObjMediaObject.
Definition at line 300 of file class.ilObject.php.
Referenced by ilMailingList::__construct(), ilObjCourse::__createDefaultSettings(), ilObjCourse::__deleteSettings(), ilObjChat::__initChatRecording(), ilObjCourse::__readSettings(), ilObjContentObject::_deleteStyleAssignments(), _writeDescription(), ilObjUser::addDesktopItem(), ilObjSystemFolder::addHeaderTitleTranslation(), ilObjSurvey::addMaterialTag(), ilObjFile::addNewsNotification(), ilObjUser::addObjectToClipboard(), ilObjStyleSheet::addParameter(), ilObjTest::addQTIMaterial(), ilObjCategory::addTranslation(), ilObjRootFolder::addTranslation(), ilObjUser::addUserDefinedFieldEntry(), ilObjContentObject::checkTree(), ilObjTest::cleanupMediaobjectUsage(), ilObjSurvey::cleanupMediaobjectUsage(), ilObjCourse::cloneDependencies(), ilObjGroup::cloneDependencies(), ilObjFolder::cloneDependencies(), cloneMetaData(), ilObjLinkResource::cloneObject(), ilObjQuestionPool::cloneObject(), ilObjSurveyQuestionPool::cloneObject(), ilObjForum::cloneObject(), ilObjFile::cloneObject(), ilObjExercise::cloneObject(), ilObjCourse::cloneObject(), ilObjGroup::cloneObject(), ilObjFolder::cloneObject(), cloneObject(), ilObjQuestionPool::copyQuestion(), ilObjSurveyQuestionPool::copyQuestion(), ilObjMediaPool::create(), ilObjMediaCast::create(), ilObjGlossary::create(), ilObjFile::create(), ilObjStyleSheet::create(), ilObjGroup::create(), ilContainer::createContainerDirectory(), ilObjQuestionPool::createExportDirectory(), ilObjTest::createExportDirectory(), ilObjSurveyQuestionPool::createExportDirectory(), ilObjSurvey::createExportDirectory(), ilObjContentObject::createExportDirectory(), ilObjGlossary::createExportDirectory(), ilObjStyleSheet::createFromXMLFile(), ilObjSurveyQuestionPool::createImportDirectory(), ilObjSurvey::createImportDirectory(), ilObjContentObject::createImportDirectory(), ilObjGlossary::createImportDirectory(), ilObjContentObject::createLMTree(), ilObjFile::createMetaData(), createMetaData(), ilObjContentObject::createProperties(), createRoleFolder(), ilObjForum::createSettings(), ilObjUser::delete(), ilObjLinkResource::delete(), ilObjSAHSLearningModule::delete(), ilObjAICCLearningModule::delete(), ilObjMediaCast::delete(), ilObjContentObject::delete(), ilObjFileBasedLM::delete(), ilObjGlossary::delete(), ilObjForum::delete(), ilObjFile::delete(), ilObjExternalFeed::delete(), ilObjExercise::delete(), ilObjCourse::delete(), ilObjChat::delete(), ilObjCategory::delete(), ilObjStyleSheet::delete(), ilObjRoleTemplate::delete(), ilObjRole::delete(), ilObjGroup::delete(), delete(), ilObjSurveyQuestionPool::deleteAllData(), ilObjGroup::deleteApplicationListEntry(), deleteMetaData(), ilObjQuestionPool::deleteQuestionpool(), ilObjStyleSheet::deleteStylePar(), ilObjSurvey::deleteSurveyRecord(), ilObjTest::deleteTest(), ilObjSCORM2004LearningModule::deleteTrackingDataOfUsers(), ilObjUser::deleteUserDefinedFieldEntries(), ilObjUser::dropDesktopItem(), ilObjQuestionPool::duplicateQuestion(), ilObjFile::export(), ilObjContentObject::exportHTML(), ilObjGlossary::exportHTML(), ilObjContentObject::exportHTMLPages(), ilObjContentObject::exportSCORM(), ilObjGroup::exportXML(), ilObjQuestionPool::exportXMLMetaData(), ilObjTest::exportXMLMetaData(), ilObjContentObject::exportXMLMetaData(), ilObjGlossary::exportXMLMetaData(), ilObjContentObject::exportXMLPageObjects(), ilObjTest::fromXML(), ilObjUser::getAppliedUsers(), ilObjTest::getAuthor(), ilObjSurvey::getAuthor(), ilContainer::getBigIconPath(), ilObjUser::getClipboardObjects(), ilContainer::getContainerDirectory(), ilObjForum::getCountNew(), ilObjForum::getCountUnread(), ilObjUser::getCourseMemberships(), ilObjSAHSLearningModule::getDataDirectory(), ilObjFileBasedLM::getDataDirectory(), ilObjUser::getDesktopItems(), ilObjGroup::getExpiration(), ilObjGroup::getExpirationDateTime(), ilObjGroup::getExpirationTimestamp(), ilObjExternalFeed::getFeedBlock(), ilContainer::getFirstColumn(), ilObjUser::getGroupMemberships(), ilObjSystemFolder::getHeaderTitleTranslations(), ilObjTest::getImagePath(), ilObjTest::getImagePathWeb(), ilObjExercise::getLastSubmission(), ilObjExercise::getMemberListData(), ilObjGroup::getNewRegistrations(), ilObjGroup::getPassword(), ilObjUser::getPersonalPicturePath(), ilObjQuestionPool::getPrintviewQuestions(), ilObjQuestionPool::getQuestionsTable(), ilObjSurveyQuestionPool::getQuestionsTable(), ilObjGroup::getRegistrationFlag(), ilContainer::getSmallIconPath(), ilObjGlossary::getTermList(), ilContainer::getTinyIconPath(), ilObjSCORMLearningModule::getTrackedItems(), ilObjAICCLearningModule::getTrackedItems(), ilObjSCORM2004LearningModule::getTrackedItems(), ilObjSCORM2004LearningModule::getTrackedUsers(), ilObjAICCLearningModule::getTrackingData(), ilObjSCORMLearningModule::getTrackingDataAgg(), ilObjSCORMLearningModule::getTrackingDataPerUser(), ilObjSCORMLearningModule::getTrackingItems(), ilObjAICCLearningModule::getTrackingItems(), ilObjCategory::getTranslations(), ilObjRootFolder::getTranslations(), ilObjFile::getUsages(), ilObjStyleSheet::ilClone(), ilObjChat::ilObjChat(), ilObjChatServer::ilObjChatServer(), ilObjFile::ilObjFile(), ilObjSurvey::importObject(), ilObjCourse::initCourseMemberObject(), ilObjContentObject::initDefaultRoles(), ilObjForum::initDefaultRoles(), ilObjCourse::initDefaultRoles(), ilObjChat::initDefaultRoles(), ilObjiLincCourse::initDefaultRoles(), ilObjGroup::initDefaultRoles(), ilObjFile::initFileStorage(), ilObjLinkResource::initLinkResourceItemsObject(), ilObjCourse::initWaitingList(), ilObjSurvey::inviteGroup(), ilObjSurvey::inviteRole(), ilObjUser::isChild(), ilObjUser::isDesktopItem(), ilObjTest::logAction(), ilObjForum::markAllThreadsRead(), ilObjForum::markPostRead(), ilObjFile::MDUpdateListener(), MDUpdateListener(), ilObjGlossary::modifyExportIdentifier(), ilObjSurveyQuestionPool::paste(), ilObjQuestionPool::pasteFromClipboard(), ilObjFolder::putInTree(), putInTree(), ilObjSAHSLearningModule::read(), ilObjRemoteCourse::read(), ilObjMediaPool::read(), ilObjMediaCast::read(), ilObjContentObject::read(), ilObjFileBasedLM::read(), ilObjGlossary::read(), ilObjFile::read(), ilObjExercise::read(), ilObjChatServer::read(), ilObjChat::read(), ilObjStyleSheetFolder::read(), ilObjStyleSheet::read(), ilObjStyleSettings::read(), ilObjRoleFolder::read(), ilObjGroup::read(), ilObjMediaCast::readItems(), ilObjAICCLearningModule::readObject(), ilObjSCORM2004LearningModule::readObject(), ilObjContentObject::readProperties(), ilObjUser::readUserDefinedFields(), ilContainer::removeBigIcon(), ilObjSystemFolder::removeHeaderTitleTranslations(), ilObjUser::removeObjectFromClipboard(), ilContainer::removeSmallIcon(), ilContainer::removeTinyIcon(), ilObjCategory::removeTranslations(), ilObjRootFolder::removeTranslations(), ilObjFile::replaceFile(), ilObjStyleSheet::replaceStylePar(), ilObjiLincCourse::saveActivationStatus(), ilObjiLincCourse::saveAKClassValues(), ilObjTest::saveAuthorToMetadata(), ilObjSurvey::saveAuthorToMetadata(), ilObjExercise::saveData(), ilContainer::saveIcons(), ilObjUser::setDesktopItemParameters(), ilObjGroup::setExpirationDateTime(), ilObjSurvey::setInvitation(), ilObjGroup::setPassword(), ilObjGroup::setRegistrationFlag(), ilObjSurveyQuestionPool::toXML(), ilObjSurvey::toXML(), ilObjSAHSLearningModule::update(), ilObjRemoteCourse::update(), ilObjMediaCast::update(), ilObjFileBasedLM::update(), ilObjGlossary::update(), ilObjForum::update(), ilObjFile::update(), ilObjExercise::update(), ilObjiLincCourse::update(), ilObjStyleSheetFolder::update(), ilObjStyleSettings::update(), ilObjGroup::update(), update(), ilObjGroup::updateExpiration(), ilObjForum::updateLastAccess(), ilObjQuestionPool::updateMetaData(), ilObjFile::updateMetaData(), updateMetaData(), updateOwner(), ilObjContentObject::updateProperties(), ilObjCourse::updateSettings(), ilObjCategory::updateTranslation(), ilObjUser::updateUserDefinedFields(), ilObjUser::writeAccepted(), ilObjStyleSheet::writeCSSFile(), and ilObjContentObject::writeStyleSheetId().
{
return $this->id;
}
Here is the caller graph for this function:| ilObject::getImportId | ( | ) |
get import id
public
Reimplemented in ilObjContentObject, and ilObjMediaObject.
Definition at line 426 of file class.ilObject.php.
Referenced by create(), and update().
{
return $this->import_id;
}
Here is the caller graph for this function:| ilObject::getLastUpdateDate | ( | ) |
get last update date public
Definition at line 534 of file class.ilObject.php.
{
return $this->last_update;
}
| ilObject::getLongDescription | ( | ) |
get object long description (stored in object_description)
public
Reimplemented in ilObjLanguageExt.
Definition at line 415 of file class.ilObject.php.
Referenced by create(), createMetaData(), 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
Definition at line 463 of file class.ilObject.php.
Referenced by create(), getOwnerName(), and updateOwner().
{
return $this->owner;
}
Here is the caller graph for this function:| ilObject::getOwnerName | ( | ) |
Definition at line 474 of file class.ilObject.php.
References _lookupOwnerName(), and getOwner().
Referenced by ilObjUserTracking::getAccessTotalPerObj(), and ilObjSysUserTracking::getAccessTotalPerObj().
{
return ilObject::_lookupOwnerName($this->getOwner());
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObject::getRefId | ( | ) |
get reference id public
Reimplemented in ilObjStyleSheet, ilCourseStart, and ilObjMediaObject.
Definition at line 331 of file class.ilObject.php.
Referenced by ilObjChat::__formatBody(), ilObjCourse::__getLocalRoles(), ilObjCourse::__setCourseStatus(), ilObjForum::cloneAutoGeneratedRoles(), ilObjCourse::cloneAutoGeneratedRoles(), ilObjChat::cloneAutoGeneratedRoles(), ilObjGroup::cloneAutoGeneratedRoles(), ilObjCourse::cloneDependencies(), ilObjGroup::cloneDependencies(), ilObjFolder::cloneDependencies(), ilObjTest::cloneObject(), ilObjForum::cloneObject(), cloneObject(), ilObjRoleFolder::createRole(), createRoleFolder(), ilObjChat::delete(), ilObjRoleFolder::delete(), delete(), ilObjSurvey::disinviteUser(), ilObjDlBook::export(), ilObjiLincCourse::getAdminIds(), ilObjCourse::getDefaultCourseRoles(), ilObjGroup::getDefaultGroupRoles(), ilObjiLincCourse::getDefaultRoles(), ilObjGroup::getGroupAdminIds(), ilObjGroup::getLocalGroupRoles(), ilObjiLincCourse::getLocalRoles(), ilObjSurvey::getSurveyCodesForExport(), ilObjSurvey::getSurveyCodesTableData(), ilObjForum::initDefaultRoles(), ilObjCourse::initDefaultRoles(), ilObjChat::initDefaultRoles(), ilObjiLincCourse::initDefaultRoles(), ilObjGroup::initDefaultRoles(), ilObjGroup::initGroupStatus(), ilObjSurvey::inviteGroup(), ilObjSurvey::inviteRole(), ilObjSurvey::inviteUser(), ilObjRoleFolder::isDeleted(), ilObjGroup::leaveGroup(), ilObjTest::logAction(), ilObjRoleFolder::purge(), ilObjFolder::putInTree(), putInTree(), ilObjExercise::read(), ilObjGroup::readGroupStatus(), ilObjSurvey::setInvitation(), and setPermissions().
{
return $this->ref_id;
}
Here is the caller graph for this function:| ilObject::getTitle | ( | ) |
get object title public
Reimplemented in ilObjGlossary, ilObjContentObject, ilObjSurveyQuestionPool, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 361 of file class.ilObject.php.
Referenced by ilObjChat::__formatBody(), ilObjExercise::__formatSubject(), create(), createMetaData(), delete(), ilObjTest::deliverPDFfromFO(), ilObjSurvey::deliverPDFfromFO(), ilObjRoleTemplate::getFilterOfInternalTemplate(), ilObjChat::getHTMLDirectory(), ilObjStyleSheet::ilClone(), ilObjSurvey::isComplete(), ilObjRoleTemplate::isInternalTemplate(), prependCopyInfo(), putInTree(), ilObjTest::toXML(), ilObjSurvey::toXML(), ilObjForum::update(), ilObjiLincClassroom::update(), update(), and updateMetaData().
{
return $this->title;
}
Here is the caller graph for this function:| ilObject::getType | ( | ) |
get object type public
Definition at line 341 of file class.ilObject.php.
Referenced by ilObjExercise::__formatBody(), ilObjFile::addNewsNotification(), ilObjTest::cleanupMediaobjectUsage(), ilObjSurvey::cleanupMediaobjectUsage(), cloneMetaData(), ilObjQuestionPool::cloneObject(), ilObjSurveyQuestionPool::cloneObject(), cloneObject(), ilObjMediaObject::createMetaData(), ilObjFile::createMetaData(), createMetaData(), ilObjExternalFeed::delete(), delete(), ilObjMediaObject::deleteMetaData(), deleteMetaData(), ilObjContentObject::exportHTML(), ilObjGlossary::exportHTML(), ilObjContentObject::exportHTMLPages(), ilObjContentObject::exportSCORM(), ilObjContentObject::exportXML(), ilObjQuestionPool::exportXMLMetaData(), ilObjTest::exportXMLMetaData(), ilObjContentObject::exportXMLMetaData(), ilObjGlossary::exportXMLMetaData(), ilObjTest::getAuthor(), ilObjSurvey::getAuthor(), ilObjExternalFeed::getFeedBlock(), ilObjMediaObject::getXML(), ilObjStyleSheet::ilClone(), ilObjGroup::isMember(), ilObjMediaObject::MDUpdateListener(), ilObjFile::MDUpdateListener(), MDUpdateListener(), ilObjPersonalDesktopSettings::notify(), ilObjNewsSettings::notify(), ilObjAuthSettings::notify(), ilObjQuestionPool::notify(), ilObjTest::notify(), ilObjSurveyQuestionPool::notify(), ilObjSurvey::notify(), ilObjSAHSLearningModule::notify(), ilObjMediaPool::notify(), ilObjMediaCast::notify(), ilObjContentObject::notify(), ilObjFileBasedLM::notify(), ilObjGlossary::notify(), ilObjExternalFeed::notify(), ilObj< module_name >::notify(), ilObjSysUserTracking::notify(), ilObjStyleSheetFolder::notify(), ilObjStyleSettings::notify(), ilObjRecoveryFolder::notify(), ilObjExternalToolsSettings::notify(), ilObjAssessmentFolder::notify(), ilObjAdvancedEditing::notify(), prependCopyInfo(), putInTree(), ilObjMediaCast::readItems(), ilObjTest::saveAuthorToMetadata(), ilObjSurvey::saveAuthorToMetadata(), setPermissions(), ilObjSurveyQuestionPool::toXML(), ilObjSurvey::toXML(), ilObjMediaObject::updateMetaData(), ilObjQuestionPool::updateMetaData(), ilObjFile::updateMetaData(), and updateMetaData().
{
return $this->type;
}
Here is the caller graph for this function:| ilObject::getXMLZip | ( | ) |
Reimplemented in ilObjFile, ilObjGlossary, ilObjContentObject, and ilObjDlBook.
Definition at line 1434 of file class.ilObject.php.
{
return false;
}
| ilObject::ilObject | ( | $ | a_id = 0, |
|
| $ | a_reference = true | |||
| ) |
Constructor public.
| integer | reference_id or object_id | |
| boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 109 of file class.ilObject.php.
References $ilBench, $ilias, $lng, and read().
Referenced by ilObjPrivacySecurity::__construct(), ilObjRemoteCourse::__construct(), ilObjAdvancedEditing::ilObjAdvancedEditing(), ilObjAICCLearningModule::ilObjAICCLearningModule(), ilObjAssessmentFolder::ilObjAssessmentFolder(), ilObjAuthSettings::ilObjAuthSettings(), ilObjChat::ilObjChat(), ilObjChatServer::ilObjChatServer(), ilContainer::ilObjContainer(), ilObjContentObject::ilObjContentObject(), ilObjCourse::ilObjCourse(), ilObjExercise::ilObjExercise(), ilObjExternalFeed::ilObjExternalFeed(), ilObjExternalToolsSettings::ilObjExternalToolsSettings(), ilObjFile::ilObjFile(), ilObjFileBasedLM::ilObjFileBasedLM(), ilObjForum::ilObjForum(), ilObjGlossary::ilObjGlossary(), ilObjGroup::ilObjGroup(), ilObjHACPLearningModule::ilObjHACPLearningModule(), ilObjiLincCourse::ilObjiLincCourse(), ilObjLanguage::ilObjLanguage(), ilObjLanguageFolder::ilObjLanguageFolder(), ilObjLinkResource::ilObjLinkResource(), ilObjMail::ilObjMail(), ilObjMDSettings::ilObjMDSettings(), ilObjMediaCast::ilObjMediaCast(), ilObjMediaObject::ilObjMediaObject(), ilObjMediaPool::ilObjMediaPool(), ilObjNewsSettings::ilObjNewsSettings(), ilObjObjectFolder::ilObjObjectFolder(), ilObjPaymentSettings::ilObjPaymentSettings(), 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(), ilObjSurveyQuestionPool::ilObjSurveyQuestionPool(), ilObjSystemFolder::ilObjSystemFolder(), ilObjSysUserTracking::ilObjSysUserTracking(), 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
Reimplemented in ilObjAdvancedEditing, ilObjAssessmentFolder, ilObjExternalToolsSettings, ilObjGroup, ilObjRecoveryFolder, ilObjStyleSettings, ilObjStyleSheetFolder, ilObjSysUserTracking, ilObj< module_name >, ilObjiLincCourse, ilObjChat, ilObjCourse, ilObjExternalFeed, ilObjForum, ilObjFileBasedLM, ilObjContentObject, ilObjMediaCast, ilObjMediaPool, ilObjTest, ilObjQuestionPool, ilObjAuthSettings, ilObjNewsSettings, and ilObjPersonalDesktopSettings.
Definition at line 1320 of file class.ilObject.php.
{
return array();
}
| ilObject::isUserRegistered | ( | $ | a_user_id = 0 |
) |
| 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.
| string | $a_element |
Reimplemented in ilObjFile, and ilObjMediaObject.
Definition at line 697 of file class.ilObject.php.
References $id, _writeDescription(), _writeTitle(), getId(), getType(), setDescription(), and setTitle().
{
include_once 'Services/MetaData/classes/class.ilMD.php';
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;
}
ilObject::_writeTitle($this->getId(),$md_gen->getTitle());
$this->setTitle($md_gen->getTitle());
foreach($md_gen->getDescriptionIds() as $id)
{
$md_des = $md_gen->getDescription($id);
ilObject::_writeDescription($this->getId(),$md_des->getDescription());
$this->setDescription($md_des->getDescription());
break;
}
break;
default:
}
return true;
}
Here is the call 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
| string | event | |
| integer | reference id of object where the event occured | |
| integer | reference id of node in the tree which is actually notified | |
| array | passes optional parameters if required |
Reimplemented in ilObjAdvancedEditing, ilObjAssessmentFolder, ilObjExternalToolsSettings, ilObjGroup, ilObjRecoveryFolder, ilObjRootFolder, ilObjStyleSettings, ilObjStyleSheetFolder, ilObjSysUserTracking, ilObj< module_name >, ilObjiLincCourse, ilObjExternalFeed, ilObjGlossary, ilObjFileBasedLM, ilObjContentObject, ilObjMediaCast, ilObjMediaPool, ilObjSAHSLearningModule, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, ilObjQuestionPool, ilObjAuthSettings, ilObjNewsSettings, and ilObjPersonalDesktopSettings.
Definition at line 1400 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::prependCopyInfo | ( | $ | a_copy_id | ) |
Prepend Copy info if object with same name exists in that container.
public
| int | copy_id |
Definition at line 1565 of file class.ilObject.php.
References $title, 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($tree->getParentId($this->getRefId()));
$title_unique = false;
$title = $this->getTitle();
$increment = 0;
while(!$title_unique)
{
$found = 0;
foreach($nodes as $node)
{
if(($title == $node['title']) and ($this->getType() == $node['type']))
{
$found++;
}
}
if($found > 0)
{
if(!$increment)
{
$title = $this->getTitle().' (Copy)';
$increment++;
}
else
{
$title = ($this->getTitle().' (Copy '.($increment+1).')');
$increment++;
}
}
else
{
break;
}
}
return $title;
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObject::putInTree | ( | $ | a_parent_ref | ) |
maybe this method should be in tree object!?
Reimplemented in ilObjFolder, and ilObjContentObject.
Definition at line 1133 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
| boolean | public |
Reimplemented in ilObjRoleFolder, ilObjCourse, ilObjForum, ilObjRemoteCourse, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, and ilObjQuestionPool.
Definition at line 167 of file class.ilObject.php.
References $ilBench, $log, $res, and setDescription().
Referenced by ilObject().
{
global $objDefinition, $ilBench, $ilDB, $log;
$ilBench->start("Core", "ilObject_read");
if (isset($this->obj_data_record) && !$a_force_db)
{
$obj = $this->obj_data_record;
}
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");
/* old query (very slow)
$q = "SELECT * FROM object_data ".
"LEFT JOIN object_reference ON object_data.obj_id=object_reference.obj_id ".
"WHERE object_reference.ref_id='".$this->ref_id."'"; */
$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);
$object_set = $this->ilias->db->query($q);
$ilBench->stop("Core", "ilObject_read_readData");
// check number of records
if ($object_set->numRows() == 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 = $object_set->fetchRow(DB_FETCHMODE_ASSOC);
}
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);
$object_set = $ilDB->query($q);
// check number of records
if ($object_set->numRows() == 0)
{
$message = "ilObject::read(): Object with obj_id: ".$this->id." (".$this->type.") not found!";
$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
}
$obj = $object_set->fetchRow(DB_FETCHMODE_ASSOC);
}
$this->id = $obj["obj_id"];
// check type match
if ($this->type != $obj["type"])
{
$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"];
$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);
$res = $this->ilias->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$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)." ".
"AND lang_code = ".$ilDB->quote($this->ilias->account->getCurrentLanguage())." ".
"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 | ( | ) |
Definition at line 1428 of file class.ilObject.php.
{
return $this->register;
}
| ilObject::setDescription | ( | $ | a_desc | ) |
set object description
public
| string | $a_desc object description |
Reimplemented in ilObjGlossary, ilObjContentObject, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 399 of file class.ilObject.php.
References ilUtil::shortenText().
Referenced by ilObjRole::assignData(), ilObjTest::fromXML(), ilObjLanguage::install(), MDUpdateListener(), ilObjiLincClassroom::read(), ilObjRoleFolder::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
| integer | $a_id object id |
Reimplemented in ilCourseStart, and ilObjMediaObject.
Definition at line 310 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
| string | $a_import_id import id |
Reimplemented in ilObjContentObject, and ilObjMediaObject.
Definition at line 437 of file class.ilObject.php.
{
$this->import_id = $a_import_id;
}
| ilObject::setObjDataRecord | ( | $ | a_record | ) |
set object_data record (note: this method should only be called from the ilObjectFactory class)
| array | $a_record assoc. array from table object_data public |
Definition at line 547 of file class.ilObject.php.
{
$this->obj_data_record = $a_record;
}
| ilObject::setOwner | ( | $ | a_owner | ) |
set object owner
public
| integer | $a_owner owner id |
Definition at line 512 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
| integer | reference_id of parent object public |
Definition at line 1152 of file class.ilObject.php.
References getRefId(), and getType().
{
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());
}
}
Here is the call graph for this function:| ilObject::setRefId | ( | $ | a_id | ) |
set reference id public
| integer | $a_id reference id |
Reimplemented in ilCourseStart.
Definition at line 320 of file class.ilObject.php.
{
$this->ref_id = $a_id;
$this->referenced = true;
}
| ilObject::setRegisterMode | ( | $ | a_bool | ) |
Definition at line 1416 of file class.ilObject.php.
Referenced by ilObjGroup::ilObjGroup(), and ilObjiLincCourse::ilObjiLincCourse().
{
$this->register = (bool) $a_bool;
}
Here is the caller graph for this function:| ilObject::setTitle | ( | $ | a_title | ) |
set object title
public
| string | $a_title object title |
Reimplemented in ilObjGlossary, ilObjContentObject, ilObjSurveyQuestionPool, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 372 of file class.ilObject.php.
References ilUtil::shortenText().
Referenced by ilObjRole::assignData(), ilObjTest::fromXML(), MDUpdateListener(), ilObjiLincClassroom::read(), ilObjRoleFolder::read(), and ilObjLanguage::uninstall().
{
if ($a_title == "")
{
$a_title = "NO TITLE";
}
$this->title = ilUtil::shortenText($a_title, $this->max_title, $this->add_dots);
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilObject::setType | ( | $ | a_type | ) |
set object type public
| integer | $a_type object type |
Definition at line 351 of file class.ilObject.php.
{
$this->type = $a_type;
}
| ilObject::update | ( | ) |
update object in db
public
Reimplemented in ilObjAdvancedEditing, ilObjAssessmentFolder, ilObjExternalToolsSettings, ilObjGroup, ilObjRecoveryFolder, ilObjRole, ilObjStyleSettings, ilObjStyleSheet, ilObjStyleSheetFolder, ilObjSysUserTracking, ilObj< module_name >, ilObjiLincCourse, ilObjCourse, ilObjExercise, ilObjExternalFeed, ilObjFile, ilObjForum, ilObjGlossary, ilObjFileBasedLM, ilObjContentObject, ilObjMediaCast, ilObjMediaPool, ilObjRemoteCourse, ilObjSAHSLearningModule, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, ilObjQuestionPool, ilObjLinkResource, ilObjPaymentSettings, ilObjAuthSettings, ilObjMediaObject, ilObjNewsSettings, ilObjPersonalDesktopSettings, ilObjSearchSettings, and ilObjUser.
Definition at line 642 of file class.ilObject.php.
References $res, getDescription(), getId(), getImportId(), getLongDescription(), and getTitle().
Referenced by ilObjLanguage::install(), ilObjLanguageExt::setLocal(), and ilObjLanguage::uninstall().
{
global $objDefinition, $ilDB;
$q = "UPDATE object_data ".
"SET ".
"title = ".$ilDB->quote($this->getTitle()).",".
"description = ".$ilDB->quote($this->getDescription()).", ".
"import_id = ".$ilDB->quote($this->getImportId()).",".
"last_update = now() ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
$this->ilias->db->query($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());
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$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()));
if($res->numRows())
{
$query = "UPDATE object_description SET description = ".
$ilDB->quote($this->getLongDescription())." ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
}
else
{
$query = "INSERT INTO object_description SET obj_id = ".$ilDB->quote($this->getId()).", ".
"description = ".$ilDB->quote($this->getLongDescription());
}
$this->ilias->db->query($query);
}
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, ilObjQuestionPool, and ilObjMediaObject.
Definition at line 754 of file class.ilObject.php.
References getId(), getLongDescription(), getTitle(), and getType().
Referenced by ilObjLinkResource::update(), ilObjSurveyQuestionPool::update(), ilObjSurvey::update(), ilObjSAHSLearningModule::update(), ilObjContentObject::update(), ilObjFileBasedLM::update(), ilObjGlossary::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();
$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
Definition at line 793 of file class.ilObject.php.
References getId(), and getOwner().
Referenced by ilObjUser::update().
{
global $ilDB;
$q = "UPDATE object_data ".
"SET ".
"owner = ".$ilDB->quote($this->getOwner()).", ".
"last_update = now() ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
$this->ilias->db->query($q);
$q = "SELECT last_update FROM object_data".
" WHERE obj_id = ".$ilDB->quote($this->getId());
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$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)
Definition at line 155 of file class.ilObject.php.
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:| ilObject::$add_dots |
Definition at line 96 of file class.ilObject.php.
| ilObject::$create_date |
Definition at line 61 of file class.ilObject.php.
| ilObject::$desc |
Definition at line 58 of file class.ilObject.php.
Referenced by ilObjUser::_lookupDesktopItems(), and _writeDescription().
| ilObject::$id |
Reimplemented in ilCourseStart, and ilObjMediaObject.
Definition at line 54 of file class.ilObject.php.
Referenced by ilObjStyleSheet::_getClonableContentStyles(), ilObjSystemFolder::_getHeaderTitle(), ilObjSystemFolder::_getHeaderTitleDescription(), ilObjUser::_getImportedUserId(), ilObjTest::_lookupAuthor(), ilObjUserTracking::authorLms(), ilObjSysUserTracking::authorLms(), ilObjTest::getAccessCodeSession(), ilObjSurvey::getAnonymousId(), ilObjTest::getAuthor(), ilObjSurvey::getAuthor(), ilObjAssessmentFolder::getFullPath(), ilObjUserTracking::getObjId(), ilObjSysUserTracking::getObjId(), ilObjSysUserTracking::getOwnerName(), ilObjSurvey::getPrecondition(), ilObjUserTracking::getTestId(), ilObjSysUserTracking::getTestId(), ilObjFile::MDUpdateListener(), MDUpdateListener(), ilObjTest::setAccessCodeSession(), and ilObjTest::unsetAccessCodeSession().
| ilObject::$ilias |
Reimplemented in ilObjUser.
Definition at line 40 of file class.ilObject.php.
Referenced by ilObjUserTracking::__readSettings(), ilObjExercise::_checkCondition(), ilObjContentObject::_checkPreconditionsOfPage(), ilObjQuestionPool::_createImportDirectory(), ilObjTest::_createImportDirectory(), ilObjUserTracking::_enabledLearningProgress(), ilObjUserTracking::_enabledTracking(), ilObjSysUserTracking::_enabledTracking(), ilObjSysUserTracking::_enabledUserRelatedData(), _exists(), ilObjiLincCourse::_getAKClassValues(), ilObjStyleSheet::_getStandardStyles(), ilObjUserTracking::_getValidTimeSpan(), ilObjiLincCourse::_isActivated(), ilObjContentObject::_moveLMStyles(), ilObjForum::_updateOldAccess(), ilObjUserFolder::buildExportFile(), ilObjTest::createImportDirectory(), ilObjSysUserTracking::enableTracking(), ilObjSysUserTracking::enableUserRelatedData(), ilObjContentObject::exportHTML(), ilObjGlossary::exportHTML(), ilObjContentObject::exportPageHTML(), ilObjTest::generateRandomQuestions(), ilObjStyleSheet::getContentStylePath(), ilObjFile::getXMLZip(), ilObject(), ilObjForum::ilObjForum(), ilObjiLincClassroom::ilObjiLincClassroom(), ilObjSCORM2004LearningModule::readObject(), and ilObjUserTracking::updateSettings().
| ilObject::$import_id |
Definition at line 63 of file class.ilObject.php.
| ilObject::$last_update |
Definition at line 62 of file class.ilObject.php.
| ilObject::$lng |
Definition at line 47 of file class.ilObject.php.
Referenced by ilObjExercise::__formatBody(), ilObjRole::__getPermissionDefinitions(), ilObjTest::_buildName(), ilObjiLincClassroom::_getDocent(), ilObjQuestionPool::_getQuestionTypes(), ilObjRole::_getTranslation(), ilObjLanguageExt::_getTranslations(), ilObjiLincCourse::_goto(), ilObjGroup::_importFromFile(), ilObjExercise::_lookupFeedbackTime(), _lookupOwnerName(), ilObjExercise::_lookupSentTime(), ilObjExercise::_lookupStatusTime(), ilObjExercise::_lookupUpdatedSubmission(), _prepareCloneSelection(), ilObjLanguageExt::_saveTranslations(), ilObjExercise::addUploadedFile(), ilObjLanguageFolder::checkAllLanguages(), ilObjLanguageFolderGUI::confirmRefreshObject(), ilObjLanguageFolder::getLanguages(), ilObjExercise::getLastSubmission(), ilObjUser::getProfileAsString(), ilObject(), ilObjiLincClassroom::ilObjiLincClassroom(), ilObjLanguage::ilObjLanguage(), ilObjLanguageFolder::ilObjLanguageFolder(), ilObjTest::ilObjTest(), ilObjExercise::processUploadedFile(), and ilObjSCORM2004LearningModule::readObject().
| ilObject::$long_desc |
Definition at line 59 of file class.ilObject.php.
| ilObject::$max_desc |
Definition at line 90 of file class.ilObject.php.
| ilObject::$max_title |
Definition at line 84 of file class.ilObject.php.
| ilObject::$obj_data_record |
object_data record
Definition at line 101 of file class.ilObject.php.
| ilObject::$objectList |
Definition at line 78 of file class.ilObject.php.
| ilObject::$owner |
Definition at line 60 of file class.ilObject.php.
Referenced by ilObjSurvey::_addQuestionblock(), _lookupOwnerName(), and create().
| ilObject::$ref_id |
Reimplemented in ilCourseStart.
Definition at line 55 of file class.ilObject.php.
Referenced by ilObjAssessmentFolder::_addLog(), ilObjUser::_getAllUserData(), ilObjStyleSheet::_getClonableContentStyles(), ilObjQuestionPool::_getFullPathToQpl(), ilObjGroup::_getMembers(), ilObjUser::_getUsersForFolder(), _hasUntrashedReference(), ilObjDlBook::addTranslations(), ilContainer::cloneAllObject(), ilObjDlBook::deleteTranslations(), ilObjAssessmentFolder::getFullPath(), and ilObjUser::searchUsers().
| ilObject::$referenced |
Definition at line 71 of file class.ilObject.php.
| ilObject::$register = false |
Definition at line 64 of file class.ilObject.php.
| ilObject::$title |
Definition at line 57 of file class.ilObject.php.
Referenced by ilObjSurvey::_addQuestionblock(), ilObjTest::_buildName(), ilObjQuestionPool::_getAvailableQuestionpools(), ilObjSurveyQuestionPool::_getAvailableQuestionpools(), ilObjSystemFolder::_getHeaderTitle(), ilObjUser::_lookupDesktopItems(), _prepareCloneSelection(), ilObjTest::buildName(), cloneObject(), ilObjSurvey::createQuestionblock(), ilObjMediaPool::deleteChild(), ilObjUserTracking::getObjId(), ilObjSysUserTracking::getObjId(), ilObjTest::getQuestionTitle(), ilObjSurvey::insertQuestionblock(), ilObjSurvey::modifyQuestionblock(), prependCopyInfo(), and ilObjTest::testTitleExists().
| ilObject::$type |
Definition at line 56 of file class.ilObject.php.
Referenced by ilObjCourse::_isActivated(), ilObjCourse::_registrationEnabled(), ilObjUserTracking::allAuthor(), ilObjSysUserTracking::allAuthor(), ilObjUserTracking::authorLms(), ilObjSysUserTracking::authorLms(), ilObjMediaPool::deleteChild(), ilObjTest::fromXML(), ilObjContentObject::getExportFiles(), ilObjGlossary::getExportFiles(), ilObjUserTracking::getObjId(), ilObjSysUserTracking::getObjId(), ilObjMediaObject::getParentObjectIdForUsage(), and ilCourseStart::isFullfilled().
1.7.1