As an action, jump to the given node (name).

@param string $name The node name where to jump to.

@return \PAGI\Node\NodeActionCommand
340943
public function jumpTo($name)
    {
        $this->action = self::NODE_ACTION_JUMP_TO;
        $this->data['nodeName'] = $name;
        return $this;
    }
965
public function getRouteDefinitionByName(string $name): RouteDefinition
    {
        if (!isset($this->routesByName[$name])) {
            throw new \InvalidArgumentException("Invalid route name '$name'");
        }

        return $this->getRouteDefinition($this->routesByName[$name]);
    }
417691
protected function _loadAction($name)
    {
        if (!isset($this->_actionInstances[$name])) {
            $config = $this->getConfig('actions.' . $name);

            if (empty($config)) {
                throw new ActionNotConfiguredException(sprintf('Action "%s" has not been mapped', $name));
            }

            $className = App::className($config['className'], 'Action', 'Action');
            if (empty($className)) {
                throw new MissingActionException('Could not find action class: ' . $config['className']);
            }

            $this->_actionInstances[$name] = new $className($this->_controller);
            unset($config['className']);
            $this->_actionInstances[$name]->setConfig($config);
        }

        return $this->_actionInstances[$name];
    }
925413
public function create($name)
    {
        $params = array(
            "tag" => array(
                "name" => $name
            )
        );
        $rst = $this->_request->post($this->_url . 'tags/create', $params);
        return $this->_client->rst($rst);
    }
1114595
protected final function add_jumpto($name, $label=null, $selected=LESSON_NEXTPAGE) {
        $title = get_string("jump", "lesson");
        if ($label === null) {
            $label = $title;
        }
        if (is_int($name)) {
            $name = "jumpto[$name]";
        }
        $this->_form->addElement('select', $name, $label, $this->_customdata['jumpto']);
        $this->_form->setDefault($name, $selected);
        $this->_form->addHelpButton($name, 'jumps', 'lesson');
    }
536411
public function action(string $name) : ActionDefiner
    {
        return new ActionDefiner($this->authSystem, $this->requiredPermissions, $name, function (IAction $action) {
            $this->actions[$action->getName()] = $action;
        });
    }
1293724
protected function getArg ($name)
	{
		
		// Work out which request arguments to use based on the request method
		
		switch ($this->action)
		{
			
			case 'get';
			case 'put':
				return $this->getURLArg ($name);
				break;
			
			case 'post';
			case 'delete':
				return $this->getPostArg ($name);
				break;
			
			default:
				return parent::getArg ($name);
				break;
			
		}
		
	}
188766
protected function translate($name)
    {
        preg_match_all('/^(?P<bundle>[^:]+):(?P<directory>[^:]*:)?(?P<file>.+)$/', $name, $matches, \PREG_SET_ORDER);

        foreach (['bundle', 'file'] as $offset) {
            if (empty($matches[0][$offset])) {
                throw new ViewException(sprintf('Invalid or missing "%s" node in view filename "%s"', $offset, $name));
            }
        }

        $placeholders = [
            '{bundle}' => $matches[0]['bundle'],
            '{file}' => $matches[0]['file'],
            '{directory}' => isset($matches[0]['directory']) ? str_replace(':', '\\', $matches[0]['directory']) : null,
        ];

        $file = strtr($this->pattern, $placeholders);
        $file = str_replace(array('\\', '_', '//'), '/', $file);

        return $file;
    }
637750
public function argument($name)
    {
        $input = $this->getInput();

        return (is_null($name)) ? $input->getArguments() : $input->getArgument($name);
    }
617255
public function find($name)
    {
        try {
            return parent::find($name);
        } catch (\InvalidArgumentException $e) {
            $this->shortcut = true;

            return parent::find('run');
        }
    }
1134460
private function resolveAction($name)
    {
        $info = $this->unresolvedActions[$name];
        $child = $this->createAction($name, $info['type'], $info['options']);
        $this->actions[$name] = $child;
        unset($this->unresolvedActions[$name]);

        return $child;
    }
1227391
public function getNode($name)
    {
        if ($name === 'localhost') {
            $node = new Node('localhost');
            $node->onLocalhost();
            return $node;
        }
        $nodes = $this->getNodes();

        return isset($nodes[$name]) ? $nodes[$name] : null;
    }
1019469
public function getHook(string $name): Hook
  {
    # Find hook in list
    foreach ($this->hooks as $hook)
    {
      if (\strcasecmp($name,$hook->getName()==0)) {
        return $hook;
      }
    }

    return null;
  }
78332
public function objectAction(string $name) : Action\ObjectActionDefiner
    {
        return new ObjectActionDefiner(
            $this->dataSource,
            $this->authSystem,
            $this->requiredPermissions,
            $name,
            function (IObjectAction $action) {
                $this->actions[$action->getName()] = $action;
            }
        );
    }
895321
public function option($name)
    {
        $input = $this->getInput();

        return (is_null($name)) ? $input->getOptions() : $input->getOption($name);
    }
730155
public function getPushHandler($name)
    {
        if (!$this->hasPushHandler($name)) {
            throw new \InvalidArgumentException(sprintf('A push handler named "%s" has not been registered.', $name));
        }

        return $this->pushHandlers[$name];
    }
332266
public function detachAction($name)
    {
        $actions = $this->getRequiredActions();

        foreach ($actions as $key => $action) {
            if ($action->getName() === $name) {
                unset($actions[$key]);
            }
        }

        $this->setOption(self::OPTION_REQUIRED_ACTIONS, $actions);
    }