5include_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();
 
  173            $values[] = $att->getName();
 
  181    public function delete()
 
  186        $this->attributes = array();
 
  198        $this->attributes = array();
 
  200        $query = 
'SELECT * FROM ecs_crs_mapping_atts ' .
 
  201                'WHERE sid = ' . 
$ilDB->quote($this->server_id, 
'integer') . 
' ' .
 
  202                'AND mid = ' . 
$ilDB->quote($this->mid, 
'integer') . 
' ' .
 
An exception for terminatinating execution or to throw for unit testing.
Storage of course attributes for assignment rules.
Storage of course attributes for assignment rules.
__construct($a_server_id, $a_mid)
Constructor.
getFirstAttributeName()
Get first attribute name.
getAttributeValues()
Get active attribute values.
static getInstance($a_server_id, $a_mid)
Get instance.
getNextAttributeName($a_name)
Get next attribute name in sequence.
getAttributeSequence($a_last_attribute)
Get attribute sequence.
getUpperAttributes($a_name)
Get upper attributes in hierarchy.
getFirstAttribute()
Get first defined attribute.
read()
Read attributes @global type $ilDB.
getAttributes()
Get current attributes.
getPreviousAttributeName($a_name)
Get next attribute name in sequence.
foreach($_POST as $key=> $value) $res