Example #1
0
 public function clean()
 {
     parent::clean();
     $this->aMesages['subject'] = '';
     $this->aBBCMails = array();
     $this->aCCMails = array();
     $this->aAttachFiles = array();
     return $this;
 }
Example #2
0
 public function validate()
 {
     if (empty($this->sTopicId)) {
         return parent::validate();
     }
     if (!isset($this->aMesages['message']) || empty($this->aMesages['message'])) {
         $this->aErrors[] = "Message Body cannot be empty";
         return false;
     }
     return true;
 }