Generate the items of a certain locator.

@access protected

@param string $locator_name Name of the locator.
@return array $items Items generated by this locator.
965113
protected function generate_locator_items( $locator_name ) {
		$locator = Carbon_Breadcrumb_Locator::factory( $locator_name );
		$items   = $locator->generate_items();

		if ( $items ) {
			return $items;
		}

		return array();
	}
405395
function extract($property_name)
	{
		$result = [];
		foreach($this->_value as $x)
			$result[] = $x->get($property_name);

		return self::factory($result);
	}
946073
function fetchCollection($class_name = "stdClass")
    {
        /* backward compatibility, you can use object instead of class name */
        if (is_object($class_name)) {
            $class_name = get_class($class_name);
        }

        return $this->fetchAll(DB::FETCH_CLASS, $class_name);
    }
1282126
public function selectCollection($db_name, $collection_name)
    {
        $db = new Db((String) $db_name, $this);
        $collection = $db->selectCollection($collection_name);

        return $collection;
    }
1187672
public function items(callable $itemCallback = null)
    {
        $items = $this->items;
        uasort($items, [ $this, 'sortItemsByPriority' ]);

        $itemCallback = isset($itemCallback) ? $itemCallback : $this->itemCallback;
        foreach ($items as $item) {
            if ($itemCallback) {
                $itemCallback($item);
            }
            $GLOBALS['widget_template'] = $item->template();
            yield $item->ident() => $item;
            $GLOBALS['widget_template'] = '';
        }
    }
430550
private function makeLocators(array $config): array
    {
        $locators = [];

        foreach ($config as $name => $binding) {
            if (is_string($binding)) {
                $target = $this->factory->make($binding);
            } else {
                $target = $binding->resolve($this->factory);
            }

            $locators[$name] = $target;
        }

        return $locators;
    }
611763
def getItemLocals(item):
    '''
    

    '''
    for name in dir(item):
        try:
            valu = getattr(item, name, None)
            yield name, valu
        except Exception:
            pass
438069
private function fetchItems($name)
    {

        $event = new Event("Navigator.{$name}", $this, []);
        $this->eventManager()->dispatch($event);
        
        return $event->data;
    }
1107670
public function get( $name )
	{
		$name = self::normalizeKey($name);
		if(parent::offsetExists($name))
		{
			return $this->items[$name];
		}
		return $this->itemsGetUndefined;
	}
18116
public function get( $name )
	{
		if ($this->offsetExists($name))
		{
			return $this->items[$name];
		}
		return $this->itemsGetUndefined;
	}
218847
protected function retrieve_items() {
        global $DB;
        if ($this->items !== null) {
            return;
        }
        $this->prepare_sql_courses();
        $this->prepare_sql_items();
        $this->items = $DB->get_records_sql($this->sql, $this->params);
        $this->itemkeys = array_keys($this->items);
        if ($this->items) {
            // Find the name of the first key of the item - usually 'id' but can be something different.
            // This must be a unique identifier of the item.
            $firstitem = reset($this->items);
            $firstitemarray = (array)$firstitem;
            $this->idfield = key($firstitemarray);
        }
    }
18273
public function getConfigByName($config_name)
    {
        if ($this->isSingle()) {
            if (isset($this->containers['config'])) {
                return $this->containers['config']->get($config_name);
            }
        }
        return [];
    }
505119
protected function loadCollector($name, array $params = null) {
		$locator = $this->getCollectorsLocator();
		
		try {
			return $locator->get(ucfirst($name), $params);
		} catch (Exception $exception) {
			$this->pushException($exception);
		}
	}
911256
protected function getModelList($model_name)
    {
        /*
         * Here we need to make sure that we have all of the fields that we want to
         * have shown, if the visible field is not currently set we should grab
         * the fillable fields so we can populate the table on the view.
         */
        $model = $this->findModel($model_name, null);

        /*
         * We need to get the fields for the model, so use the model we newed up
         * above and grab the Visible field first, if it's not set then grab
         * the fillable fields.
         */
        $field_names = !empty($model->getVisible()) ?
            $model->getVisible() :
            $model->getFillable();
        // Paginate the results to plan for lots of items within the database.
        $desired_objects = $model::paginate(50);

        // Inject a quick form for deleting the objects.

        return view('warden::view-models')
            ->with('field_names', ($field_names))
            ->with('models', $desired_objects)
            ->with('model_name', $model_name);
    }
685539
public function generateGatheringItems()
    {
        $configuredDataSources = $this->getConfiguredGatheringDataSources();
        $items = array();
        foreach ($configuredDataSources as $configuration) {
            $dataSource = $configuration->getGatheringDataSourceObject();
            $dataSourceItems = $dataSource->createGatheringItems($configuration);
            $items = array_merge($dataSourceItems, $items);
        }

        // now we loop all the items returned, and assign the batch to those items.
        $agiBatchTimestamp = time();
        $db = Loader::db();
        foreach ($items as $it) {
            $it->setGatheringItemBatchTimestamp($agiBatchTimestamp);
            $it->setAutomaticGatheringItemSlotWidth();
            $it->setAutomaticGatheringItemSlotHeight();
        }

        // now, we find all the items with that timestamp, and we update their display order.
        $agiBatchDisplayOrder = 0;
        $r = $db->Execute('select gaiID from GatheringItems where gaID = ? and gaiBatchTimestamp = ? order by gaiPublicDateTime desc', array($this->getGatheringID(), $agiBatchTimestamp));
        while ($row = $r->FetchRow()) {
            $db->Execute('update GatheringItems set gaiBatchDisplayOrder = ? where gaiID = ?', array($agiBatchDisplayOrder, $row['gaiID']));
            ++$agiBatchDisplayOrder;
        }

        $date = Loader::helper('date')->getOverridableNow();
        $db->Execute('update Gatherings set gaDateLastUpdated = ? where gaID = ?', array($date, $this->gaID));
    }
442227
public function fetchObject($class_name = 'stdClass', array $ctor_args = array()) {
		$obj = $this->fetch(PDO::FETCH_OBJ);
		if($class_name == 'stdClass') {
			$res = $obj;
		}
		else {
			$res = $this->populateObject($obj, $class_name, $ctor_args);
		}

		return $res;
	}
122110
public function getOr( $name, $default_value )
	{
		if ($this->offsetExists($name))
		{
			return $this->items[$name];
		}
		return Helper::value($default_value);
	}