setError() 공개 메소드

Sets the error message for an invalid authentication.
public setError ( string $type, string $msg = null )
$type string The type of error (Horde_Auth::REASON_* constant).
$msg string The error message/reason for invalid authentication.
예제 #1
0
파일: Application.php 프로젝트: horde/horde
 /**
  * Sets the error message for an invalid authentication.
  *
  * @param string $type  The type of error (Horde_Auth::REASON_* constant).
  * @param string $msg   The error message/reason for invalid
  *                      authentication.
  */
 public function setError($type, $msg = null)
 {
     if ($this->_base) {
         $this->_base->setError($type, $msg);
     } else {
         parent::setError($type, $msg);
     }
 }
예제 #2
0
 /**
  */
 public function setError($type, $msg = null)
 {
     return $this->_base->setError($type, $msg);
 }