ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilObj<module_name> More...
Public Member Functions | |
ilObjCourseGrouping ($a_id=0) | |
Constructor public. | |
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) | |
_getVisibleGroupings ($a_obj_id) | |
Returns a list of all groupings for which the current user hast write permission on all assigned objects. | |
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) | |
_deleteAll ($a_course_id) | |
_getGroupings ($a_course_id) | |
_checkCondition ($trigger_obj_id, $operator, $value, $a_usr_id=0) | |
_getGroupingCourseIds ($a_course_ref_id, $a_course_id) | |
Get all ids of courses that are grouped with another course static. | |
_checkGroupingDependencies (&$container_obj, $a_user_id=null) | |
_getGroupingItems ($container_obj) | |
Get courses/groups that are assigned to the same membership limitation. |
Static Public Member Functions | |
static | getAssignedObjects () |
Alway call checkGroupingDependencies before. |
Data Fields | |
$db |
Static Protected Attributes | |
static | $assignedObjects = array() |
Class ilObj<module_name>
Definition at line 34 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::__addCondition | ( | $a_target_ref_id, | |
$a_target_obj_id | |||
) |
Definition at line 392 of file class.ilObjCourseGrouping.php.
References getId(), and getUniqueField().
Referenced by assign().
ilObjCourseGrouping::_checkAccess | ( | $grouping_id | ) |
Definition at line 282 of file class.ilObjCourseGrouping.php.
References ilObjCourseGrouping().
Referenced by ilObjCourseGroupingGUI\listGroupings().
ilObjCourseGrouping::_checkCondition | ( | $trigger_obj_id, | |
$operator, | |||
$value, | |||
$a_usr_id = 0 |
|||
) |
Definition at line 453 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::_checkGroupingDependencies | ( | & | $container_obj, |
$a_user_id = null |
|||
) |
Definition at line 502 of file class.ilObjCourseGrouping.php.
References $lng, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\_getConditionsOfTrigger(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObjGroup\_isMember(), and ilObjUser\lookupMatriculation().
Referenced by ilRegistrationGUI\fillMembershipLimitation(), ilWaitingListTableGUI\fillRow(), and ilSubscriberTableGUI\fillRow().
ilObjCourseGrouping::_deleteAll | ( | $a_course_id | ) |
Definition at line 418 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, and _getGroupings().
Referenced by ilObjCourse\delete().
ilObjCourseGrouping::_getGroupingCourseIds | ( | $a_course_ref_id, | |
$a_course_id | |||
) |
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 467 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTarget(), and ilConditionHandler\_getConditionsOfTrigger().
Referenced by ilObjCourseGUI\__showWaitingList().
ilObjCourseGrouping::_getGroupingItems | ( | $container_obj | ) |
Get courses/groups that are assigned to the same membership limitation.
object | container object |
Definition at line 612 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTarget(), and ilConditionHandler\_getConditionsOfTrigger().
Referenced by ilRegistrationGUI\fillMembershipLimitation().
ilObjCourseGrouping::_getGroupings | ( | $a_course_id | ) |
Definition at line 438 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by _deleteAll().
ilObjCourseGrouping::_getVisibleGroupings | ( | $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 305 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and ilObjCourseGrouping().
Referenced by ilObjCourseGroupingGUI\listGroupings().
ilObjCourseGrouping::assign | ( | $a_crs_ref_id, | |
$a_course_id | |||
) |
Definition at line 354 of file class.ilObjCourseGrouping.php.
References __addCondition(), getContainerObjId(), and getContainerRefId().
ilObjCourseGrouping::create | ( | $a_course_ref_id, | |
$a_course_id | |||
) |
Definition at line 175 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, getDescription(), getId(), getTitle(), getUniqueField(), and setId().
ilObjCourseGrouping::deassign | ( | $a_crs_ref_id, | |
$a_course_id | |||
) |
Definition at line 363 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTrigger(), and getId().
ilObjCourseGrouping::delete | ( | ) |
Definition at line 151 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, getId(), and getType().
ilObjCourseGrouping::getAssignedItems | ( | ) |
Definition at line 133 of file class.ilObjCourseGrouping.php.
References ilConditionHandler\_getConditionsOfTrigger(), getId(), and getType().
Referenced by getCountAssignedItems(), and isAssigned().
|
static |
Alway call checkGroupingDependencies before.
Definition at line 497 of file class.ilObjCourseGrouping.php.
Referenced by ilWaitingListTableGUI\fillRow(), and ilSubscriberTableGUI\fillRow().
ilObjCourseGrouping::getContainerObjId | ( | ) |
Definition at line 81 of file class.ilObjCourseGrouping.php.
Referenced by assign().
ilObjCourseGrouping::getContainerRefId | ( | ) |
Definition at line 73 of file class.ilObjCourseGrouping.php.
References $ref_id.
Referenced by assign().
ilObjCourseGrouping::getContainerType | ( | ) |
Definition at line 85 of file class.ilObjCourseGrouping.php.
ilObjCourseGrouping::getCountAssignedItems | ( | ) |
Definition at line 128 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::getDescription | ( | ) |
Definition at line 115 of file class.ilObjCourseGrouping.php.
Referenced by create(), and update().
ilObjCourseGrouping::getId | ( | ) |
Definition at line 64 of file class.ilObjCourseGrouping.php.
Referenced by __addCondition(), create(), deassign(), delete(), getAssignedItems(), read(), and update().
ilObjCourseGrouping::getTitle | ( | ) |
Definition at line 107 of file class.ilObjCourseGrouping.php.
References $title.
Referenced by create(), and update().
ilObjCourseGrouping::getType | ( | ) |
Definition at line 98 of file class.ilObjCourseGrouping.php.
Referenced by delete(), getAssignedItems(), and update().
ilObjCourseGrouping::getUniqueField | ( | ) |
Definition at line 123 of file class.ilObjCourseGrouping.php.
Referenced by __addCondition(), create(), and update().
ilObjCourseGrouping::ilObjCourseGrouping | ( | $a_id = 0 | ) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 46 of file class.ilObjCourseGrouping.php.
References $ilDB, read(), setId(), and setType().
Referenced by _checkAccess(), and _getVisibleGroupings().
ilObjCourseGrouping::isAssigned | ( | $a_course_id | ) |
Definition at line 241 of file class.ilObjCourseGrouping.php.
References getAssignedItems().
ilObjCourseGrouping::read | ( | ) |
Definition at line 253 of file class.ilObjCourseGrouping.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getId(), setContainerObjId(), setContainerRefId(), setContainerType(), setDescription(), setTitle(), and setUniqueField().
Referenced by ilObjCourseGrouping().
ilObjCourseGrouping::setContainerObjId | ( | $a_obj_id | ) |
Definition at line 77 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerRefId | ( | $a_ref_id | ) |
Definition at line 69 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setContainerType | ( | $a_type | ) |
Definition at line 89 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setDescription | ( | $a_desc | ) |
Definition at line 111 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setId | ( | $a_id | ) |
Definition at line 60 of file class.ilObjCourseGrouping.php.
Referenced by create(), and ilObjCourseGrouping().
ilObjCourseGrouping::setTitle | ( | $a_title | ) |
Definition at line 103 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::setType | ( | $a_type | ) |
Definition at line 94 of file class.ilObjCourseGrouping.php.
Referenced by ilObjCourseGrouping().
ilObjCourseGrouping::setUniqueField | ( | $a_uni | ) |
Definition at line 119 of file class.ilObjCourseGrouping.php.
Referenced by read().
ilObjCourseGrouping::update | ( | ) |
Definition at line 209 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.