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]))
42 return self::$instances[$a_server_id.
'_'.$a_mid];
89 if(!$a_last_attribute)
96 $sequence[] = $att->getName();
97 if($a_last_attribute == $att->getName())
115 foreach ($reverse_attributes as $att)
117 if($att->getName() == $a_name)
124 $upper[] = $att->getName();
127 return array_reverse($upper);
143 if($a_name == $att->getName())
150 return $att->getName();
168 foreach($reverse_attributes as $att)
170 if($a_name == $att->getName())
177 return $att->getName();
191 $values[] = $att->getName();
199 public function delete()
205 $this->attributes =
array();
217 $this->attributes =
array();
219 $query =
'SELECT * FROM ecs_crs_mapping_atts '.
220 'WHERE sid = '.$ilDB->quote($this->server_id,
'integer').
' '.
221 '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.
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.
Create styles array
The data for the language used.
getNextAttributeName($a_name)
Get next attribute name in sequence.
Storage of course attributes for assignment rules.
__construct($a_server_id, $a_mid)
Constructor.