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