Example #1
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     if ($id < 1) {
         throw new Exception("Email template identified as {$id} does not exist.");
     }
 }
Example #2
0
 public function __construct($id, $mode = self::MODE_ADMIN)
 {
     $this->_mode = $mode;
     parent::__construct($id);
 }