@param string $name

@return Sample[]
348327
private function getSamples($name)
    {
        $data = $this->storage->getValues($name);
        $samples = [];
        foreach ($data as $row) {
            $samples[] = new Sample($name, $this->labelNames, $row[1], $row[0]);
        }

        return $samples;
    }
1157867
public function getElementsByName($name)
    {
        $found = array();
        foreach ($this->getRecursiveIterator() as $element) {
            if ($element->getName() == $name) {
                $found[] = $element;
            }
        }
        return $found;
    }
222613
public function getClasses($name)
    {
        $classes = array();
        $instanceDefinitions = $this->getInjectedDefinitions($name);

        foreach ($instanceDefinitions as $instanceDefinition) {
            if ($instanceDefinition->getClass()) {
                $classes[$instanceDefinition->getClass()] = true;
                continue;
            }

            $alias = $this->di->instanceManager()->getClassFromAlias($instanceDefinition->getName());
            $classes[$alias] = true;
        }

        return array_keys($classes);
    }
978437
public function getFieldsByName( $name )
	{
		$name	= strtolower( $name );
		if( isset( $this->fields[$name] ) )
			return $this->fields[$name];
		return array();
	}
272150
public function getAll($name)
    {
        $s = $this->getNormalizedHeaderName($name);
        $ret = [];
        if (!empty($this->headerMap[$s])) {
            foreach ($this->headerMap[$s] as $index) {
                $ret[] = $this->getByIndex($index);
            }
        }
        return $ret;
    }
466734
public function searchByName($name, $limit = 0)
    {
        if (!$name) {
            return [];
        }

        $selector = $this
            ->repository
            ->createQueryBuilder('i')
            ->innerJoin('i.names', 'n')
            ->where('LOWER(i.name) LIKE :name')
            ->orWhere('LOWER(n.name) LIKE :name')
            ->setParameter('name', preg_replace('/%+/', '%%', mb_strtolower($name, 'UTF-8')).'%')
            ->groupBy('i');

        if ($limit > 0) {
            $selector->setMaxResults($limit);
        }

        // get items
        return $selector
            ->getQuery()
            ->getResult();
    }
99183
public function children($name = null)
    {
        $child = $this->get($name);
        if (!$child) {
            return [];
        }
        return $child->_children;
    }
798243
public static function getOptions(string $name): array
    {
        if (isset(self::$options) && is_array(self::$options))
            return self::$options[$name];
        return [];
    }
188230
public function parse($name)
    {
        $segments = array_reverse(explode('_', $name));

        if ($segments[0] == 'table') {
            array_shift($segments);
        }

        return [
            'action' => $this->getAction($segments),
            'table' => $this->getTableName($segments)
        ];
    }
631915
public function allOf(string $name): array
    {
        $oid = AttributeType::attrNameToOID($name);
        $attribs = array_filter($this->_attribs,
            function (AttributeTypeAndValue $tv) use ($oid) {
                return $tv->oid() == $oid;
            });
        return array_values($attribs);
    }
99040
public function getAll($name = null)
    {
        if (!isset($name)) {
            $headers = [];
            foreach ($this->headers as $collection) {
                $headers = array_merge($headers, $collection);
            }

            return $headers;
        }

        $lowerName = strtolower($name);
        if (!array_key_exists($lowerName, $this->headers)) {
            return [];
        }

        return $this->headers[$lowerName];
    }
57015
protected function getParentClasses(string $name) : array
    {
        // Collect parent classes, ignoring transient (not-mapped) classes.
        $parentClasses = [];

        $parentClasses = $this->getReflectionService()
            ->getParentClasses($name);

        foreach (array_reverse($parentClasses) as $parentClass) {
            if ($this->getDriver()->isTransient($parentClass)) {
                continue;
            }

            $parentClasses[] = $parentClass;
        }

        return $parentClasses;
    }
1200181
public function get($name)
    {
        if (isset($this->files[$name])) {
            return [$this->files[$name]];
        }

        $results = [];
        foreach ($this->files as $key => $file) {
            if (strpos($key, "{$name}[") === 0) {
                $results[] = $file;
            }
        }

        return $results;
    }
319513
public function get($name)
	{
		$namespaced = $this->namespace.':'.$name;

		$queued   = $this->length($namespaced, 'list');
		$delayed  = $this->length($namespaced.':delayed', 'zset');
		$reserved = $this->length($namespaced.':reserved', 'zset');

		return array('queued' => $queued, 'delayed' => $delayed, 'reserved' => $reserved);
	}
1279785
public function getBlocks($name)
    {
        $result = array();

        if(isset($this->__blocks[$name])) {
            $result = $this->__blocks[$name];
        }

        return $result;
    }
350467
protected function getIndex(string $name = null): array
    {
        return self::query($this->db->createIndex($name ? $name : $this->tableName));
    }
578727
public function get($name)
    {
        if (!isset($this->storage[$name]))
        {
            $files = &$this->files();

            if (empty($files[$name]))
            {
                return [];
            }

            foreach ($this->keys($name) as $index => $value)
            {
                $this->simple($name, $index);
            }
        }

        return $this->storage[$name];
    }