Registers a new node result to be taken into account when the given node
is ran.

@param string $name

@return NodeActionCommand
438152
public function registerResult($name)
    {
        $nodeActionCommand = new NodeActionCommand();
        if (!isset($this->nodeResults[$name])) {
            $this->nodeResults[$name] = array();
        }
        $this->nodeResults[$name][] = $nodeActionCommand;
        return $nodeActionCommand->whenNode($name);
    }
210683
protected function create_dc_node($name, $value = '')
    {
        if (empty($value)) {
            return;
        }
        $this->addChild($this->working_node, "dc:".$name, utf8_encode($value));
    }
348645
public static function create($name) {
    if (is_string($name)) {
      $name = NameNode::create($name);
    }
    /** @var ConstantNode $node */
    $node = new static();
    $node->addChild($name, 'constantName');
    return $node;
  }
237387
public function register($name)
    {
        $this->hook->action($name, function () {
            if (! $this->nonceValid()) {
                wp_send_json($this->getErrorMessage());
            }

            wp_send_json($this->run());
        })->dispatch();
    }
1042292
public function getActionName($name)
    {
        if (!isset($this->actionList[$name])) {
            $this->actionList[$name] = new Action($name);
        }

        return $this->actionList[$name];
    }
988935
public function addAction($key, $name, $href = null, array $params = null)
	{
		$this->addActionCheck($key);

		$href = $href ?: $key;

		if ($params === null) {
			$params = [$this->primary_key];
		}

		return $this->actions[$key] = new Column\Action($this, $href, $name, $params);
	}
132436
public function startWithNode($name, $nodes)
    {
        if (! is_array($nodes))
        {
            $nodes = array($nodes);
        }

        $parts = array();
        foreach ($nodes as $key => $node)
        {
            $fullKey = $name . '_' .$key;

            $parts[] = ":$fullKey";
            $this->set($fullKey, $node);
        }

        $parts = implode(', ', $parts);
        $this->start("$name = node($parts)");
        
        return $this;
    }
850796
public function setName($name)
    {
        $this->name = $name;
        if ($this->node) {
            $this->node->name = $name;
        }
    }
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;
    }
125172
private function configCommand(string $name) : Result
    {
        $cmd = (new Get($this->repo->getRoot()));
        $cmd->name($name);

        return $this->runner->run($cmd);
    }
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];
    }
728666
public function PushVar( $name )
	{
		$id = $this->NewReference();
		$this->_slots[] = new NameSlot( $id, $name );
		return $id;
	}
795186
public function register($name)
	{
		return $this->addCommand(new Command($name, $this->input, $this->output));
	}
201877
public function command($name, Closure $action)
    {
        return $this->on(self::getEvent($action), self::getChecker($name));
    }
1237807
public function register($name)
    {
        if (class_exists($name)) {
            $this->sidebars[] = $name;
        } else {
            throw new LogicException('Sidebar [' . $name . '] does not exist');
        }

        return $this;
    }
617198
public function register($name, $callback)
    {
        if (! isset($this->registered_menus[$name])) {
            $this->registered_menus[$name] = [];
        }

        $this->registered_menus[$name][] = $callback;

        return $this;
    }
340943
public function jumpTo($name)
    {
        $this->action = self::NODE_ACTION_JUMP_TO;
        $this->data['nodeName'] = $name;
        return $this;
    }