/** * Record an error message in the error log (errors.txt) * * Note: Fatal errors should instead throw a WireException. * * @param string $text * @param int|bool $flags Specify boolean true to also display the error interactively (admin only). * @return $this * */ public function error($text, $flags = 0) { $flags = $flags === true ? Notice::log : $flags | Notice::logOnly; return parent::error($text, $flags); }
/** * Record an error * * @param string $text * @param int|bool $flags See Notices::flags * @return $this * */ public function error($text, $flags = 0) { $this->log($text); return parent::error($text, $flags); }
public function error($text, $flags = 0) { $this->errors[] = $text; parent::error($text, $flags); }
public function error($text) { $this->errors[] = $text; parent::error($text); }