ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0) | |
setId (int $a_id) | |
getId () | |
setContainerRefId (int $a_ref_id) | |
getContainerRefId () | |
setContainerObjId (int $a_obj_id) | |
getContainerObjId () | |
getContainerType () | |
setContainerType (string $a_type) | |
setType (string $a_type) | |
getType () | |
setTitle (string $a_title) | |
getTitle () | |
setDescription (string $a_desc) | |
getDescription () | |
setUniqueField (string $a_uni) | |
getUniqueField () | |
getCountAssignedItems () | |
getAssignedItems () | |
delete () | |
create (int $a_course_ref_id, int $a_course_id) | |
update () | |
isAssigned (int $a_course_id) | |
read () | |
_checkAccess (int $grouping_id) | |
assign (int $a_crs_ref_id, int $a_course_id) | |
cloneGrouping (int $a_target_id, int $a_copy_id) | |
__addCondition (int $a_target_ref_id, int $a_target_obj_id) | |
Static Public Member Functions | |
static | _getVisibleGroupings (int $a_obj_id) |
Returns a list of all groupings for which the current user hast write permission on all assigned objects. More... | |
static | _deleteAll (int $a_course_id) |
static | _getGroupings (int $a_course_id) |
static | _checkCondition (int $trigger_obj_id, string $operator, $value, int $a_usr_id=0) |
static | _getGroupingCourseIds (int $a_course_ref_id, int $a_course_id) |
Get all ids of courses that are grouped with another course. More... | |
static | getAssignedObjects () |
static | _checkGroupingDependencies (ilObject $container_obj, ?int $a_user_id=null) |
static | _getGroupingItems (ilObject $container_obj) |
Get courses/groups that are assigned to the same membership limitation. More... | |
Protected Attributes | |
ilDBInterface | $db |
ilTree | $tree |
ilObjUser | $user |
ilObjectDataCache | $objectDataCache |
ilAccessHandler | $access |
Static Protected Attributes | |
static array | $assignedObjects = array() |
Private Attributes | |
int | $id = 0 |
int | $ref_id = 0 |
int | $obj_id = 0 |
string | $container_type = '' |
string | $type = '' |
string | $title = '' |
string | $description = '' |
string | $unique_field = '' |
ilLogger | $logger |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObj<module_name>
Definition at line 25 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::__construct | ( | int | $a_id = 0 | ) |
Definition at line 45 of file class.ilObjCourseGrouping.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\logger(), read(), setId(), setType(), and ILIAS\Repository\user().
ilObjCourseGrouping::__addCondition | ( | int | $a_target_ref_id, |
int | $a_target_obj_id | ||
) |
Definition at line 387 of file class.ilObjCourseGrouping.php.
References ilObject\_lookupType(), getId(), and getUniqueField().
Referenced by assign().
ilObjCourseGrouping::_checkAccess | ( | int | $grouping_id | ) |
Definition at line 266 of file class.ilObjCourseGrouping.php.
References ILIAS\Repository\access().
|
static |
Definition at line 444 of file class.ilObjCourseGrouping.php.
Referenced by ilConditionHandler\_checkCondition().
|
static |
Definition at line 488 of file class.ilObjCourseGrouping.php.
References $DIC, $ilUser, $lng, ilCourseParticipants\_getInstanceByObjId(), ilGroupParticipants\_getInstanceByObjId(), ilConditionHandler\_getPersistedConditionsOfTarget(), ilConditionHandler\_getPersistedConditionsOfTrigger(), ilObjGroup\_isMember(), ilObject\getId(), ilObject\getRefId(), ilObject\getType(), ilTree\isDeleted(), and ilObjUser\lookupMatriculation().
Referenced by ilRegistrationGUI\fillMembershipLimitation(), ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().
|
static |
Definition at line 406 of file class.ilObjCourseGrouping.php.
References $DIC, $ilDB, $query, $res, and _getGroupings().
Referenced by ilObjCourse\delete().
|
static |
Get all ids of courses that are grouped with another course.
Definition at line 454 of file class.ilObjCourseGrouping.php.
References $DIC, ilConditionHandler\_getPersistedConditionsOfTarget(), ilConditionHandler\_getPersistedConditionsOfTrigger(), and ilTree\isDeleted().
|
static |
Get courses/groups that are assigned to the same membership limitation.
Definition at line 566 of file class.ilObjCourseGrouping.php.
References $DIC, ilConditionHandler\_getPersistedConditionsOfTarget(), ilConditionHandler\_getPersistedConditionsOfTrigger(), ilObject\getId(), ilObject\getRefId(), ilObject\getType(), and ilTree\isDeleted().
Referenced by ilRegistrationGUI\fillMembershipLimitation().
|
static |
$a_course_id |
Definition at line 427 of file class.ilObjCourseGrouping.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by _deleteAll(), ilObjGroup\cloneDependencies(), and ilObjCourse\cloneDependencies().
|
static |
Returns a list of all groupings for which the current user hast write permission on all assigned objects.
Or groupings the given object id is assigned to.
Definition at line 285 of file class.ilObjCourseGrouping.php.
References $container_type, $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilCourseGroupingTableGUI\getItems().
ilObjCourseGrouping::assign | ( | int | $a_crs_ref_id, |
int | $a_course_id | ||
) |
Definition at line 330 of file class.ilObjCourseGrouping.php.
References __addCondition(), getContainerObjId(), and getContainerRefId().
ilObjCourseGrouping::cloneGrouping | ( | int | $a_target_id, |
int | $a_copy_id | ||
) |
Definition at line 337 of file class.ilObjCourseGrouping.php.
References ilCopyWizardOptions\_getInstance(), ilObject\_lookupObjId(), ilObject\_lookupType(), getContainerRefId(), getDescription(), ilObjectFactory\getInstanceByRefId(), getTitle(), getUniqueField(), and ILIAS\Repository\logger().
ilObjCourseGrouping::create | ( | int | $a_course_ref_id, |
int | $a_course_id | ||
) |
Definition at line 177 of file class.ilObjCourseGrouping.php.
References $query, $res, getDescription(), getId(), getTitle(), getUniqueField(), setId(), and ILIAS\Repository\user().
ilObjCourseGrouping::delete | ( | ) |
Definition at line 161 of file class.ilObjCourseGrouping.php.
References $query, $res, getId(), and getType().
ilObjCourseGrouping::getAssignedItems | ( | ) |
Definition at line 148 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getPersistedConditionsOfTrigger(), getId(), and getType().
Referenced by getCountAssignedItems(), ilCourseGroupingAssignmentTableGUI\getItems(), and isAssigned().
|
static |
Definition at line 483 of file class.ilObjCourseGrouping.php.
Referenced by ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().
ilObjCourseGrouping::getContainerObjId | ( | ) |
Definition at line 88 of file class.ilObjCourseGrouping.php.
References $obj_id.
Referenced by assign().
ilObjCourseGrouping::getContainerRefId | ( | ) |
Definition at line 78 of file class.ilObjCourseGrouping.php.
References $ref_id.
Referenced by assign(), and cloneGrouping().
ilObjCourseGrouping::getContainerType | ( | ) |
Definition at line 93 of file class.ilObjCourseGrouping.php.
References $container_type.
ilObjCourseGrouping::getCountAssignedItems | ( | ) |
Definition at line 143 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::getDescription | ( | ) |
Definition at line 128 of file class.ilObjCourseGrouping.php.
References $description.
Referenced by cloneGrouping(), create(), and update().
ilObjCourseGrouping::getId | ( | ) |
Definition at line 68 of file class.ilObjCourseGrouping.php.
References $id.
Referenced by __addCondition(), create(), delete(), getAssignedItems(), read(), and update().
ilObjCourseGrouping::getTitle | ( | ) |
Definition at line 118 of file class.ilObjCourseGrouping.php.
References $title.
Referenced by ilCourseGroupingAssignmentTableGUI\__construct(), cloneGrouping(), create(), and update().
ilObjCourseGrouping::getType | ( | ) |
Definition at line 108 of file class.ilObjCourseGrouping.php.
References $type.
Referenced by delete(), getAssignedItems(), and update().
ilObjCourseGrouping::getUniqueField | ( | ) |
Definition at line 138 of file class.ilObjCourseGrouping.php.
References $unique_field.
Referenced by __addCondition(), cloneGrouping(), create(), and update().
ilObjCourseGrouping::isAssigned | ( | int | $a_course_id | ) |
Definition at line 233 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::read | ( | ) |
Definition at line 243 of file class.ilObjCourseGrouping.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getId(), setContainerObjId(), setContainerRefId(), setContainerType(), setDescription(), setTitle(), and setUniqueField().
Referenced by __construct().
ilObjCourseGrouping::setContainerObjId | ( | int | $a_obj_id | ) |
Definition at line 83 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerRefId | ( | int | $a_ref_id | ) |
Definition at line 73 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerType | ( | string | $a_type | ) |
Definition at line 98 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setDescription | ( | string | $a_desc | ) |
Definition at line 123 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setId | ( | int | $a_id | ) |
Definition at line 63 of file class.ilObjCourseGrouping.php.
Referenced by __construct(), and create().
ilObjCourseGrouping::setTitle | ( | string | $a_title | ) |
Definition at line 113 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setType | ( | string | $a_type | ) |
Definition at line 103 of file class.ilObjCourseGrouping.php.
Referenced by __construct().
ilObjCourseGrouping::setUniqueField | ( | string | $a_uni | ) |
Definition at line 133 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::update | ( | ) |
Definition at line 207 of file class.ilObjCourseGrouping.php.
References $query, $res, getDescription(), getId(), getTitle(), getType(), and getUniqueField().
|
protected |
Definition at line 43 of file class.ilObjCourseGrouping.php.
|
staticprotected |
Definition at line 27 of file class.ilObjCourseGrouping.php.
|
private |
Definition at line 32 of file class.ilObjCourseGrouping.php.
Referenced by _getVisibleGroupings(), and getContainerType().
|
protected |
Definition at line 39 of file class.ilObjCourseGrouping.php.
|
private |
Definition at line 35 of file class.ilObjCourseGrouping.php.
Referenced by getDescription().
|
private |
Definition at line 29 of file class.ilObjCourseGrouping.php.
Referenced by getId().
|
private |
Definition at line 38 of file class.ilObjCourseGrouping.php.
|
private |
Definition at line 31 of file class.ilObjCourseGrouping.php.
Referenced by getContainerObjId().
|
protected |
Definition at line 42 of file class.ilObjCourseGrouping.php.
|
private |
Definition at line 30 of file class.ilObjCourseGrouping.php.
Referenced by getContainerRefId().
|
private |
Definition at line 34 of file class.ilObjCourseGrouping.php.
Referenced by getTitle().
|
protected |
Definition at line 40 of file class.ilObjCourseGrouping.php.
|
private |
Definition at line 33 of file class.ilObjCourseGrouping.php.
Referenced by getType().
|
private |
Definition at line 36 of file class.ilObjCourseGrouping.php.
Referenced by getUniqueField().
|
protected |
Definition at line 41 of file class.ilObjCourseGrouping.php.