src/Web/Result.php
protected function ApiStatus2InternalStatus($status)
    {
        switch ($status) {
            case Api::Success:
                return self::Status_Success;
            case Api::Errors:
                return self::Status_Errors;
            case Api::Warnings:
                return self::Status_Warnings;
            case Api::Exception:
            default:
                return self::Status_Exception;
        }
    }
protected function ApiStatus2InternalStatus($status)
    {
        switch ($status) {
            case Api::Success:
                return self::Status_Success;
            case Api::Errors:
                return self::Status_Errors;
            case Api::Warnings:
                return self::Status_Warnings;
            case Api::Exception:
            default:
                return self::Status_Exception;
        }
    }
protected function ApiStatus2InternalStatus ( $ status ) { switch ( $ status ) { case Api :: Success : return self :: Status_Success ; case Api :: Errors : return self :: Status_Errors ; case Api :: Warnings : return self :: Status_Warnings ; case Api :: Exception : default : return self :: Status_Exception ; } }
Returns the corresponding internal status.

@param $status
The status as returned by the API.

@return int
The corresponding internal status.
Returns the corresponding internal status .