24require_once
"Services/Contact/classes/class.ilMailingList.php";
56 $this->db =
$DIC[
'ilDB'];
57 $this->
user = $a_user;
60 public function get($id = 0)
69 if (is_array($a_ids) && !empty($a_ids)) {
71 while ($id = @array_pop($a_ids)) {
83 $res = $this->db->queryf(
85 SELECT * FROM addressbook_mlist
88 array($this->
user->getId())
96 $tmpObj->setId($row->ml_id);
97 $tmpObj->setUserId($row->user_id);
98 $tmpObj->setTitle($row->title);
99 $tmpObj->setDescription($row->description);
100 $tmpObj->setCreatedate($row->createdate);
101 $tmpObj->setChangedate($row->changedae);
102 $tmpObj->setMode($row->lmode);
104 $entries[$counter] = $tmpObj;
116 $ml_id = substr($a_list_name, strrpos($a_list_name,
'_') + 1);
118 if (!is_numeric($ml_id) || $ml_id <= 0) {
129 $this->ml = $this->
get($id);
142 foreach ($this->
getAll() as $mlist) {
An exception for terminatinating execution or to throw for unit testing.
getSelected($a_ids=array())
setCurrentMailingList($id=0)
__construct(ilObjUser $a_user)
ilMailingLists constructor.
mailingListExists($a_list_name)
foreach($_POST as $key=> $value) $res