ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilObj<module_name> More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. More... | |
setId ($a_id) | |
getId () | |
setContainerRefId ($a_ref_id) | |
getContainerRefId () | |
setContainerObjId ($a_obj_id) | |
getContainerObjId () | |
getContainerType () | |
setContainerType ($a_type) | |
setType ($a_type) | |
getType () | |
setTitle ($a_title) | |
getTitle () | |
setDescription ($a_desc) | |
getDescription () | |
setUniqueField ($a_uni) | |
getUniqueField () | |
getCountAssignedItems () | |
getAssignedItems () | |
delete () | |
create ($a_course_ref_id, $a_course_id) | |
update () | |
isAssigned ($a_course_id) | |
read () | |
_checkAccess ($grouping_id) | |
assign ($a_crs_ref_id, $a_course_id) | |
deassign ($a_crs_ref_id, $a_course_id) | |
__addCondition ($a_target_ref_id, $a_target_obj_id) | |
Static Public Member Functions | |
static | _getVisibleGroupings ($a_obj_id) |
static | _deleteAll ($a_course_id) |
static | _getGroupings ($a_course_id) |
static | _checkCondition ($trigger_obj_id, $operator,$value, $a_usr_id=0) |
static | _getGroupingCourseIds ($a_course_ref_id, $a_course_id) |
Get all ids of courses that are grouped with another course static. More... | |
static | getAssignedObjects () |
Alway call checkGroupingDependencies before. More... | |
static | _checkGroupingDependencies (&$container_obj, $a_user_id=null) |
static | _getGroupingItems ($container_obj) |
Get courses/groups that are assigned to the same membership limitation. More... | |
Data Fields | |
$db | |
Static Protected Attributes | |
static | $assignedObjects = array() |
ilObjCourseGrouping::__construct | ( | $a_id = 0 | ) |
ilObjCourseGrouping::__addCondition | ( | $a_target_ref_id, | |
$a_target_obj_id | |||
) |
Definition at line 394 of file class.ilObjCourseGrouping.php.
References getId(), and getUniqueField().
Referenced by assign().
ilObjCourseGrouping::_checkAccess | ( | $grouping_id | ) |
Definition at line 281 of file class.ilObjCourseGrouping.php.
|
static |
Definition at line 455 of file class.ilObjCourseGrouping.php.
Referenced by ilConditionHandler\_checkCondition().
|
static |
Definition at line 504 of file class.ilObjCourseGrouping.php.
References $ilUser, $lng, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\_getConditionsOfTrigger(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObjGroup\_isMember(), array, and ilObjUser\lookupMatriculation().
Referenced by ilRegistrationGUI\fillMembershipLimitation(), ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().
|
static |
Definition at line 420 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, and _getGroupings().
Referenced by ilObjCourse\delete().
|
static |
Get all ids of courses that are grouped with another course static.
integer | object_id of one course |
array | integer ids of courses or empty array if course is not in grouping |
Definition at line 469 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\_getConditionsOfTrigger(), and array.
|
static |
Get courses/groups that are assigned to the same membership limitation.
object | container object |
Definition at line 614 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\_getConditionsOfTrigger(), and array.
Referenced by ilRegistrationGUI\fillMembershipLimitation().
|
static |
Definition at line 440 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by _deleteAll().
|
static |
int | $a_obj_id |
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 307 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCourseGroupingTableGUI\getItems().
ilObjCourseGrouping::assign | ( | $a_crs_ref_id, | |
$a_course_id | |||
) |
Definition at line 356 of file class.ilObjCourseGrouping.php.
References __addCondition(), getContainerObjId(), and getContainerRefId().
ilObjCourseGrouping::create | ( | $a_course_ref_id, | |
$a_course_id | |||
) |
Definition at line 174 of file class.ilObjCourseGrouping.php.
References $ilDB, $ilUser, $query, $res, getDescription(), getId(), getTitle(), getUniqueField(), and setId().
ilObjCourseGrouping::deassign | ( | $a_crs_ref_id, | |
$a_course_id | |||
) |
Definition at line 365 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTrigger(), and getId().
ilObjCourseGrouping::delete | ( | ) |
Definition at line 150 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, getId(), and getType().
ilObjCourseGrouping::getAssignedItems | ( | ) |
Definition at line 132 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTrigger(), array, getId(), and getType().
Referenced by getCountAssignedItems(), and isAssigned().
|
static |
Alway call checkGroupingDependencies before.
Definition at line 499 of file class.ilObjCourseGrouping.php.
References array.
Referenced by ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().
ilObjCourseGrouping::getContainerObjId | ( | ) |
Definition at line 80 of file class.ilObjCourseGrouping.php.
Referenced by assign().
ilObjCourseGrouping::getContainerRefId | ( | ) |
Definition at line 72 of file class.ilObjCourseGrouping.php.
References $ref_id.
Referenced by assign().
ilObjCourseGrouping::getContainerType | ( | ) |
Definition at line 84 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::getCountAssignedItems | ( | ) |
Definition at line 127 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::getDescription | ( | ) |
Definition at line 114 of file class.ilObjCourseGrouping.php.
Referenced by create(), and update().
ilObjCourseGrouping::getId | ( | ) |
Definition at line 63 of file class.ilObjCourseGrouping.php.
Referenced by __addCondition(), create(), deassign(), delete(), getAssignedItems(), read(), and update().
ilObjCourseGrouping::getTitle | ( | ) |
Definition at line 106 of file class.ilObjCourseGrouping.php.
References $title.
Referenced by create(), and update().
ilObjCourseGrouping::getType | ( | ) |
Definition at line 97 of file class.ilObjCourseGrouping.php.
Referenced by delete(), getAssignedItems(), and update().
ilObjCourseGrouping::getUniqueField | ( | ) |
Definition at line 122 of file class.ilObjCourseGrouping.php.
Referenced by __addCondition(), create(), and update().
ilObjCourseGrouping::isAssigned | ( | $a_course_id | ) |
Definition at line 240 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::read | ( | ) |
Definition at line 252 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getId(), setContainerObjId(), setContainerRefId(), setContainerType(), setDescription(), setTitle(), and setUniqueField().
Referenced by __construct().
ilObjCourseGrouping::setContainerObjId | ( | $a_obj_id | ) |
Definition at line 76 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerRefId | ( | $a_ref_id | ) |
Definition at line 68 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerType | ( | $a_type | ) |
Definition at line 88 of file class.ilObjCourseGrouping.php.
References $a_type.
Referenced by read().
ilObjCourseGrouping::setDescription | ( | $a_desc | ) |
Definition at line 110 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setId | ( | $a_id | ) |
Definition at line 59 of file class.ilObjCourseGrouping.php.
Referenced by __construct(), and create().
ilObjCourseGrouping::setTitle | ( | $a_title | ) |
Definition at line 102 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setType | ( | $a_type | ) |
Definition at line 93 of file class.ilObjCourseGrouping.php.
References $a_type.
Referenced by __construct().
ilObjCourseGrouping::setUniqueField | ( | $a_uni | ) |
Definition at line 118 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::update | ( | ) |
Definition at line 208 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, getDescription(), getId(), getTitle(), getType(), and getUniqueField().
|
staticprotected |
Definition at line 38 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::$db |
Definition at line 36 of file class.ilObjCourseGrouping.php.