ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjCourseGrouping Class Reference

Class ilObj<module_name> More...

+ Collaboration diagram for ilObjCourseGrouping:

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()

Detailed Description

Class ilObj<module_name>

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilObjCourseGrouping.php 33501 2012-03-03 11:11:05Z akill

Definition at line 34 of file class.ilObjCourseGrouping.php.

Member Function Documentation

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().

{
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$tmp_condh =& new ilConditionHandler();
$tmp_condh->enableAutomaticValidation(false);
$tmp_condh->setTargetRefId($a_target_ref_id);
$tmp_condh->setTargetObjId($a_target_obj_id);
$tmp_condh->setTargetType('crs');
$tmp_condh->setTriggerRefId(0);
$tmp_condh->setTriggerObjId($this->getId());
$tmp_condh->setTriggerType('crsg');
$tmp_condh->setOperator('not_member');
$tmp_condh->setValue($this->getUniqueField());
if(!$tmp_condh->checkExists())
{
$tmp_condh->storeCondition();
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::_checkAccess (   $grouping_id)

Definition at line 282 of file class.ilObjCourseGrouping.php.

References ilObjCourseGrouping().

{
global $ilAccess,$tree;
$tmp_grouping_obj = new ilObjCourseGrouping($grouping_id);
$found_invisible = false;
foreach($tmp_grouping_obj->getAssignedItems() as $condition)
{
if(!$ilAccess->checkAccess('write','',$condition['target_ref_id']))
{
$found_invisible = true;
break;
}
}
return $found_invisible ? false : true;
}

+ Here is the call graph for this function:

ilObjCourseGrouping::_checkCondition (   $trigger_obj_id,
  $operator,
  $value,
  $a_usr_id = 0 
)

Definition at line 453 of file class.ilObjCourseGrouping.php.

{
// in the moment i alway return true, there are some problems with presenting the condition if it fails,
// only course register class check manually if this condition is fullfilled
return true;
}
ilObjCourseGrouping::_checkGroupingDependencies ( $container_obj,
  $a_user_id = null 
)

Definition at line 502 of file class.ilObjCourseGrouping.php.

References $ilUser, $lng, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\_getConditionsOfTrigger(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObjGroup\_isMember(), and ilObjUser\lookupMatriculation().

Referenced by ilRegistrationGUI\fillMembershipLimitation(), ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().

{
global $ilUser,$lng,$tree;
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$user_id = is_null($a_user_id) ? $ilUser->getId() : $a_user_id;
$trigger_ids = array();
foreach(ilConditionHandler::_getConditionsOfTarget($container_obj->getRefId(),
$container_obj->getId(),
$container_obj->getType()) as $condition)
{
if($condition['operator'] == 'not_member')
{
$trigger_ids[] = $condition['trigger_obj_id'];
break;
}
}
if(!count($trigger_ids))
{
return true;
}
$matriculation_message = $assigned_message = '';
self::$assignedObjects = array();
foreach($trigger_ids as $trigger_id)
{
foreach(ilConditionHandler::_getConditionsOfTrigger('crsg',$trigger_id) as $condition)
{
// Handle deleted items
if($tree->isDeleted($condition['target_ref_id']))
{
continue;
}
if($condition['operator'] == 'not_member')
{
switch($condition['value'])
{
case 'matriculation':
if(!strlen(ilObjUser::lookupMatriculation($user_id)))
{
if(!$matriculation_message)
{
$matriculation_message = $lng->txt('crs_grp_matriculation_required');
}
}
}
if($container_obj->getType() == 'crs')
{
include_once('Modules/Course/classes/class.ilCourseParticipants.php');
$members = ilCourseParticipants::_getInstanceByObjId($condition['target_obj_id']);
if($members->isGroupingMember($user_id,$condition['value']))
{
if(!$assigned_message)
{
self::$assignedObjects[] = $condition['target_obj_id'];
$assigned_message = $lng->txt('crs_grp_already_assigned');
}
}
}
elseif($container_obj->getType() == 'grp')
{
include_once('Modules/Group/classes/class.ilGroupParticipants.php');
$members = ilGroupParticipants::_getInstanceByObjId($condition['target_obj_id']);
if($members->isGroupingMember($user_id,$condition['value']))
{
if(!$assigned_message)
{
self::$assignedObjects[] = $condition['target_obj_id'];
$assigned_message = $lng->txt('crs_grp_already_assigned');
}
}
}
else
{
if(ilObjGroup::_isMember($user_id,$condition['target_ref_id'],$condition['value']))
{
if(!$assigned_message)
{
self::$assignedObjects[] = $condition['target_obj_id'];
$assigned_message = $lng->txt('crs_grp_already_assigned');
}
}
}
}
}
}
if($matriculation_message)
{
$container_obj->appendMessage($matriculation_message);
return false;
}
elseif($assigned_message)
{
$container_obj->appendMessage($assigned_message);
return false;
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::_deleteAll (   $a_course_id)

Definition at line 418 of file class.ilObjCourseGrouping.php.

References $query, $res, and _getGroupings().

Referenced by ilObjCourse\delete().

{
global $ilDB;
// DELETE CONDITIONS
foreach($groupings = ilObjCourseGrouping::_getGroupings($a_course_id) as $grouping_id)
{
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$condh =& new ilConditionHandler();
$condh->deleteByObjId($grouping_id);
}
$query = "DELETE FROM crs_groupings ".
"WHERE crs_id = ".$ilDB->quote($a_course_id,'integer')." ";
$res = $ilDB->manipulate($query);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::_getGroupingCourseIds (   $a_course_ref_id,
  $a_course_id 
)

Get all ids of courses that are grouped with another course static.

Parameters
integerobject_id of one course
arrayinteger 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().

{
global $tree;
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
// get all grouping ids the course is assigned to
foreach(ilConditionHandler::_getConditionsOfTarget($a_course_ref_id,$a_course_id,'crs') as $condition)
{
if($condition['trigger_type'] == 'crsg')
{
foreach(ilConditionHandler::_getConditionsOfTrigger('crsg',$condition['trigger_obj_id']) as $target_condition)
{
if($tree->isDeleted($target_condition['target_ref_id']))
{
continue;
}
$course_ids[] = array('id' => $target_condition['target_obj_id'],
'unique' => $target_condition['value']);
}
}
}
return $course_ids ? $course_ids : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::_getGroupingItems (   $container_obj)

Get courses/groups that are assigned to the same membership limitation.

Parameters
objectcontainer object
Returns
array array of reference ids

Definition at line 612 of file class.ilObjCourseGrouping.php.

References ilConditionHandler\_getConditionsOfTarget(), and ilConditionHandler\_getConditionsOfTrigger().

Referenced by ilRegistrationGUI\fillMembershipLimitation().

{
global $tree,$ilObjDataCache,$ilAccess,$tree;
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$trigger_ids = array();
foreach(ilConditionHandler::_getConditionsOfTarget($container_obj->getRefId(),
$container_obj->getId(),
$container_obj->getType()) as $condition)
{
if($condition['operator'] == 'not_member')
{
$trigger_ids[] = $condition['trigger_obj_id'];
}
}
if(!count($trigger_ids))
{
return false;
}
$hash_table = array();
foreach($trigger_ids as $trigger_id)
{
foreach(ilConditionHandler::_getConditionsOfTrigger('crsg',$trigger_id) as $condition)
{
// Continue if trigger is deleted
if($tree->isDeleted($condition['target_ref_id']))
{
continue;
}
if($condition['operator'] == 'not_member')
{
if(!$hash_table[$condition['target_ref_id']])
{
$items[] = $condition['target_ref_id'];
}
$hash_table[$condition['target_ref_id']] = true;
}
}
}
return $items ? $items : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::_getGroupings (   $a_course_id)

Definition at line 438 of file class.ilObjCourseGrouping.php.

References $query, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by _deleteAll().

{
global $ilDB;
$query = "SELECT * FROM crs_groupings ".
"WHERE crs_id = ".$ilDB->quote($a_course_id,'integer')." ";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$groupings[] = $row->crs_grp_id;
}
return $groupings ? $groupings : array();
}

+ Here is the caller graph for this function:

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 $query, $res, $row, DB_FETCHMODE_OBJECT, and ilObjCourseGrouping().

Referenced by ilCourseGroupingTableGUI\getItems().

{
global $ilObjDataCache,$ilAccess,$ilDB;
$container_type = $ilObjDataCache->lookupType($a_obj_id) == 'grp' ? 'grp' : 'crs';
// First get all groupings
$query = "SELECT * FROM object_data WHERE type = 'crsg' ORDER BY title";
$res = $ilDB->query($query);
$groupings = array();
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$groupings[] = $row->obj_id;
}
//check access
foreach($groupings as $grouping_id)
{
$tmp_grouping_obj = new ilObjCourseGrouping($grouping_id);
// Check container type
if($tmp_grouping_obj->getContainerType() != $container_type)
{
continue;
}
// Check if container is current container
if($tmp_grouping_obj->getContainerObjId() == $a_obj_id)
{
$visible_groupings[] = $grouping_id;
continue;
}
// check if items are assigned
if(count($items = $tmp_grouping_obj->getAssignedItems()))
{
foreach($items as $condition_data)
{
if($ilAccess->checkAccess('write','',$condition_data['target_ref_id']))
{
$visible_groupings[] = $grouping_id;
break;
}
}
}
}
return $visible_groupings ? $visible_groupings : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::assign (   $a_crs_ref_id,
  $a_course_id 
)

Definition at line 354 of file class.ilObjCourseGrouping.php.

References __addCondition(), getContainerObjId(), and getContainerRefId().

{
// Add the parent course of grouping
$this->__addCondition($a_crs_ref_id,$a_course_id);
return true;
}

+ Here is the call graph for this function:

ilObjCourseGrouping::create (   $a_course_ref_id,
  $a_course_id 
)

Definition at line 175 of file class.ilObjCourseGrouping.php.

References $ilUser, $query, $res, getDescription(), getId(), getTitle(), getUniqueField(), and setId().

{
global $ilUser,$ilDB;
// INSERT IN object_data
$this->setId($ilDB->nextId("object_data"));
$query = "INSERT INTO object_data ".
"(obj_id, type,title,description,owner,create_date,last_update) ".
"VALUES ".
"(".
$ilDB->quote($this->getId(), "integer").",".
$ilDB->quote($this->type, "text").",".
$ilDB->quote($this->getTitle(), "text").",".
$ilDB->quote($this->getDescription(), "text").",".
$ilDB->quote($ilUser->getId(), "integer").",".
$ilDB->now().",".
$ilDB->now().
')';
$ilDB->manipulate($query);
// INSERT in crs_groupings
$query = "INSERT INTO crs_groupings (crs_grp_id,crs_ref_id,crs_id,unique_field) ".
"VALUES (".
$ilDB->quote($this->getId(),'integer').", ".
$ilDB->quote($a_course_ref_id,'integer').", ".
$ilDB->quote($a_course_id,'integer').", ".
$ilDB->quote($this->getUniqueField(),'text')." ".
")";
$res = $ilDB->manipulate($query);
return $this->getId();
}

+ Here is the call graph for this function:

ilObjCourseGrouping::deassign (   $a_crs_ref_id,
  $a_course_id 
)

Definition at line 363 of file class.ilObjCourseGrouping.php.

References ilConditionHandler\_getConditionsOfTrigger(), and getId().

{
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$condh =& new ilConditionHandler();
// DELETE also original course if its the last
if($this->getCountAssignedCourses() == 2)
{
$condh->deleteByObjId($this->getId());
return true;
}
foreach(ilConditionHandler::_getConditionsOfTrigger('crsg',$this->getId()) as $cond_data)
{
if($cond_data['target_ref_id'] == $a_crs_ref_id and
$cond_data['target_obj_id'] == $a_course_id)
{
$condh->deleteCondition($cond_data['id']);
}
}
return true;
}

+ Here is the call graph for this function:

ilObjCourseGrouping::delete ( )

Definition at line 151 of file class.ilObjCourseGrouping.php.

References $query, $res, getId(), and getType().

{
global $ilDB;
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
if($this->getId() and $this->getType() === 'crsg')
{
$query = "DELETE FROM object_data WHERE obj_id = ".$ilDB->quote($this->getId(),'integer')." ";
$res = $ilDB->manipulate($query);
$query = "DELETE FROM crs_groupings ".
"WHERE crs_grp_id = ".$ilDB->quote($this->getId(),'integer')." ";
$res = $ilDB->manipulate($query);
// Delete conditions
$condh =& new ilConditionHandler();
$condh->deleteByObjId($this->getId());
return true;
}
return false;
}

+ Here is the call graph for this function:

ilObjCourseGrouping::getAssignedItems ( )

Definition at line 133 of file class.ilObjCourseGrouping.php.

References ilConditionHandler\_getConditionsOfTrigger(), getId(), and getType().

Referenced by getCountAssignedItems(), and isAssigned().

{
global $tree;
include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
$condition_data = ilConditionHandler::_getConditionsOfTrigger($this->getType(),$this->getId());
$conditions = array();
foreach($condition_data as $condition)
{
if($tree->isDeleted($condition['target_ref_id']))
{
continue;
}
$conditions[] = $condition;
}
return count($conditions) ? $conditions : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilObjCourseGrouping::getAssignedObjects ( )
static

Alway call checkGroupingDependencies before.

Returns
array Assigned objects

Definition at line 497 of file class.ilObjCourseGrouping.php.

Referenced by ilSubscriberTableGUI\fillRow(), and ilWaitingListTableGUI\fillRow().

{
return self::$assignedObjects ? self::$assignedObjects : array();
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getContainerObjId ( )

Definition at line 81 of file class.ilObjCourseGrouping.php.

Referenced by assign().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getContainerRefId ( )

Definition at line 73 of file class.ilObjCourseGrouping.php.

References $ref_id.

Referenced by assign().

{
return $this->ref_id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getContainerType ( )

Definition at line 85 of file class.ilObjCourseGrouping.php.

{
return $this->container_type;
}
ilObjCourseGrouping::getCountAssignedItems ( )

Definition at line 128 of file class.ilObjCourseGrouping.php.

References getAssignedItems().

{
return count($this->getAssignedItems());
}

+ Here is the call graph for this function:

ilObjCourseGrouping::getDescription ( )

Definition at line 115 of file class.ilObjCourseGrouping.php.

Referenced by create(), and update().

{
return $this->description;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getId ( )

Definition at line 64 of file class.ilObjCourseGrouping.php.

Referenced by __addCondition(), create(), deassign(), delete(), getAssignedItems(), read(), and update().

{
return $this->id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getTitle ( )

Definition at line 107 of file class.ilObjCourseGrouping.php.

Referenced by create(), and update().

{
return $this->title;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getType ( )

Definition at line 98 of file class.ilObjCourseGrouping.php.

Referenced by delete(), getAssignedItems(), and update().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::getUniqueField ( )

Definition at line 123 of file class.ilObjCourseGrouping.php.

Referenced by __addCondition(), create(), and update().

{
return $this->unique_field;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::ilObjCourseGrouping (   $a_id = 0)

Constructor public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

Definition at line 46 of file class.ilObjCourseGrouping.php.

References read(), setId(), and setType().

Referenced by _checkAccess(), and _getVisibleGroupings().

{
global $ilDB;
$this->setType('crsg');
$this->db =& $ilDB;
$this->setId($a_id);
if($a_id)
{
$this->read();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::isAssigned (   $a_course_id)

Definition at line 241 of file class.ilObjCourseGrouping.php.

References getAssignedItems().

{
foreach($this->getAssignedItems() as $condition_data)
{
if($a_course_id == $condition_data['target_obj_id'])
{
return true;
}
}
return false;
}

+ Here is the call graph for this function:

ilObjCourseGrouping::read ( )

Definition at line 253 of file class.ilObjCourseGrouping.php.

References $query, $res, $row, DB_FETCHMODE_OBJECT, getId(), setContainerObjId(), setContainerRefId(), setContainerType(), setDescription(), setTitle(), and setUniqueField().

Referenced by ilObjCourseGrouping().

{
global $ilObjDataCache,$ilDB;
$query = "SELECT * FROM object_data ".
"WHERE obj_id = ".$ilDB->quote($this->getId() ,'integer')." ";
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setTitle($row->title);
$this->setDescription($row->description);
}
$query = "SELECT * FROM crs_groupings ".
"WHERE crs_grp_id = ".$ilDB->quote($this->getId(),'integer')." ";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setUniqueField($row->unique_field);
$this->setContainerRefId($row->crs_ref_id);
$this->setContainerObjId($row->crs_id);
$this->setContainerType($ilObjDataCache->lookupType($this->getContainerObjId()));
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjCourseGrouping::setContainerObjId (   $a_obj_id)

Definition at line 77 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->obj_id = $a_obj_id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setContainerRefId (   $a_ref_id)

Definition at line 69 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->ref_id = $a_ref_id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setContainerType (   $a_type)

Definition at line 89 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->container_type = $a_type;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setDescription (   $a_desc)

Definition at line 111 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->description = $a_desc;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setId (   $a_id)

Definition at line 60 of file class.ilObjCourseGrouping.php.

Referenced by create(), and ilObjCourseGrouping().

{
$this->id = $a_id;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setTitle (   $a_title)

Definition at line 103 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->title = $a_title;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setType (   $a_type)

Definition at line 94 of file class.ilObjCourseGrouping.php.

Referenced by ilObjCourseGrouping().

{
$this->type = $a_type;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::setUniqueField (   $a_uni)

Definition at line 119 of file class.ilObjCourseGrouping.php.

Referenced by read().

{
$this->unique_field = $a_uni;
}

+ Here is the caller graph for this function:

ilObjCourseGrouping::update ( )

Definition at line 209 of file class.ilObjCourseGrouping.php.

References $query, $res, getDescription(), getId(), getTitle(), getType(), and getUniqueField().

{
global $ilDB;
if($this->getId() and $this->getType() === 'crsg')
{
// UPDATe object_data
$query = "UPDATE object_data ".
"SET title = ".$ilDB->quote($this->getTitle(),'text').", ".
"description = ".$ilDB->quote($this->getDescription(),'text')." ".
"WHERE obj_id = ".$ilDB->quote($this->getId(),'integer')." ".
"AND type = ".$ilDB->quote($this->getType(),'text')." ";
$res = $ilDB->manipulate($query);
// UPDATE crs_groupings
$query = "UPDATE crs_groupings ".
"SET unique_field = ".$ilDB->quote($this->getUniqueField(),'text')." ".
"WHERE crs_grp_id = ".$ilDB->quote($this->getId(),'integer')." ";
$res = $ilDB->manipulate($query);
// UPDATE conditions
$query = "UPDATE conditions ".
"SET value = ".$ilDB->quote($this->getUniqueField(),'text')." ".
"WHERE trigger_obj_id = ".$ilDB->quote($this->getId(),'integer')." ".
"AND trigger_type = 'crsg'";
$res = $ilDB->manipulate($query);
return true;
}
return false;
}

+ Here is the call graph for this function:

Field Documentation

ilObjCourseGrouping::$assignedObjects = array()
staticprotected

Definition at line 38 of file class.ilObjCourseGrouping.php.

ilObjCourseGrouping::$db

Definition at line 36 of file class.ilObjCourseGrouping.php.


The documentation for this class was generated from the following file: