Implements getAssetUrl function

@param string $key
@return string
961826
public static function getAssetUrl($key)
  {
    $root =  __DIR__
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'assets'
      . DIRECTORY_SEPARATOR .static::getType();
    return sprintf('%s%s%s.tpl', $root, DIRECTORY_SEPARATOR, $key);
  }
468757
public function getFile($key)
    {
        if (isset($this->files[$key])) {
            return $this->files[$key];
        }

        return null;
    }
763602
public function getAdditionalUrlParam($key)
	{
		$result = isset($this->_additionalUrlParams[$key]) ? $this->_additionalUrlParams[$key] : null;

		return $result;
	}
295139
protected function getCache($key) {
        $cached = ArrayHelper::getValue($this->cachedData, $key);
        if (!isset($cached)) {
            $cacheData = $this->resolveCacheComponent()->get($this->cacheKeyName);
            $cached = $this->cachedData[$key] = ArrayHelper::getValue($cacheData, $key);
        }
        return $cached;
    }
1123109
public function &get($key)
    {
        if (array_key_exists($key, $this->extras)) {
            return $this->extras[$key];
        }

        return parent::get($key);
    }
1134845
private function getEnv($key)
    {
        $key = strtoupper(str_replace('-', '_', $key));

        if (strpos($key, 'BOLT_') !== 0) {
            $key = 'BOLT_' . $key;
        }

        return getenv($key);
    }
126849
protected function getUrlForKey($key)
    {
        return isset($this->urls[$key]) ? $this->urls[$key] : null;
    }
115955
public function get(string $key): string
    {
        return $this->handle->hGet($this->name, $key);
    }
307495
public function get($key)
    {
        $this->checkForKey($key);

        return $this->cache->get($this->path.$key);
    }
851511
public function getAttribute($key)
    {
        $this->findUploadFields();

        if ($this->isUploadField($key)) {
            list($method, $originalKey) = $this->uploadGetKeys[$key];

            $value = $this->getAttribute($originalKey);

            if ($this->hasGetMutator($key)) {
                return $this->mutateAttribute($key, $value);
            }

            return $this->{$method}($originalKey, $value);
        }

        return parent::getAttribute($key);
    }
506315
public function offsetGet($key){
        $raw = parent::offsetGet($key);
        return is_callable($raw) ? call_user_func($raw) : $raw;
    }
267543
public function getFolderFrom($key)
    {
        if (array_key_exists($key, $this->allowedImageFolders)) {
            return $this->allowedImageFolders[$key];
        }

        return false;
    }
843435
function &offsetget($key) {
		if (Base::instance()->visible($this,$key))
			$val=&$this->$key;
		else
			$val=&$this->get($key);
		return $val;
	}
362431
public static function getEnv($key)
    {
        switch (true) {
            case array_key_exists($key, $_ENV):
                return $_ENV[$key];
            case array_key_exists($key, $_SERVER);
                return $_SERVER[$key];
            default:
                return getenv($key);
        }
    }
281408
public function get(string $key)
    {
        if (!isset($this->data[$key])) {
            return null;
        }

        $struct = $this->data[$key];

        if ($struct->ttl !== null) {
            $expire = \time() + $struct->ttl;
            if ($struct->expire < $expire) {
                $struct->expire = $expire;
                $this->queue->insert([$key, $struct->expire], -$struct->expire);
            }
        }

        return $struct->data;
    }
1099319
protected function getAsString($key)
    {
        $this->checkForNonEmptyKey($key);

        return trim((string)$this->get($key));
    }
531759
protected function getContext($key)
    {
        if (GC_CLI) {
            return gplcart_array_get($this->context, $key);
        }

        return $this->session->get("install.context.$key");
    }