lithium\console\command\Create::_execute PHP Method

_execute() protected method

Execute the given sub-command for the current request.
protected _execute ( string $command ) : boolean
$command string The sub-command name. example: Model, Controller, Test
return boolean
    protected function _execute($command)
    {
        try {
            if (!($class = $this->_instance($command))) {
                return false;
            }
        } catch (ClassNotFoundException $e) {
            return false;
        }
        $data = array();
        $params = $class->invokeMethod('_params');
        foreach ($params as $i => $param) {
            $data[$param] = $class->invokeMethod("_{$param}", array($this->request));
        }
        if ($message = $class->invokeMethod('_save', array($data))) {
            $this->out($message);
            return true;
        }
        return false;
    }