/** * 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(); }
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(); }
function ErrorParams() { if ($this->error == self::ExceedsMax) { return array($this->max); } else { if ($this->error == self::ExceedsMin) { return array($this->min); } } return parent::ErrorParams(); }