18 declare(strict_types=1);
    41         $this->db = $DIC->database();
    58         $this->server_id = $a_server_id;
    66     public function setMid(
int $a_mid): void
    77     public function setName(
string $a_name): void
    79         $this->name = $a_name;
    93     public function delete(): 
bool    95         $query = 
"DELETE FROM ecs_crs_mapping_atts " .
    96                 'WHERE id = ' . $this->db->quote($this->
getId(), 
'integer');
    97         $this->db->manipulate($query);
   106         $this->
id = $this->db->nextId(
'ecs_crs_mapping_atts');
   108         $query = 
'INSERT INTO ecs_crs_mapping_atts (id,sid,mid,name) ' .
   110                 $this->db->quote($this->
getId(), 
'integer') . 
', ' .
   111                 $this->db->quote($this->
getServerId(), 
'integer') . 
', ' .
   112                 $this->db->quote($this->
getMid(), 
'integer') . 
', ' .
   113                 $this->db->quote($this->
getName(), 
'text') . 
' ' .
   115         $this->db->manipulate($query);
   124     protected function read(): bool
   126         if (!$this->
getId()) {
   129         $query = 
'SELECT * FROM ecs_crs_mapping_atts ' .
   130             'WHERE id = ' . $this->db->quote($this->
getId(), 
'integer');
   131         $res = $this->db->query($query);
 
read()
read active attributes 
 
__construct(int $a_id=0)
Constructor. 
 
Storage of course attributes for assignment rules. 
 
setServerId(int $a_server_id)