public function runlevelToString($runlevel)
    {

        // flip the array with the string => integer runlevel definitions
        $runlevels = array_flip(Runlevels::singleton()->getRunlevels());
        if (isset($runlevels[$runlevel])) {
            return $runlevels[$runlevel];
        }

        // throw an exception if the runlevel is unknown
        throw new \Exception(sprintf('Request invalid runlevel to string conversion for %s', $runlevel));
    }
public function runlevelToString($runlevel)
    {

        // flip the array with the string => integer runlevel definitions
        $runlevels = array_flip(Runlevels::singleton()->getRunlevels());
        if (isset($runlevels[$runlevel])) {
            return $runlevels[$runlevel];
        }

        // throw an exception if the runlevel is unknown
        throw new \Exception(sprintf('Request invalid runlevel to string conversion for %s', $runlevel));
    }
public function runlevelToString ( $ runlevel ) { // flip the array with the string => integer runlevel definitions $ runlevels = array_flip ( Runlevels :: singleton ( ) -> getRunlevels ( ) ) ; if ( isset ( $ runlevels [ $ runlevel ] ) ) { return $ runlevels [ $ runlevel ] ; } // throw an exception if the runlevel is unknown throw new \ Exception ( sprintf ( 'Request invalid runlevel to string conversion for %s' , $ runlevel ) ) ; }
Translates and returns a string representation of the passed runlevel.

@param integer $runlevel The runlevel to return the string representation for

@return string The string representation for the passed runlevel

@throws \Exception Is thrown if the passed runlevel is not available
Translates and returns a string representation of the passed runlevel .