ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
ilObjUserTracking ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
setActivationStatus ($a_status) | |
getActivationStatus () | |
enableTracking ($a_enable) | |
enable user tracking | |
enabledTracking () | |
_enabledTracking () | |
check wether learing progress is enabled or not | |
enabledLearningProgress () | |
_enabledLearningProgress () | |
check wether learing progress is enabled or not | |
enableUserRelatedData ($a_enable) | |
enable tracking of user related data | |
enabledUserRelatedData () | |
_enabledUserRelatedData () | |
check wether user related tracking is enabled or not | |
setValidTimeSpan ($a_time_span) | |
getValidTimeSpan () | |
_getValidTimeSpan () | |
setChangeEventTrackingEnabled ($newValue) | |
Sets the changeEventTrackingEnabled property. | |
isChangeEventTrackingEnabled () | |
Gets the changeEventTrackingEnabled property. | |
updateSettings () | |
validateSettings () | |
getRecordsTotal () | |
get total number of tracking records | |
getMonthTotalOverview () | |
get total number of accesses per month | |
getTotalOlderThanMonth ($a_month) | |
get total number of records older than given month (YYYY-MM) | |
getAccessTotalPerUser ($a_condition, $a_searchTermsCondition="", $a_objectCondition="") | |
get total number of records older than given month (YYYY-MM) | |
getAccessTotalPerObj ($a_condition, $a_searchTermsCondition="") | |
get total number of records older than given month (YYYY-MM) | |
getDuration ($a_obj_id) | |
getAccessPerUserDetail ($a_condition, $a_searchTermsCondition="", $a_objectCondition="") | |
get per user of records older than given month (YYYY-MM) | |
deleteTrackingDataBeforeMonth ($a_month) | |
delete tracking data of month (YYYY-MM) and before | |
allAuthor ($a_type, $type) | |
get all author | |
authorLms ($id, $type) | |
get author's all lm or tst | |
getObjId ($title, $type) | |
get obj_id of some object | |
getTestId ($id) | |
get Test_id of some test | |
countResults ($condition) | |
Return the counts of search results. | |
getOwnerName ($id) | |
Return the owner name of the object. | |
__readSettings () | |
_deleteUser ($a_usr_id) | |
Public Member Functions inherited from ilObject | |
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 | |
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 | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_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 ... | |
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. |
Data Fields | |
$valid_time_span = null | |
Data Fields inherited from ilObject | |
$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 |
Private Attributes | |
$is_change_event_tracking_enabled = null | |
This variable holds the enabled state of the change event tracking. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObject | |
static | _getIdsForTitle ($title, $type= '') |
_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. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Definition at line 44 of file class.ilObjUserTracking.php.
ilObjUserTracking::__readSettings | ( | ) |
Definition at line 492 of file class.ilObjUserTracking.php.
References ilObject\$ilias, ilChangeEvent\_isActive(), enableUserRelatedData(), setValidTimeSpan(), and UT_INACTIVE_BOTH.
Referenced by ilObjUserTracking().
ilObjUserTracking::_deleteUser | ( | $a_usr_id | ) |
Definition at line 509 of file class.ilObjUserTracking.php.
Referenced by ilObjUser\delete().
ilObjUserTracking::_enabledLearningProgress | ( | ) |
check wether learing progress is enabled or not
Definition at line 120 of file class.ilObjUserTracking.php.
References ilObject\$ilias, UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
Referenced by ilTracking\_trackAccess(), ilLearningProgressAccess\checkAccess(), ilObjUserTrackingGUI\getTabs(), ilObjUserGUI\getTabs(), ilObjUserFolderGUI\getTabs(), ilObjUserFolderGUI\learningProgressObject(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjCourseGUI\printMembersObject(), ilPersonalDesktopGUI\setTabs(), ilLPListOfSettingsGUI\show(), and ilInfoScreenGUI\showLearningProgress().
ilObjUserTracking::_enabledTracking | ( | ) |
check wether learing progress is enabled or not
Definition at line 103 of file class.ilObjUserTracking.php.
References ilObject\$ilias, UT_ACTIVE_BOTH, and UT_ACTIVE_UT.
Referenced by ilTracking\_trackAccess(), and ilObjUserFolderGUI\getTabs().
ilObjUserTracking::_enabledUserRelatedData | ( | ) |
check wether user related tracking is enabled or not
Definition at line 146 of file class.ilObjUserTracking.php.
References $ilSetting.
Referenced by ilTracking\_trackAccess(), ilLMStatistics\calcStats(), ilObjUserFolderGUI\getTabs(), ilLearningProgressBaseGUI\ilLearningProgressBaseGUI(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjCourseGUI\printMembersObject(), ilLPObjectItemListGUI\renderPath(), ilLMStatisticsGUI\show(), ilLPListOfSettingsGUI\show(), and ilObjUserTrackingGUI\showForm().
ilObjUserTracking::_getValidTimeSpan | ( | ) |
Definition at line 164 of file class.ilObjUserTracking.php.
References ilObject\$ilias.
Referenced by ilChangeEvent\_recordReadEvent(), and ilLPListOfSettingsGUI\show().
ilObjUserTracking::allAuthor | ( | $a_type, | |
$type | |||
) |
get all author
Definition at line 402 of file class.ilObjUserTracking.php.
References ilObject\$type, and DB_FETCHMODE_ASSOC.
Referenced by ilObjUserTrackingGUI\getObjectCondition().
ilObjUserTracking::authorLms | ( | $id, | |
$type | |||
) |
get author's all lm or tst
Definition at line 422 of file class.ilObjUserTracking.php.
References ilObject\$id, ilObject\$type, and DB_FETCHMODE_ASSOC.
Referenced by ilObjUserTrackingGUI\getObjectCondition().
ilObjUserTracking::countResults | ( | $condition | ) |
ilObjUserTracking::deleteTrackingDataBeforeMonth | ( | $a_month | ) |
delete tracking data of month (YYYY-MM) and before
Definition at line 388 of file class.ilObjUserTracking.php.
ilObjUserTracking::enabledLearningProgress | ( | ) |
Definition at line 112 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
ilObjUserTracking::enabledTracking | ( | ) |
Definition at line 95 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_UT.
ilObjUserTracking::enabledUserRelatedData | ( | ) |
Definition at line 137 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::enableTracking | ( | $a_enable | ) |
enable user tracking
Definition at line 86 of file class.ilObjUserTracking.php.
ilObjUserTracking::enableUserRelatedData | ( | $a_enable | ) |
enable tracking of user related data
Definition at line 132 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::getAccessPerUserDetail | ( | $a_condition, | |
$a_searchTermsCondition = "" , |
|||
$a_objectCondition = "" |
|||
) |
get per user of records older than given month (YYYY-MM)
Definition at line 355 of file class.ilObjUserTracking.php.
References ilObjUser\_lookupName(), ilObject\_lookupTitle(), and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getAccessTotalPerObj | ( | $a_condition, | |
$a_searchTermsCondition = "" |
|||
) |
get total number of records older than given month (YYYY-MM)
Definition at line 315 of file class.ilObjUserTracking.php.
References ilObject\_lookupTitle(), DB_FETCHMODE_ASSOC, getDuration(), and ilObject\getOwnerName().
ilObjUserTracking::getAccessTotalPerUser | ( | $a_condition, | |
$a_searchTermsCondition = "" , |
|||
$a_objectCondition = "" |
|||
) |
get total number of records older than given month (YYYY-MM)
Definition at line 285 of file class.ilObjUserTracking.php.
References ilObjUser\_lookupName(), and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getActivationStatus | ( | ) |
Definition at line 78 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::getDuration | ( | $a_obj_id | ) |
Definition at line 341 of file class.ilObjUserTracking.php.
References $data, $res, and DB_FETCHMODE_ASSOC.
Referenced by getAccessTotalPerObj().
ilObjUserTracking::getMonthTotalOverview | ( | ) |
get total number of accesses per month
Definition at line 249 of file class.ilObjUserTracking.php.
References DB_FETCHMODE_ASSOC.
ilObjUserTracking::getObjId | ( | $title, | |
$type | |||
) |
get obj_id of some object
Definition at line 442 of file class.ilObjUserTracking.php.
References ilObject\$id, ilObject\$title, ilObject\$type, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getOwnerName | ( | $id | ) |
Return the owner name of the object.
Definition at line 483 of file class.ilObjUserTracking.php.
ilObjUserTracking::getRecordsTotal | ( | ) |
get total number of tracking records
Definition at line 234 of file class.ilObjUserTracking.php.
References DB_FETCHMODE_ASSOC.
ilObjUserTracking::getTestId | ( | $id | ) |
get Test_id of some test
Definition at line 454 of file class.ilObjUserTracking.php.
References ilObject\$id, $res, and $result.
ilObjUserTracking::getTotalOlderThanMonth | ( | $a_month | ) |
get total number of records older than given month (YYYY-MM)
Definition at line 268 of file class.ilObjUserTracking.php.
References DB_FETCHMODE_ASSOC.
ilObjUserTracking::getValidTimeSpan | ( | ) |
Definition at line 159 of file class.ilObjUserTracking.php.
Referenced by updateSettings(), and validateSettings().
ilObjUserTracking::ilObjUserTracking | ( | $a_id = 0 , |
|
$a_call_by_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 62 of file class.ilObjUserTracking.php.
References __readSettings(), and ilObject\ilObject().
ilObjUserTracking::isChangeEventTrackingEnabled | ( | ) |
Gets the changeEventTrackingEnabled property.
Definition at line 187 of file class.ilObjUserTracking.php.
References $is_change_event_tracking_enabled.
ilObjUserTracking::setActivationStatus | ( | $a_status | ) |
Definition at line 73 of file class.ilObjUserTracking.php.
ilObjUserTracking::setChangeEventTrackingEnabled | ( | $newValue | ) |
Sets the changeEventTrackingEnabled property.
boolean | new value |
Definition at line 178 of file class.ilObjUserTracking.php.
ilObjUserTracking::setValidTimeSpan | ( | $a_time_span | ) |
Definition at line 152 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::updateSettings | ( | ) |
Definition at line 193 of file class.ilObjUserTracking.php.
References ilObject\$ilias, ilChangeEvent\_activate(), ilChangeEvent\_deactivate(), ilChangeEvent\_isActive(), enabledUserRelatedData(), getActivationStatus(), and getValidTimeSpan().
ilObjUserTracking::validateSettings | ( | ) |
Definition at line 220 of file class.ilObjUserTracking.php.
References getValidTimeSpan().
|
private |
This variable holds the enabled state of the change event tracking.
Definition at line 52 of file class.ilObjUserTracking.php.
Referenced by isChangeEventTrackingEnabled().
ilObjUserTracking::$valid_time_span = null |
Definition at line 46 of file class.ilObjUserTracking.php.