示例#1
0
 /**
  * Returns the folder name for the message
  * @return array
  */
 protected function ErrorParams()
 {
     if ($this->error == self::ExistsInFolder) {
         return array($this->folder);
     }
     return parent::ErrorParams();
 }
 function ErrorParams()
 {
     if ($this->error) {
         return array($this->compareValue);
     }
     return parent::ErrorParams();
 }
示例#3
0
 function ErrorParams()
 {
     switch ($this->error) {
         case self::ParseFailed:
             return array($this->format);
         case self::TooEarly:
             return array($this->minDate->ToString($this->format));
         case self::TooLate:
             return array($this->maxDate->ToString($this->format));
     }
     return parent::ErrorParams();
 }
示例#4
0
 function ErrorParams()
 {
     if ($this->error == self::ExceedsMax) {
         return array($this->max);
     } else {
         if ($this->error == self::ExceedsMin) {
             return array($this->min);
         }
     }
     return parent::ErrorParams();
 }