setError() public method

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.
Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 /**
  */
 public function setError($type, $msg = null)
 {
     return $this->_base->setError($type, $msg);
 }