Returns summoner spell icon from API static-data SummonerSpell object in img
HTML TAG.

@param StaticSummonerSpellDto $summonerSpell
@param array                  $attributes

@return Html
@throws SettingsException
966474
public static function getSummonerSpellIconO( StaticSummonerSpellDto $summonerSpell, array $attributes = [] ): Html
	{
		return self::getSpellIcon($summonerSpell->id, $attributes);
	}
745093
public function setIconAttributes($attributes)
    {
        if (! is_array($attributes)) {
            $attributes = [$attributes];
        }

        $this->icon_attributes = $attributes;

        return $this;
    }
596394
protected function getGroupIcon(AttributeInterface $attribute, array $groupPath, $level)
    {
        $fieldsetPath = $this->getFieldsetPath($groupPath, $level);
        $family = $attribute->getFamily();

        $transKeys = [
            "eav.family.{$family->getCode()}.group.{$fieldsetPath}.icon",
            "eav.group.{$fieldsetPath}.icon",
        ];

        return $this->tryTranslate($transKeys, []);
    }
344318
protected function infoByNames(array $names)
	{
		if (count($names) > 40)
		{
			throw new ListMaxException('this request can only support a list of 40 elements, '.count($names).' given.');
		}
		$nameList = implode(',', $names);

		// clean the name
		$nameList  = htmlspecialchars($nameList);
		$array     = $this->request('summoner/by-name/'.$nameList);
		$summoners = [];

		if ( ! empty($array))
		{
			foreach ($array as $name => $info)
			{
				$summoner               = $this->attachStaticDataToDto(new Dto\Summoner($info));
				$this->summoners[$name] = $summoner;
				$summoners[$name]       = $summoner;
			}
		}

		return $summoners;
	}
395029
public static function getStaticSummonerSpell( string $summonerspell_key, string $locale = 'en_US', string $version = null ) : array
	{
		$data = self::getStaticSummonerSpells($locale, $version);
		if (isset($data['data'][$summonerspell_key]) == false)
			throw new ArgumentException('Summoner spell with given key was not found.', 404);

		return $data['data'][$summonerspell_key];
	}
320018
protected function getHTMLNodeInner($node, $xml, $settings)
    {
        $node->setAttribute('data-no-glow', 'no-glow');
        $node->appendChild($inner = $xml->createElement('div', 'item-icon-inner'));
        $inner->appendChild(
            $icon = $xml->createElement('div', 'app-icon' . (empty($this->innerClass) ? '' : ' ' . $this->innerClass))
        );
        $icon->appendChild(
            $xml->createElement(
                'div',
                [
                    'class' => 'image',
                    'style' => $this->icon ? 'background-image:url(\'' . $this->icon->getUrl() . '\')' : ''
                ]
            )
        );
        $icon->appendChild($xml->createElement('div', ['class' => 'background']));
        $this->applyLinkToNode($xml, $icon, $settings);
        $inner->appendChild($xml->createElement('div', ['class' => 'title', 'text' => $this->title]));
    }
1336282
public static function getProfileIconO( SummonerDto $summoner, array $attributes = [] ): Html
	{
		return self::getProfileIcon($summoner->profileIconId, $attributes);
	}
1372831
public static function script($text, array $attributes = [], $type = 'text/javascript')
    {
        return static::openTag('script',
            array_merge($attributes, ['type' => $type])).
            ' /*<![CDATA[*/ '.$text.' /*]]>*/ '.
            static::closeTag('script');
    }
864124
public function vote(TokenInterface $token, $object, array $attributes)
    {
        // check if class of this object is supported by this voter
        if (!is_null($object) && $this->supportsClass(get_class($object))) {
            $class = get_class($object);
            /** @var AccessDecisionManagerInterface $accessDecisionManager */
            $accessDecisionManager = $this->decisionManager;
            foreach ($this->mapAttributesToRoles($class, $attributes) as $mappedAttr) {
                if ($accessDecisionManager->decide($token, array($mappedAttr), $object)) {
                    return VoterInterface::ACCESS_GRANTED;
                }
            }
        }

        return VoterInterface::ACCESS_ABSTAIN;
    }
178310
public static function getStaticSummonerSpells( string $locale = 'en_US', string $version = null ) : array
	{
		$url = self::getStaticDataFileUrl(self::STATIC_SUMMONERSPELLS, null, $locale, $version);
		return self::loadStaticData($url, [DataDragonAPI::class, "_summonerSpell"]);
	}
827676
protected static function _summonerSpell( string $url, array $data )
	{
		$url = $url . self::STATIC_SUMMONERSPELLS_BY_KEY;
		$data_by_key = $data;
		$data_by_key['data'] = [];

		array_walk($data['data'], function( $d ) use (&$data_by_key) {
			$data_by_key['data'][(int)$d['key']] = $d;
		});
		self::saveSataicData(md5($url), $data_by_key);
	}
100568
public static function attrsToHtml(array $attributes)
    {
        $attrs = [];

        foreach ($attributes as $key => $value) {
            $element = is_numeric($key) ?
                (string)$value :
                (is_null($value) ? (string)$key : $key . '="' . e($value) . '"');
            if (!empty($element)) {
                $attrs[] = $element;
            }
        }

        return count($attrs) ? ' ' . implode(' ', $attrs) : '';
    }
420153
public function Subscriber_Get_Id($attributes) {
        try {
            $ret = $this->Subscriber_Lookup($attributes);
            $uri = $ret->uri;
            $id = (int) substr(strrchr($uri, '/'), 1);
        } catch (\Exception $e) {
            if( $e->getCode() === 404){
                $id = false;
            } else {
                throw $e;
            }
        }

        return $id;
    }
1032787
public static function getChampionLoading( string $champion_name, int $skin = 0, array $attributes = [] ): Html
	{
		$attrs = array_merge([ 'alt' => $champion_name ], self::getSetting(self::SET_CUSTOM_IMG_ATTRS, []), $attributes);
		$attrs['class'] = implode(' ', [
			self::getSetting(self::SET_DEFAULT_CLASS),
			self::getSetting(self::SET_CHAMP_LOADING_CLASS),
			@self::getSetting(self::SET_CUSTOM_IMG_ATTRS, [])['class'],
			@$attributes['class'],
		]);
		$attrs['src'] = self::getChampionLoadingUrl($champion_name, $skin);

		return Html::el('img', $attrs);
	}
212217
public function prepare_renderable_emoticon(stdClass $emoticon, array $attributes = array()) {
        $stringmanager = get_string_manager();
        if ($stringmanager->string_exists($emoticon->altidentifier, $emoticon->altcomponent)) {
            $alt = get_string($emoticon->altidentifier, $emoticon->altcomponent);
        } else {
            $alt = s($emoticon->text);
        }
        return new pix_emoticon($emoticon->imagename, $alt, $emoticon->imagecomponent, $attributes);
    }
1143998
private function buildScriptTag($attributes){
        $amdScript = '<script id="' . self::LOADER_ID . '" ';
        foreach($attributes as $attr => $value) {
            $amdScript .= $attr . '="' . \tao_helpers_Display::htmlize($value) . '" ';
        }
        return trim($amdScript) . '></script>';
    }
914324
public static function getChampionSplashO( StaticChampionDto $champion, int $skin = 0, array $attributes = [] ): Html
	{
		return self::getChampionSplash($champion->id, $skin, $attributes);
	}