NavigatorCell::fetchItems()

@param mixed $name
@return void
438069
private function fetchItems($name)
    {

        $event = new Event("Navigator.{$name}", $this, []);
        $this->eventManager()->dispatch($event);
        
        return $event->data;
    }
1105552
public function findOrFail($name)
    {
        $result = $this->find($name);

        if (is_null($result)) {
            throw new CollectionItemNotFoundException(sprintf('Collection item "%s" not found', $name));
        }

        return $result;
    }
528220
public function selectChild($name) {
			// The data we want was not found:
			if (isset($this->stack[$this->index]->value[$name]) === false) {
				return false;
			}

			$this->stack[$this->index + 1] = (object)[
				'key' =>	$name,
				'value' =>	&$this->stack[$this->index]->value[$name]
			];
			$this->index++;

			return true;
		}
170470
public function get(string $name)
    {
        if (!isset($this->_data[$name])) {
            return null;
        }

        return $this->_data[$name];
    }
1061628
public static function fetchByName( $name )
    {
        $result = parent::fetchObject( self::definition(), null, array( 'name' => $name ) );
        return $result;
    }
914512
public function getHooks($name = null)
    {
        if ($name == null) {
            return $this->hooks;
        }
        return isset($this->hooks[$name]) ? $this->hooks[$name] : array();
    }
1355347
public function getItem($name)
    {
        if (func_num_args() > 1)
            $name = func_get_args();

        $info  = $this->getItemData($name);
        $class = $info['class'];

        return new $class();
    }
438640
public function getItem($name)
    {
        $items = $this->getItems();
        if ( ! $this->hasItem($name)) {
            throw new Exception(
                'Bad Item [' . $name . '] for smart property 
                [' . $this->getManager()->getController() . '][' . $this->getName() . ']');
        }

        return $items[$name];
    }
18116
public function get( $name )
	{
		if ($this->offsetExists($name))
		{
			return $this->items[$name];
		}
		return $this->itemsGetUndefined;
	}
58694
public function getItem($name, $default = null)
    {
        if (empty($this->_items[$name])) {
            $this->_items[$name] = $default;
        }
        $item = &$this->_items[$name];
        if (is_array($item) || is_null($item)) {
            $item = $this->createItem($name, $item ?: []);
        }

        return $item;
    }
297581
public function &__get($name)
    {
        if (!Arr::keyExists($this->data, $name))
        {
            $this->data[$name] = null;
        }

        return $this->data[$name];
    }
729444
public function __getData(string $name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
443223
public function fetch($name)
    {
        return $this->get($name, function($instance, $name) {
            $collection = [$instance];
            $this->schema()->embed($collection, $name);
            return isset($this->_data[$name]) ? $this->_data[$name] : null;
        });
    }
1333054
public function getMenuItems($name, $lang)
    {
        /** @var MenuItem $menuRepo */
        $arrayResult = $this->repository->getMenuItemsForLanguage($name, $lang);

        // Make sure the parent item is not offline
        $foundIds = array();
        foreach ($arrayResult as $array) {
            $foundIds[] = $array['id'];
        }
        foreach ($arrayResult as $key => $array) {
            if (!is_null($array['parent']) && !in_array($array['parent']['id'], $foundIds)) {
                unset($arrayResult[$key]);
            }
        }

        return $arrayResult;
    }
304881
protected function loadData(string $name)
	{
		if (isset($this->data[$name])) return $this->data[$name];
		else return null;
	}
162492
public function execute($name, AnCommandContext $context)
    {
        $parts = explode('.', $name);

        //for any before if the item has been fetched
        //then try to fetch it
        if ($parts[0] == 'before') {
            return $this->_mixer->fetchEntity($context);
        }
    }
1239753
protected function referenceLookup(/*# string */ $name)
    {
        if ($this->hasDelegator()) {
            // get delegator recursively
            $delegator = $this->getDelegator(true);
            $val = $delegator->get($name);
        } else {
            $val = $this->getReference($name);
        }
        return $val;
    }