public function __construct($model)
 {
     parent::__construct($model);
     $this->massmails = $this->model->getMassMailings($this->newsletterSpecific, $this->newsletterGeneral);
     $params = new StdClass();
     $params->strategy = new HalfPagePager('right');
     $params->items = $this->massmails;
     $params->items_per_page = 10;
     $this->pager = new PagerWidget($params);
 }
 public function __construct($model, $id, $detail = false, $pageno = false)
 {
     parent::__construct($model);
     $this->id = $id;
     $this->model = $model;
     $this->massmail = $model->getMassMail($id);
     $this->detail = $detail;
     if ($detail) {
         $this->count = $this->model->getMassmailRecipientsCount($id, $detail);
         $this->details = $this->model->getMassmailRecipientsInfo($id, $detail, ($pageno - 1) * $this->ROWSPERPAGE, $this->ROWSPERPAGE);
     }
 }
 public function __construct($model, $id = 0)
 {
     parent::__construct($model);
     // No idea how to access class constants in column_col3. Works here but
     //   not in adminmassmaileditcreate.column_col3.php. While $this-> works fine there
     if ($id == 0) {
         $this->id = 0;
         // empty fields as we create a new mass mailing
         $this->name = $this->subject = $this->text = $this->description = "";
         $this->type = "None";
     } else {
         $this->id = $id;
         // get fields from database
         $entry = $model->getMassmail($id);
         $this->name = $entry->Name;
         $this->subject = $entry->Subject;
         $this->body = $entry->Body;
         $this->description = $entry->Description;
         $this->type = $entry->Type;
     }
 }
 public function __construct($model, $massmail)
 {
     parent::__construct($model);
     $this->id = $massmail->id;
     $this->type = $massmail->Type;
 }