24 require_once
"Services/Contact/classes/class.ilMailingList.php";
43 $this->user = $a_user;
46 public function get($id = 0)
55 if (is_array($a_ids) && !empty($a_ids))
58 while($id = @array_pop($a_ids))
71 $res = $this->db->queryf(
'
72 SELECT * FROM addressbook_mlist
74 array(
'integer'), array($this->user->getId()));
82 $tmpObj->setId(
$row->ml_id);
83 $tmpObj->setUserId(
$row->user_id);
84 $tmpObj->setTitle(
$row->title);
85 $tmpObj->setDescription(
$row->description);
86 $tmpObj->setCreatedate(
$row->createdate);
87 $tmpObj->setChangedate(
$row->changedae);
89 $entries[$counter] = $tmpObj;
101 $ml_id = substr($a_list_name, strrpos($a_list_name,
'_') + 1);
103 if (!is_numeric($ml_id) || $ml_id <= 0)
118 $this->ml = $this->
get($id);