Returns the values of the specified tag. The doc comment
must be parsed with parseDocComment() before tags are
available.

@param string $tagName The tag name to retrieve the values for
@throws \RuntimeException
@return array The tag's values
334798
public function getTagValues($tagName)
    {
        if (!$this->isTaggedWith($tagName)) {
            throw new \RuntimeException('Tag "' . $tagName . '" does not exist.', 1169128255);
        }
        return $this->tags[$tagName];
    }
378891
public function getExtractorsForTable(string $tableName): array
    {
        if (!isset($this->tableExtractors[$tableName])) {
            return [];
        }
        $extractors = [];
        foreach ($this->tableExtractors[$tableName] as $tableExtractor) {
            if (!$this->extractorContainer->has($tableExtractor)) {
                throw new \RuntimeException('Could not get extractor ' . $tableExtractor);
            }
            $extractors[] = $extractor = $this->extractorContainer->get($tableExtractor);
            $this->logger->debug('Adding extractor ' . $extractor->name());
        }

        return $extractors;
    }
796074
private function getTags($reflection, string $tagName): array
    {
        if (!$reflection->getDocComment() || !trim($reflection->getDocComment())) {
            return [];
        }

        $context = (new ContextFactory())->createFromReflector($reflection);
        $docBlock = $this->docBlockFactory->create($reflection, $context);

        return $docBlock->getTagsByName($tagName);
    }
539616
public function getTagsByName(string $name): array
    {
        $result = [];

        /** @var Tag $tag */
        foreach ($this->getTags() as $tag) {
            if ($tag->getName() !== $name) {
                continue;
            }

            $result[] = $tag;
        }

        return $result;
    }
1069081
public function getPropertiesByTagName($tagName)
    {
        $properties = [];

        foreach ($this->properties as $property) {
            foreach ($property->tags as $tag) {
                if ($tag['name'] == $tagName) {
                    $properties[$property->name] = $property;
                }
            }
        }

        return $properties;
    }
352995
public function getBasicTagData($tagId)
    {
        try {
            return $this->innerGateway->getBasicTagData($tagId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
922717
public function getUrlByTag($tagName)
    {
        if (isset($this->urls[$tagName])) {
            return $this->urls[$tagName];
        } else {
            return null;
        }
    }
1056103
public function getTag($tag)
    {
        return isset($this->tags[$tag]) ? $this->tags[$tag] : null;
    }
610573
public function getPropertiesByTagName($tagName)
    {
        if (array_key_exists($tagName, $this->tags)) {
            return $this->tags[$tagName]['properties'];
        } else {
            throw new NoSuchPropertyException($tagName);
        }
    }
522229
public function getTagValue($tag)
	{
		if(!$this->hasTag($tag))
		{
			throw new \OutOfBoundsException('Tag ' . $tag . ' is not set');
		}
		
		if(empty($this->tags[$tag]))
		{
			throw new \OutOfBoundsException('Tag ' . $tag . ' does not have a value');
		}
		
		return $this->tags[$tag][0];
	}
1243977
public function getClassTagsValues($className)
    {
        if (!isset($this->reflectedClassNames[$className])) {
            $this->reflectClass($className);
        }
        if (!isset($this->classTagsValues[$className])) {
            return [];
        }
        return isset($this->classTagsValues[$className]) ? $this->classTagsValues[$className] : [];
    }
1036656
protected function parseArgumentName($argumentName) {
		if (!preg_match('@^\$?(\w+)$@', $argumentName, $matches)) {
			throw new \RuntimeException(sprintf("Invalid annotation expression found in %s __construct", $this->className));
		}
		
		return $matches[1];
	}
199820
public function hasTag($tagName) {
		return $this->tags->search($tagName, function (AbstractTag $tag, $query) {
			return $tag->getTagName() == $query;
		});
	}
631866
public function getTaggedComment( $tag, $xml = TRUE )
	{
		if( preg_match( '/<%--'.$tag.'(.*)--%>/sU', $this->template, $tag ) )
			return $xml ? $tag[0] : $tag[1];
		return NULL;
	}
1335504
public function get($name, array $vars = [])
	{
		$name = BBCode::normalizeName($name);
		$node = $this->xpath->query('//bbcode[@name="' . $name . '"]')->item(0);
		if (!($node instanceof DOMElement))
		{
			throw new RuntimeException("Could not find '" . $name . "' in repository");
		}

		// Clone the node so we don't end up modifying the node in the repository
		$node = $node->cloneNode(true);

		// Replace all the <var> descendants if applicable
		$this->replaceVars($node, $vars);

		// Now we can parse the BBCode usage and prepare the template.
		// Grab the content of the <usage> element then use BBCodeMonkey to parse it
		$usage    = $this->xpath->evaluate('string(usage)', $node);
		$template = $this->xpath->evaluate('string(template)', $node);
		$config   = $this->bbcodeMonkey->create($usage, $template);

		// Set the optional tag name
		if ($node->hasAttribute('tagName'))
		{
			$config['bbcode']->tagName = $node->getAttribute('tagName');
		}

		// Set the rules
		$this->addRules($node, $config['tag']);

		return $config;
	}
775194
public static function getContents($filename)
    {
        $file = fopen($filename, "r");

        if ($file === false) {
            throw new \RuntimeException("Cannot read the file: {$filename}");
        }

        $data = [];
        while ($row = fgetcsv($file)) {
            $data[] = $row;
        }

        fclose($file);

        return $data;
    }
52393
public static function getCustomAttribute( $tag, $attributeName )
    {
        foreach ( $tag->attributes as $attribute )
        {
            if ( $attribute->name === $attributeName
              && $attribute->namespaceURI === 'http://ez.no/namespaces/ezpublish3/custom/' )
            {
                return $attribute->value;
            }
        }
        return null;
    }