ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Static Public Member Functions | |
static | getObjectsStatusForUser (int $a_user_id, array $obj_refs) |
static | getObjectivesStatusForUser (int $a_user_id, int $a_obj_id, array $a_objective_ids) |
static | getSCOsStatusForUser (int $a_user_id, int $a_parent_obj_id, array $a_sco_ids) |
static | getSubItemsStatusForUser (int $a_user_id, int $a_parent_obj_id, array $a_item_ids) |
Get subitems status. More... | |
static | getUserDataForObject (int $a_ref_id, string $a_order_field="", string $a_order_dir="", int $a_offset=0, int $a_limit=9999, ?array $a_filters=null, ?array $a_additional_fields=null, ?int $check_agreement=null, ?array $privacy_fields=null) |
static | getObjectsDataForUser (int $a_user_id, int $a_parent_obj_id, int $a_parent_ref_id, string $a_order_field="", string $a_order_dir="", int $a_offset=0, int $a_limit=9999, ?array $a_filters=null, ?array $a_additional_fields=null, bool $use_collection=true) |
Get all object-based tracking data for user and parent object. More... | |
static | getSubItemType (int $a_parent_obj_id) |
Get sub-item object type for parent. More... | |
static | getObjectsSummaryForObject (int $a_parent_obj_id, int $a_parent_ref_id, string $a_order_field="", string $a_order_dir="", int $a_offset=0, int $a_limit=9999, ?array $a_filters=null, ?array $a_additional_fields=null, ?array $a_preselected_obj_ids=null) |
Get all aggregated tracking data for parent object :TODO: sorting, offset, limit, objectives, collection/all. More... | |
static | getParticipantsForObject (int $a_ref_id) |
Get participant ids for given object. More... | |
static | getObjectIds (int $a_parent_obj_id, int $a_parent_ref_id, bool $use_collection=true, bool $a_refresh_status=true, ?array $a_user_ids=null) |
Get (sub)objects for given object, also handles learning objectives (course only) More... | |
static | executeQueries (array $queries, string $a_order_field="", string $a_order_dir="", int $a_offset=0, int $a_limit=9999) |
Execute given queries, including count query. More... | |
static | getUserObjectMatrix (int $a_parent_ref_id, array $a_obj_ids, ?string $a_user_filter=null, ?array $a_additional_fields=null, ?array $a_privacy_fields=null, ?int $a_check_agreement=null) |
Get status matrix for users on objects. More... | |
static | getUserObjectiveMatrix (int $a_parent_obj_id, array $a_users) |
static | getObjectAccessStatistics (array $a_ref_ids, string $a_year, ?string $a_month=null) |
static | getObjectTypeStatistics () |
static | getWorkspaceBlogs (?string $a_title=null) |
static | getPortfolios (?string $a_title=null) |
static | getObjectDailyStatistics (array $a_ref_ids, string $a_year, ?string $a_month=null) |
static | getObjectStatisticsMonthlySummary () |
static | deleteObjectStatistics (array $a_months) |
static | searchObjects (string $a_type, ?string $a_title=null, ?int $a_root=null, ?array $a_hidden=null, ?array $a_preset_obj_ids=null) |
static | getObjectStatisticsLogInfo () |
Get last update info for object statistics. More... | |
static | getObjectLPStatistics (array $a_obj_ids, int $a_year, ?int $a_month=null, bool $a_group_by_day=false) |
static | getObjectTypeStatisticsPerMonth (string $a_aggregation, ?string $a_year=null) |
static | getObjectTypeStatisticsMinYear () |
Static Protected Member Functions | |
static | getUDFAndHandlePrivacy (array &$a_result, ?array $a_udf=null, ?int $a_check_agreement=null, ?array $a_privacy_fields=null, ?array $a_filters=null) |
Handle privacy and add udf data to (user) result data. More... | |
static | getSessionData (int $a_user_id, array $obj_ids) |
Get session data for given objects and user. More... | |
static | getSummaryDataForObject (int $a_ref_id, array $fields, ?array $a_filters=null) |
static | getSummaryPercentages (string $field, string $base_query, ?string $alias=null) |
Get aggregated data for field. More... | |
static | filterOutUsersWithoutData (array $user_ids) |
static | buildFilters (array $where, ?array $a_filters=null, bool $a_aggregate=false) |
static | buildColumns (array &$a_fields, ?array $a_additional_fields=null, bool $a_aggregate=false) |
static | getSubTree (int $a_parent_ref_id, array &$a_object_ids, array &$a_ref_ids) |
Get complete branch of tree (recursively) More... | |
static | refreshObjectsStatus (array $a_obj_ids, ?array $a_users=null) |
check whether status (for all relevant users) exists More... | |
Definition at line 21 of file class.ilTrQuery.php.
|
staticprotected |
Definition at line 1365 of file class.ilTrQuery.php.
References null.
|
staticprotected |
Definition at line 1112 of file class.ilTrQuery.php.
References $DIC, $id, $ilDB, IL_CAL_DATETIME, IL_CAL_UNIX, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
|
static |
Definition at line 2089 of file class.ilTrQuery.php.
Referenced by ilLPObjectStatisticsGUI\deleteData().
|
static |
Execute given queries, including count query.
array | $queries | fields, query, count |
string | $a_order_field | |
string | $a_order_dir | |
int | $a_offset | |
int | $a_limit |
Definition at line 1590 of file class.ilTrQuery.php.
|
staticprotected |
int[] | $user_ids |
Definition at line 1091 of file class.ilTrQuery.php.
References $DIC, $res, $user_id, and ilObjUser\userExists().
|
static |
Definition at line 1859 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPObjectStatisticsTableGUI\getItems().
|
static |
Definition at line 2036 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPObjectStatisticsDailyTableGUI\getItems().
|
static |
Get (sub)objects for given object, also handles learning objectives (course only)
int | $a_parent_obj_id | |
int | $a_parent_ref_id | |
bool | $use_collection | |
bool | $a_refresh_status | |
array | null | $a_user_ids |
Definition at line 1469 of file class.ilTrQuery.php.
References ilLPStatusFactory\_getInstance(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjectLP\getInstance(), ilLPObjSettings\LP_MODE_COLLECTION_MANUAL, ilLPObjSettings\LP_MODE_COLLECTION_MOBS, ilLPObjSettings\LP_MODE_COLLECTION_TLT, ilLPObjSettings\LP_MODE_OBJECTIVES, and ilLPObjSettings\LP_MODE_SCORM.
Referenced by ilTrMatrixTableGUI\getItems().
|
static |
Definition at line 104 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilLOUserResults\getObjectiveStatusForLP(), ILIAS\Repository\int(), and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ILIAS\Tracking\View\DataRetrieval\DataRetrieval\collectLPDataWithIlTryQuery(), and ilLPProgressTableGUI\getItems().
|
static |
Definition at line 2227 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPObjectStatisticsLPTableGUI\getDetailItems(), and ilLPObjectStatisticsLPTableGUI\getItems().
|
static |
Get all object-based tracking data for user and parent object.
Definition at line 478 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilCourseObjective\_getObjectiveIds(), ilObjSAHSLearningModule\_lookupSubType(), ilContainerReference\_lookupTargetTitle(), IL_CAL_DATETIME, IL_CAL_UNIX, ILIAS\Repository\int(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ilTrUserObjectsPropsTableGUI\getItems().
|
static |
Definition at line 23 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilObjectLP\getInstance(), ilCourseConstants\IL_CRS_VIEW_OBJECTIVE, ILIAS\Repository\int(), ilLPObjSettings\LP_MODE_OBJECTIVES, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ILIAS\Tracking\View\DataRetrieval\DataRetrieval\collectLPDataWithIlTryQuery(), ilPortfolioPageGUI\getCoursesOfUser(), and ilLPProgressTableGUI\getItems().
|
static |
Get all aggregated tracking data for parent object :TODO: sorting, offset, limit, objectives, collection/all.
Definition at line 743 of file class.ilTrQuery.php.
References $DIC, $ilDB, $ref_id, ILIAS\Repository\int(), and null.
Referenced by ilTrSummaryTableGUI\getItems().
|
static |
Get last update info for object statistics.
Definition at line 2215 of file class.ilTrQuery.php.
Referenced by ilLPObjectStatisticsGUI\showAggregationInfo().
|
static |
Definition at line 2068 of file class.ilTrQuery.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPObjectStatisticsAdminTableGUI\getItems().
|
static |
Definition at line 1917 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, ILIAS\Repository\int(), and ilObjectDefinition\MODE_REPOSITORY.
Referenced by ilLPCronObjectStatistics\gatherTypesData(), and ilLPObjectStatisticsTypesTableGUI\getItems().
|
static |
Definition at line 2297 of file class.ilTrQuery.php.
References $DIC, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLPObjectStatisticsTypesTableGUI\initFilter().
|
static |
Definition at line 2265 of file class.ilTrQuery.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPObjectStatisticsTypesTableGUI\getItems().
|
static |
Get participant ids for given object.
int | $a_ref_id |
Definition at line 954 of file class.ilTrQuery.php.
References $DIC, $GLOBALS, $path, ilLPStatusFactory\_getClassById(), ilObjSCORMTracking\_getTrackedUsers(), ilObject\_lookupObjectId(), ilObjSAHSLearningModule\_lookupSubType(), ilObject\_lookupType(), ilObjectLP\getInstance(), ilParticipants\getInstance(), ilLPObjSettings\LP_MODE_SURVEY_FINISHED, ilLPObjSettings\LP_MODE_TEST_FINISHED, and null.
Referenced by ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItemsBySco(), and ilObjSCORMLearningModuleGUI\showTrackingItemsBySco().
|
static |
Definition at line 2008 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPObjectStatisticsTableGUI\getItems(), and ilLPObjectStatisticsDailyTableGUI\getItems().
|
static |
Definition at line 148 of file class.ilTrQuery.php.
References ilLPStatusWrapper\_getStatusInfo(), ilObjSAHSLearningModule\_lookupSubType(), ilLPStatus\LP_STATUS_COMPLETED, ilLPStatus\LP_STATUS_FAILED, ilLPStatus\LP_STATUS_IN_PROGRESS, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED.
Referenced by ILIAS\Tracking\View\DataRetrieval\DataRetrieval\collectLPDataWithIlTryQuery(), ilScormMailTemplateLPContext\getDescription(), and ilLPProgressTableGUI\getItems().
|
staticprotected |
Get session data for given objects and user.
Definition at line 698 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilDatePresentation\formatPeriod(), IL_CAL_DATETIME, ILIAS\Repository\int(), and ilTimeZone\UTC.
|
static |
Get subitems status.
Definition at line 216 of file class.ilTrQuery.php.
References $ref_id, ilObject\_getAllReferences(), ilLPStatusWrapper\_getStatusInfo(), ilObject\_lookupType(), ilObjectLP\getInstance(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ILIAS\Tracking\View\DataRetrieval\DataRetrieval\collectLPDataWithIlTryQuery(), and ilLPProgressTableGUI\getItems().
|
static |
Get sub-item object type for parent.
Definition at line 683 of file class.ilTrQuery.php.
References ilObject\_lookupType().
Referenced by ilTrMatrixTableGUI\getSelectableColumns().
|
staticprotected |
Get complete branch of tree (recursively)
Definition at line 1549 of file class.ilTrQuery.php.
References $DIC, ilObjectLP\getInstance(), and ilLPObjSettings\LP_MODE_UNDEFINED.
|
staticprotected |
Definition at line 819 of file class.ilTrQuery.php.
References $DIC, $ilDB, $valid, ilObject\_lookupObjectId(), and ANONYMOUS_USER_ID.
|
staticprotected |
Get aggregated data for field.
Definition at line 911 of file class.ilTrQuery.php.
References $DIC, $ilDB, and ILIAS\Repository\int().
|
staticprotected |
Handle privacy and add udf data to (user) result data.
Definition at line 364 of file class.ilTrQuery.php.
References $DIC, $ilDB, ILIAS\Repository\int(), ilMemberAgreement\lookupAcceptedAgreements(), and null.
|
static |
Definition at line 265 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilObject\_lookupObjectId(), ANONYMOUS_USER_ID, null, and ilArrayUtil\stableSortArray().
Referenced by ilTrObjectUsersPropsTableGUI\getItems().
|
static |
Definition at line 1795 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, $user_id, ilCourseObjective\_getObjectiveIds(), ilLOSettings\getInstanceByObjId(), ILIAS\Repository\int(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM, ilLOUserResults\STATUS_COMPLETED, ilLOUserResults\STATUS_FAILED, and ilLOUserResults\TYPE_QUALIFIED.
Referenced by ilTrMatrixTableGUI\getItems().
|
static |
Get status matrix for users on objects.
int | $a_parent_ref_id | |
array | $a_obj_ids | |
string | null | $a_user_filter | |
array | null | $a_additional_fields | |
array | null | $a_privacy_fields | |
int | null | $a_check_agreement |
Definition at line 1669 of file class.ilTrQuery.php.
References $DIC, $ilDB, ilObject\_lookupObjectId(), ANONYMOUS_USER_ID, ILIAS\Repository\int(), and null.
Referenced by ilTrMatrixTableGUI\getItems().
|
static |
Definition at line 1978 of file class.ilTrQuery.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilLPObjectStatisticsTableGUI\getItems(), and ilLPObjectStatisticsDailyTableGUI\getItems().
|
staticprotected |
check whether status (for all relevant users) exists
Definition at line 2203 of file class.ilTrQuery.php.
References ilLPStatus\checkStatusForObject().
|
static |
Definition at line 2128 of file class.ilTrQuery.php.
References $DIC, $ilDB, $ref_id, $res, ilObject\_getAllReferences(), ILIAS\Repository\int(), and ROOT_FOLDER_ID.