protected function typeToSystemType($type)
    {
        /*
        'emergency' => 7,
        'alert'     => 6,
        'critical'  => 5,
        'error'     => 4,
        'warning'   => 3,
        'notice'    => 2,
        'info'      => 1,
        'debug'     => 0,
         */
        switch ($type) {
            case 'emergency':
                $type = LOG_EMERG;
                break;
            case 'alert':
                $type = LOG_ALERT;
                break;
            case 'critical':
                $type = LOG_CRIT;
                break;
            case 'error':
                $type = LOG_ERR;
                break;
            case 'warning':
                $type = LOG_WARNING;
                break;
            case 'notice':
                $type = LOG_NOTICE;
                break;
            case 'info':
                $type = LOG_INFO;
                break;
            default:
            case 'debug':
                $type = LOG_DEBUG;
                break;
        }

        return $type;
    }
protected function typeToSystemType($type)
    {
        /*
        'emergency' => 7,
        'alert'     => 6,
        'critical'  => 5,
        'error'     => 4,
        'warning'   => 3,
        'notice'    => 2,
        'info'      => 1,
        'debug'     => 0,
         */
        switch ($type) {
            case 'emergency':
                $type = LOG_EMERG;
                break;
            case 'alert':
                $type = LOG_ALERT;
                break;
            case 'critical':
                $type = LOG_CRIT;
                break;
            case 'error':
                $type = LOG_ERR;
                break;
            case 'warning':
                $type = LOG_WARNING;
                break;
            case 'notice':
                $type = LOG_NOTICE;
                break;
            case 'info':
                $type = LOG_INFO;
                break;
            default:
            case 'debug':
                $type = LOG_DEBUG;
                break;
        }

        return $type;
    }
protected function typeToSystemType ( $ type ) { /*
        'emergency' => 7,
        'alert'     => 6,
        'critical'  => 5,
        'error'     => 4,
        'warning'   => 3,
        'notice'    => 2,
        'info'      => 1,
        'debug'     => 0,
         */ switch ( $ type ) { case 'emergency' : $ type = LOG_EMERG ; break ; case 'alert' : $ type = LOG_ALERT ; break ; case 'critical' : $ type = LOG_CRIT ; break ; case 'error' : $ type = LOG_ERR ; break ; case 'warning' : $ type = LOG_WARNING ; break ; case 'notice' : $ type = LOG_NOTICE ; break ; case 'info' : $ type = LOG_INFO ; break ; default : case 'debug' : $ type = LOG_DEBUG ; break ; } return $ type ; }
Converts the passed type to systems log type and returns
this type.

@param string $type The type to convert to systems log type.

@author Benjamin Carl <opensource@clickalicious.de>
@return integer The systems log type
@access protected
Converts the passed type to systems log type and returns this type .