extension/ezjscore/classes/ezjscpacker.php
static function serverCallHelper( $strServerCall )
    {
        $server = ezjscServerRouter::getInstance( $strServerCall );
        if ( !$server instanceof ezjscServerRouter )
        {
            eZDebug::writeError( 'Not a valid ezjscServer function: ' . implode( '::', $strServerCall ), __METHOD__ );
            return null;
        }
        // Make sure the function is present on the class
        if ( !$server->hasFunction() )
        {
            eZDebug::writeError( 'Could not find function: ' . $server->getName() . '()', __METHOD__ );
            return null;
        }
        return $server;
    }
static function serverCallHelper( $strServerCall )
    {
        $server = ezjscServerRouter::getInstance( $strServerCall );
        if ( !$server instanceof ezjscServerRouter )
        {
            eZDebug::writeError( 'Not a valid ezjscServer function: ' . implode( '::', $strServerCall ), __METHOD__ );
            return null;
        }
        // Make sure the function is present on the class
        if ( !$server->hasFunction() )
        {
            eZDebug::writeError( 'Could not find function: ' . $server->getName() . '()', __METHOD__ );
            return null;
        }
        return $server;
    }
static function serverCallHelper ( $ strServerCall ) { $ server = ezjscServerRouter :: getInstance ( $ strServerCall ) ; if ( ! $ server instanceof ezjscServerRouter ) { eZDebug :: writeError ( 'Not a valid ezjscServer function: ' . implode ( '::' , $ strServerCall ) , __METHOD__ ) ; return null ; } // Make sure the function is present on the class if ( ! $ server -> hasFunction ( ) ) { eZDebug :: writeError ( 'Could not find function: ' . $ server -> getName ( ) . '()' , __METHOD__ ) ; return null ; } return $ server ; }
Helper function to get and validate server functions

@param string $strServerCall
@return ezjscServerRouter|null
Helper function to get and validate server functions