예제 #1
0
 function validate()
 {
     if (!Validations::notEmptyString($this->txt)) {
         return false;
     }
     if (!Validations::notEmptyString($this->subject)) {
         return false;
     }
     if (!Validations::email($this->to)) {
         return false;
     }
     return true;
 }