Back to index

d-push  2.0
Public Member Functions | Protected Attributes
AuthenticationRequiredException Class Reference
Inheritance diagram for AuthenticationRequiredException:
Inheritance graph
[legend]
Collaboration diagram for AuthenticationRequiredException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HTTPReturnCodeException ($message="", $code=0, $previous=NULL, $logLevel=false)
 ZPushException ($message="", $code=0, $previous=NULL, $logLevel=false)
 getHTTPCodeString ()
 getHTTPHeaders ()
 showLegalNotice ()

Protected Attributes

 $defaultLogLevel = LOGLEVEL_INFO
 $httpReturnCode = HTTP_CODE_401
 $httpReturnMessage = "Unauthorized"
 $httpHeaders = array('WWW-Authenticate: Basic realm="ZPush"')
 $showLegal = true

Detailed Description

Definition at line 44 of file authenticationrequiredexception.php.


Member Function Documentation

Definition at line 62 of file zpushexception.php.

                                        {
        return $this->httpReturnCode . " ". $this->httpReturnMessage;
    }

Definition at line 66 of file zpushexception.php.

                                     {
        return $this->httpHeaders;
    }
HTTPReturnCodeException::HTTPReturnCodeException ( message = "",
code = 0,
previous = NULL,
logLevel = false 
) [inherited]

Definition at line 49 of file httpreturncodeexception.php.

                                                                                                           {
        if ($code)
            $this->httpReturnCode = $code;
        parent::__construct($message, (int) $code, $previous, $logLevel);
    }

Definition at line 70 of file zpushexception.php.

                                      {
        return $this->showLegal;
    }
ZPushException::ZPushException ( message = "",
code = 0,
previous = NULL,
logLevel = false 
) [inherited]

Definition at line 51 of file zpushexception.php.

                                                                                                  {
        if (! $message)
            $message = $this->httpReturnMessage;

        if (!$logLevel)
            $logLevel = $this->defaultLogLevel;

        ZLog::Write($logLevel, get_class($this) .': '. $message . ' - code: '.$code);
        parent::__construct($message, (int) $code);
    }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from HTTPReturnCodeException.

Definition at line 45 of file authenticationrequiredexception.php.

AuthenticationRequiredException::$httpHeaders = array('WWW-Authenticate: Basic realm="ZPush"') [protected]

Reimplemented from ZPushException.

Definition at line 48 of file authenticationrequiredexception.php.

Reimplemented from ZPushException.

Definition at line 46 of file authenticationrequiredexception.php.

Reimplemented from ZPushException.

Definition at line 47 of file authenticationrequiredexception.php.

Reimplemented from HTTPReturnCodeException.

Definition at line 49 of file authenticationrequiredexception.php.


The documentation for this class was generated from the following file: