Exemple #1
0
 /**
  * Validate proper mpns message
  *
  * @return boolean
  */
 public function validate()
 {
     if (!isset($this->_token) || strlen($this->_token) === 0) {
         return false;
     }
     if (empty($this->_backgroundImage)) {
         return false;
     }
     if (empty($this->_title)) {
         return false;
     }
     return parent::validate();
 }
Exemple #2
0
 /**
  * Validate proper mpns message
  *
  * @return boolean
  */
 public function validate()
 {
     if (!isset($this->_token) || strlen($this->_token) === 0) {
         return false;
     }
     if (empty($this->_msg)) {
         return false;
     }
     return parent::validate();
 }