ILIAS
Release_4_0_x_branch Revision 61816
|
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 | |
increaseMonth ($a_month) | |
Increase Month string ("YYYY-MM") by one month. | |
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 | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
update () | |
update object in db | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_getAllReferences ($a_id) | |
get all reference ids of object | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public | |
createRoleFolder () | |
creates a local role folder | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
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 | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. |
Definition at line 24 of file class.ilObjUserTracking.php.
ilObjUserTracking::__readSettings | ( | ) |
Definition at line 495 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 512 of file class.ilObjUserTracking.php.
References $ilDB, $query, and $res.
Referenced by ilObjUser\delete().
ilObjUserTracking::_enabledLearningProgress | ( | ) |
check wether learing progress is enabled or not
Definition at line 100 of file class.ilObjUserTracking.php.
References ilObject\$ilias, UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
Referenced by ilObjSAHSLearningModuleAccess\_lookupUserCertificate(), ilTracking\_trackAccess(), ilLearningProgressAccess\checkAccess(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), 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 83 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 126 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 144 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 $ilDB, $q, ilObject\$type, and DB_FETCHMODE_ASSOC.
Referenced by ilObjUserTrackingGUI\getObjectCondition().
ilObjUserTracking::authorLms | ( | $id, | |
$type | |||
) |
get author's all lm or tst
Definition at line 423 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $q, 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 370 of file class.ilObjUserTracking.php.
References $ilDB, $q, and increaseMonth().
ilObjUserTracking::enabledLearningProgress | ( | ) |
Definition at line 92 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
ilObjUserTracking::enabledTracking | ( | ) |
Definition at line 75 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_UT.
ilObjUserTracking::enabledUserRelatedData | ( | ) |
Definition at line 117 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::enableTracking | ( | $a_enable | ) |
enable user tracking
Definition at line 66 of file class.ilObjUserTracking.php.
ilObjUserTracking::enableUserRelatedData | ( | $a_enable | ) |
enable tracking of user related data
Definition at line 112 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 337 of file class.ilObjUserTracking.php.
References $ilDB, $name, $q, 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 295 of file class.ilObjUserTracking.php.
References $ilDB, $q, 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 265 of file class.ilObjUserTracking.php.
References $ilDB, $name, $q, ilObjUser\_lookupName(), and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getActivationStatus | ( | ) |
Definition at line 58 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::getDuration | ( | $a_obj_id | ) |
Definition at line 321 of file class.ilObjUserTracking.php.
References $data, $ilDB, $query, and $res.
Referenced by getAccessTotalPerObj().
ilObjUserTracking::getMonthTotalOverview | ( | ) |
get total number of accesses per month
Definition at line 229 of file class.ilObjUserTracking.php.
References $ilDB, $q, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getObjId | ( | $title, | |
$type | |||
) |
get obj_id of some object
Definition at line 443 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $q, ilObject\$title, ilObject\$type, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getOwnerName | ( | $id | ) |
Return the owner name of the object.
Definition at line 484 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $q, $res, and $result.
ilObjUserTracking::getRecordsTotal | ( | ) |
get total number of tracking records
Definition at line 214 of file class.ilObjUserTracking.php.
References $ilDB, $q, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getTestId | ( | $id | ) |
get Test_id of some test
Definition at line 455 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $q, $res, and $result.
ilObjUserTracking::getTotalOlderThanMonth | ( | $a_month | ) |
get total number of records older than given month (YYYY-MM)
Definition at line 248 of file class.ilObjUserTracking.php.
References $ilDB, $q, DB_FETCHMODE_ASSOC, and increaseMonth().
ilObjUserTracking::getValidTimeSpan | ( | ) |
Definition at line 139 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 42 of file class.ilObjUserTracking.php.
References __readSettings(), and ilObject\ilObject().
ilObjUserTracking::increaseMonth | ( | $a_month | ) |
Increase Month string ("YYYY-MM") by one month.
string | month string |
Definition at line 386 of file class.ilObjUserTracking.php.
Referenced by deleteTrackingDataBeforeMonth(), and getTotalOlderThanMonth().
ilObjUserTracking::isChangeEventTrackingEnabled | ( | ) |
Gets the changeEventTrackingEnabled property.
Definition at line 167 of file class.ilObjUserTracking.php.
References $is_change_event_tracking_enabled.
ilObjUserTracking::setActivationStatus | ( | $a_status | ) |
Definition at line 53 of file class.ilObjUserTracking.php.
ilObjUserTracking::setChangeEventTrackingEnabled | ( | $newValue | ) |
Sets the changeEventTrackingEnabled property.
boolean | new value |
Definition at line 158 of file class.ilObjUserTracking.php.
ilObjUserTracking::setValidTimeSpan | ( | $a_time_span | ) |
Definition at line 132 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::updateSettings | ( | ) |
Definition at line 173 of file class.ilObjUserTracking.php.
References ilObject\$ilias, ilChangeEvent\_activate(), ilChangeEvent\_deactivate(), ilChangeEvent\_isActive(), enabledUserRelatedData(), getActivationStatus(), and getValidTimeSpan().
ilObjUserTracking::validateSettings | ( | ) |
Definition at line 200 of file class.ilObjUserTracking.php.
References getValidTimeSpan().
|
private |
This variable holds the enabled state of the change event tracking.
Definition at line 32 of file class.ilObjUserTracking.php.
Referenced by isChangeEventTrackingEnabled().
ilObjUserTracking::$valid_time_span = null |
Definition at line 26 of file class.ilObjUserTracking.php.