public function exec($arguments) {
        //parse
        $options = $this->parse();

        // check if help was requested
        if(is_integer($options)) {
            return $options;
        }

        // extract and remove special vars
        $instance = $options["__instance"];
        $method   = $options["__method"];

        unset($options["__instance"]);
        unset($options["__method"]);

        // execute action - print error on failure
        try {
            return (int)Misc::reflectionFunction([ $instance, $method ], self::adjustOptions($options));
        }
        catch(Exception $e) {
            return $this->printError($e->getMessage());
        }
    }
public function exec($arguments) {
        //parse
        $options = $this->parse();

        // check if help was requested
        if(is_integer($options)) {
            return $options;
        }

        // extract and remove special vars
        $instance = $options["__instance"];
        $method   = $options["__method"];

        unset($options["__instance"]);
        unset($options["__method"]);

        // execute action - print error on failure
        try {
            return (int)Misc::reflectionFunction([ $instance, $method ], self::adjustOptions($options));
        }
        catch(Exception $e) {
            return $this->printError($e->getMessage());
        }
    }
public function exec ( $ arguments ) { //parse $ options = $ this -> parse ( ) ; // check if help was requested if ( is_integer ( $ options ) ) { return $ options ; } // extract and remove special vars $ instance = $ options [ "__instance" ] ; $ method = $ options [ "__method" ] ; unset ( $ options [ "__instance" ] ) ; unset ( $ options [ "__method" ] ) ; // execute action - print error on failure try { return ( int ) Misc :: reflectionFunction ( [ $ instance , $ method ] , self :: adjustOptions ( $ options ) ) ; } catch ( Exception $ e ) { return $ this -> printError ( $ e -> getMessage ( ) ) ; } }
Forwards the call to parsed module name and action

See class documentation for details.
Forwards the call to parsed module name and action