ILIAS
Release_4_2_x_branch Revision 61807
|
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 | |
_enabledObjectStatistics () | |
check wether object statistics is enabled or not | |
setValidTimeSpan ($a_time_span) | |
getValidTimeSpan () | |
_getValidTimeSpan () | |
setChangeEventTrackingEnabled ($newValue) | |
Sets the changeEventTrackingEnabled property. | |
isChangeEventTrackingEnabled () | |
Gets the changeEventTrackingEnabled property. | |
setObjectStatisticsEnabled ($newValue) | |
Sets the object statistics property. | |
isObjectStatisticsEnabled () | |
Gets the object statistic 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) | |
setExtendedData ($a_value) | |
hasExtendedData ($a_code) | |
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 | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
update () | |
update object in db | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_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 | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. | |
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, $a_omit_tree=false) | |
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 | |
$extended_data = null | |
const | EXTENDED_DATA_LAST_ACCESS = 1 |
const | EXTENDED_DATA_READ_COUNT = 2 |
const | EXTENDED_DATA_SPENT_SECONDS = 4 |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 128 |
max length of object title | |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
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 | _lookupObjIdByImportId ($a_import_id) |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description | |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_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, $show_path=true) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. |
Definition at line 24 of file class.ilObjUserTracking.php.
ilObjUserTracking::__readSettings | ( | ) |
Definition at line 530 of file class.ilObjUserTracking.php.
References ilObject\$ilias, ilChangeEvent\_isActive(), enableUserRelatedData(), setExtendedData(), setObjectStatisticsEnabled(), setValidTimeSpan(), and UT_INACTIVE_BOTH.
Referenced by ilObjUserTracking().
ilObjUserTracking::_deleteUser | ( | $a_usr_id | ) |
Definition at line 550 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 105 of file class.ilObjUserTracking.php.
References ilObject\$ilias, UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
Referenced by ilObjSAHSLearningModuleAccess\_lookupUserCertificate(), ilLearningProgressAccess\checkAccess(), ilUserLPTableGUI\getItems(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilObjUserTrackingGUI\getTabs(), ilObjUserGUI\getTabs(), ilObjUserFolderGUI\getTabs(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjCourseGUI\printMembersObject(), ilMainMenuGUI\renderDropDown(), ilMainMenuGUI\renderEntry(), and ilInfoScreenGUI\showLearningProgress().
ilObjUserTracking::_enabledObjectStatistics | ( | ) |
check wether object statistics is enabled or not
Definition at line 140 of file class.ilObjUserTracking.php.
References $ilSetting.
Referenced by ilChangeEvent\_recordObjStats(), and ilObjUserTrackingGUI\getTabs().
ilObjUserTracking::_enabledTracking | ( | ) |
check wether learing progress is enabled or not
Definition at line 88 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 131 of file class.ilObjUserTracking.php.
References $ilSetting.
Referenced by ilTrSummaryTableGUI\__construct(), ilTracking\_trackAccess(), ilLMStatistics\calcStats(), ilLPObjectsTableGUI\getItems(), ilObjUserFolderGUI\getTabs(), ilLearningProgressBaseGUI\ilLearningProgressBaseGUI(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjCourseGUI\printMembersObject(), ilLMStatisticsGUI\show(), and ilObjUserTrackingGUI\showForm().
ilObjUserTracking::_getValidTimeSpan | ( | ) |
Definition at line 158 of file class.ilObjUserTracking.php.
References ilObject\$ilias.
Referenced by ilChangeEvent\_recordReadEvent(), and ilLPListOfSettingsGUI\initFormSettings().
ilObjUserTracking::allAuthor | ( | $a_type, | |
$type | |||
) |
get all author
Definition at line 437 of file class.ilObjUserTracking.php.
References $ilDB, ilObject\$type, and DB_FETCHMODE_ASSOC.
Referenced by ilObjUserTrackingGUI\getObjectCondition().
ilObjUserTracking::authorLms | ( | $id, | |
$type | |||
) |
get author's all lm or tst
Definition at line 458 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, 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 405 of file class.ilObjUserTracking.php.
References $ilDB, and increaseMonth().
ilObjUserTracking::enabledLearningProgress | ( | ) |
Definition at line 97 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_LP.
ilObjUserTracking::enabledTracking | ( | ) |
Definition at line 80 of file class.ilObjUserTracking.php.
References UT_ACTIVE_BOTH, and UT_ACTIVE_UT.
ilObjUserTracking::enabledUserRelatedData | ( | ) |
Definition at line 122 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::enableTracking | ( | $a_enable | ) |
enable user tracking
Definition at line 71 of file class.ilObjUserTracking.php.
ilObjUserTracking::enableUserRelatedData | ( | $a_enable | ) |
enable tracking of user related data
Definition at line 117 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 372 of file class.ilObjUserTracking.php.
References $ilDB, 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 330 of file class.ilObjUserTracking.php.
References $ilDB, 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 300 of file class.ilObjUserTracking.php.
References $ilDB, ilObjUser\_lookupName(), and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getActivationStatus | ( | ) |
Definition at line 63 of file class.ilObjUserTracking.php.
Referenced by updateSettings().
ilObjUserTracking::getDuration | ( | $a_obj_id | ) |
Definition at line 356 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 264 of file class.ilObjUserTracking.php.
References $ilDB, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getObjId | ( | $title, | |
$type | |||
) |
get obj_id of some object
Definition at line 478 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, ilObject\$title, ilObject\$type, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getOwnerName | ( | $id | ) |
Return the owner name of the object.
Definition at line 519 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $res, and $result.
ilObjUserTracking::getRecordsTotal | ( | ) |
get total number of tracking records
Definition at line 249 of file class.ilObjUserTracking.php.
References $ilDB, and DB_FETCHMODE_ASSOC.
ilObjUserTracking::getTestId | ( | $id | ) |
get Test_id of some test
Definition at line 490 of file class.ilObjUserTracking.php.
References ilObject\$id, $ilDB, $res, and $result.
ilObjUserTracking::getTotalOlderThanMonth | ( | $a_month | ) |
get total number of records older than given month (YYYY-MM)
Definition at line 283 of file class.ilObjUserTracking.php.
References $ilDB, DB_FETCHMODE_ASSOC, and increaseMonth().
ilObjUserTracking::getValidTimeSpan | ( | ) |
Definition at line 153 of file class.ilObjUserTracking.php.
Referenced by updateSettings(), and validateSettings().
ilObjUserTracking::hasExtendedData | ( | $a_code | ) |
Definition at line 579 of file class.ilObjUserTracking.php.
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 47 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 421 of file class.ilObjUserTracking.php.
Referenced by deleteTrackingDataBeforeMonth(), and getTotalOlderThanMonth().
ilObjUserTracking::isChangeEventTrackingEnabled | ( | ) |
Gets the changeEventTrackingEnabled property.
Definition at line 181 of file class.ilObjUserTracking.php.
References $is_change_event_tracking_enabled.
ilObjUserTracking::isObjectStatisticsEnabled | ( | ) |
Gets the object statistic property.
Definition at line 202 of file class.ilObjUserTracking.php.
ilObjUserTracking::setActivationStatus | ( | $a_status | ) |
Definition at line 58 of file class.ilObjUserTracking.php.
ilObjUserTracking::setChangeEventTrackingEnabled | ( | $newValue | ) |
Sets the changeEventTrackingEnabled property.
boolean | new value |
Definition at line 172 of file class.ilObjUserTracking.php.
ilObjUserTracking::setExtendedData | ( | $a_value | ) |
Definition at line 574 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::setObjectStatisticsEnabled | ( | $newValue | ) |
Sets the object statistics property.
boolean | new value |
Definition at line 193 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::setValidTimeSpan | ( | $a_time_span | ) |
Definition at line 146 of file class.ilObjUserTracking.php.
Referenced by __readSettings().
ilObjUserTracking::updateSettings | ( | ) |
Definition at line 207 of file class.ilObjUserTracking.php.
References ilObject\$ilias, ilChangeEvent\_activate(), ilChangeEvent\_deactivate(), ilChangeEvent\_isActive(), enabledUserRelatedData(), getActivationStatus(), and getValidTimeSpan().
ilObjUserTracking::validateSettings | ( | ) |
Definition at line 235 of file class.ilObjUserTracking.php.
References getValidTimeSpan().
ilObjUserTracking::$extended_data = null |
Definition at line 27 of file class.ilObjUserTracking.php.
|
private |
This variable holds the enabled state of the change event tracking.
Definition at line 33 of file class.ilObjUserTracking.php.
Referenced by isChangeEventTrackingEnabled().
ilObjUserTracking::$valid_time_span = null |
Definition at line 26 of file class.ilObjUserTracking.php.
const ilObjUserTracking::EXTENDED_DATA_LAST_ACCESS = 1 |
Definition at line 36 of file class.ilObjUserTracking.php.
Referenced by ilTrSummaryTableGUI\getSelectableColumns(), ilTrMatrixTableGUI\getSelectableColumns(), ilTrUserObjectsPropsTableGUI\getSelectableColumns(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), ilObjUserTrackingGUI\saveSettingsObject(), and ilObjUserTrackingGUI\settingsObject().
const ilObjUserTracking::EXTENDED_DATA_READ_COUNT = 2 |
Definition at line 37 of file class.ilObjUserTracking.php.
Referenced by ilTrSummaryTableGUI\getSelectableColumns(), ilTrUserObjectsPropsTableGUI\getSelectableColumns(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), ilObjUserTrackingGUI\saveSettingsObject(), and ilObjUserTrackingGUI\settingsObject().
const ilObjUserTracking::EXTENDED_DATA_SPENT_SECONDS = 4 |
Definition at line 38 of file class.ilObjUserTracking.php.
Referenced by ilTrSummaryTableGUI\getSelectableColumns(), ilTrMatrixTableGUI\getSelectableColumns(), ilTrUserObjectsPropsTableGUI\getSelectableColumns(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), ilObjUserTrackingGUI\saveSettingsObject(), and ilObjUserTrackingGUI\settingsObject().