Returns rune icon URL.

@param int $rune_id

@return string
@throws SettingsException
554652
public static function getRuneIconUrl( int $rune_id ): string
	{
		self::checkInit();
		return self::getSetting(self::SET_ENDPOINT) . self::getSetting(self::SET_VERSION) . "/img/rune/{$rune_id}.png";
	}
1064116
function fetch_remote_icon_url() {
            $info = $this->fetch_module_info();

            return ( $this->is_api_result_object( $info, 'icon' ) && is_string( $info->icon ) ) ?
                $info->icon :
                '';
        }
1307492
public function getURL(\ElggEntity $entity, $size = '') {

		$icon = $this->getIconFile($entity, $size);
		if (!$icon->exists()) {
			return;
		}
		
		$key = get_site_secret();
		$guid = $entity->guid;
		$path = $icon->getFilename();

		$hmac = hash_hmac('sha256', $guid . $path, $key);

		$query = serialize(array(
			'uid' => $guid,
			'd' => ($entity instanceof \ElggUser) ? $entity->guid : $entity->owner_guid, // guid of the dir owner
			'dts' => ($entity instanceof \ElggUser) ? $entity->time_created : $entity->getOwnerEntity()->time_created,
			'path' => $path,
			'ts' => $entity->icontime,
			'mac' => $hmac,
		));

		$url = elgg_http_add_url_query_elements('mod/hypeApps/servers/icon.php', array(
			'q' => base64_encode($query),
		));

		return elgg_normalize_url($url);
	}
771321
public static function getSpellIconUrl( string $spell_name ): string
	{
		self::checkInit();
		return self::getSetting(self::SET_ENDPOINT) . self::getSetting(self::SET_VERSION) . "/img/spell/{$spell_name}.png";
	}
1005327
public function getRune($runeId, $data = null)
	{
		$params = $this->setUpParams('rune', $runeId, $data, 'runeListData', 'runeData');
		$array  = $this->makeRequest('rune', $runeId, $params);

		if ($this->appendId($runeId))
		{
			return new staticRune($array);
		}
		else
		{
			return new RuneList($array);
		}
	}
1354561
public function mediaGet($media_id){
        $param = array(
            'access_token' => $this->accessToken,
            'media_id'     => $media_id
        );

        $url = "{$this->mediaURL}/media/get?";
        return $url . http_build_query($param);
    }
1262033
public function getSLOurl($application_index = null)
    {
        $url = null;
        $idpData = $this->_settings->getIdPData();
        if (isset($idpData['singleLogoutService']) && isset($idpData['singleLogoutService'][$application_index]) && isset($idpData['singleLogoutService'][$application_index]['url'])) {
            $url = $idpData['singleLogoutService'][$application_index]['url'];
        }
        return $url;
    }
1253670
public static function getChampionIconUrl( string $champion_name ): string
	{
		self::checkInit();
		return self::getSetting(self::SET_ENDPOINT) . self::getSetting(self::SET_VERSION) . "/img/champion/{$champion_name}.png";
	}
749045
def get(self, id):
        
        id = utils.lowerFirst(id)
        if id in self._settings:
            return self._settings[id]
        raise NotFound('Invalid setting id: %s' % id)
1277302
public function createObjectSettingsAction($object_id)
    {
        $em = $this->getDoctrine()->getManager();
        $class_name = $this->container->getParameter('acs_settings.setting_class');

        // Get the object fields
        $object = $em->getRepository('ACSACSPanelBundle:Service')->find($object_id);
        $object_fields = $object->getType()->getFieldTypes();

        $user = $this->get('security.context')->getToken()->getUser();

        // Adding one form for each setting field
        foreach($object_fields as $id => $field_config){
            $setting = $em->getRepository('ACSACSPanelBundle:PanelSetting')->findOneBy(
                array(
                    'user' => $user->getId(),
                    'setting_key' => $field_config->getSettingKey(),
                    'focus' => 'object_setting',
                    'service' => $object,
                )
            );

            if (!count($setting)) {
                $setting = new $class_name;
                $setting->setSettingKey($field_config->getSettingKey());
                $setting->setValue($field_config->getDefaultValue());
                $setting->setContext($field_config->getContext());
                $setting->setLabel($field_config->getLabel());
                $setting->setType($field_config->getType());
                $setting->setFocus('object_setting');
                $setting->setService($object);
                $user->addSetting($setting);
                $em->persist($user);
                $em->flush();
            }
        }

        return $this->redirect($this->generateUrl('settings'));
    }
415864
public function getSettings($module_id, $key = null, $default = null)
    {
        $module = $this->get($module_id);

        if (empty($module['settings'])) {
            return $default;
        }

        if (!isset($key)) {
            return (array) $module['settings'];
        }

        $value = gplcart_array_get($module['settings'], $key);
        return isset($value) ? $value : $default;
    }
223409
public function getStaticRune( int $rune_id, string $locale = 'en_US', string $version = null ): StaticData\StaticRuneDto
	{
		$result = false;
		try
		{
			// Fetch StaticData from JSON files
			$result = DataDragonAPI::getStaticRune($rune_id, $locale, $version);
			if (!$result) throw new ServerException("StaticData failed to be loaded.");

			$this->result_data = $result;
		}
		catch (DataDragonExceptions\SettingsException $ex)
		{
			throw new SettingsException("DataDragon API was not initialized properly! StaticData endpoints cannot be used.");
		}
		catch (DataDragonExceptions\ArgumentException $ex)
		{
			throw new RequestException($ex->getMessage(), $ex->getCode());
		}
		finally
		{
			// Parse array and create instances
			return new StaticData\StaticRuneDto($result, $this);
		}
	}
1018356
private function getDocumentPath(string $id): string
    {
        return $this->getDirectoryPath($id).'.'.$this->format->getExtension();
    }
1250788
public static function getChampionIcon( string $champion_name, array $attributes = [] ): Html
	{
		self::checkInit();

		$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_ICON_CLASS),
			@self::getSetting(self::SET_CUSTOM_IMG_ATTRS, [])['class'],
			@$attributes['class'],
		]);
		$attrs['src'] = self::getChampionIconUrl($champion_name);

		return Html::el('img', $attrs);
	}
285934
protected function _get_detail_page_url( $user_id ) {
		$detail_keys = $this->_add_detail_url_field();
		$detail_keys = array_keys( $detail_keys );
		foreach ( $detail_keys as $key ) {
			$detail_url = get_the_author_meta( $key, $user_id );
			if ( $detail_url ) {
				return $detail_url;
			}
		}
	}
409414
private function _get_id_option(string $id_option = null): ?string
  {
    if ( !$id_option && !($id_option = $this->get_current()) ){
      return null;
    }
    if ( $id_option && !bbn\str::is_uid($id_option) ){
      $id_option = $this->opt->from_path(...\func_get_args());
    }
    if ( $id_option && bbn\str::is_uid($id_option) ){
      return $id_option;
    }
    return null;
  }
1117619
public static function getUrlByMenuId($menuId)
    {
        $record = static::find()
            ->findByMenuId($menuId)
            ->innerJoinWith('menuUrl')
            ->one();

        $return = [];
        if ($record) {
            $return = $record->getMenuUrlData();
        }

        return $return;
    }