5 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttribute.php';
26 $this->server_id = $a_server_id;
40 if (isset(self::$instances[$a_server_id .
'_' . $a_mid])) {
41 return self::$instances[$a_server_id .
'_' . $a_mid];
43 return self::$instances[$a_server_id .
'_' . $a_mid] =
new ilECSCourseAttributes($a_server_id, $a_mid);
86 if (!$a_last_attribute) {
91 $sequence[] = $att->getName();
92 if ($a_last_attribute == $att->getName()) {
109 foreach ($reverse_attributes as $att) {
110 if ($att->getName() == $a_name) {
115 $upper[] = $att->getName();
118 return array_reverse($upper);
132 if ($a_name == $att->getName()) {
137 return $att->getName();
154 foreach ($reverse_attributes as $att) {
155 if ($a_name == $att->getName()) {
160 return $att->getName();
181 public function delete()
186 $this->attributes = array();
198 $ilDB = $DIC[
'ilDB'];
200 $this->attributes = array();
202 $query =
'SELECT * FROM ecs_crs_mapping_atts ' .
203 'WHERE sid = ' .
$ilDB->quote($this->server_id,
'integer') .
' ' .
204 'AND mid = ' .
$ilDB->quote($this->mid,
'integer') .
' ' .
getAttributeValues()
Get active attribute values.
getFirstAttributeName()
Get first attribute name.
getAttributeSequence($a_last_attribute)
Get attribute sequence.
getFirstAttribute()
Get first defined attribute.
getAttributes()
Get current attributes.
getUpperAttributes($a_name)
Get upper attributes in hierarchy.
foreach($_POST as $key=> $value) $res
Storage of course attributes for assignment rules.
static getInstance($a_server_id, $a_mid)
Get instance.
getPreviousAttributeName($a_name)
Get next attribute name in sequence.
read()
Read attributes type $ilDB.
getNextAttributeName($a_name)
Get next attribute name in sequence.
Storage of course attributes for assignment rules.
__construct($a_server_id, $a_mid)
Constructor.