Appends the cacheBuster string to the asset name, accounts for existing query strings

@param string $sAsset The asset's url to append
762896
protected function addCacheBuster($sAsset)
    {
        if ($this->sCacheBuster) {

            $aParsedUrl = parse_url($sAsset);

            if (empty($aParsedUrl['query'])) {

                $sAsset .= '?';

            } else {

                $sAsset .= '&';
            }

            $sAsset .= 'revision=' . $this->sCacheBuster;
        }

        return $sAsset;
    }
119984
public function renderFieldset(Fieldset $fieldset)
	{
		// Create a new renderer and render the content
		$fieldsetRenderer = new static($this->csrfProvider);

		// Generate all the content
		foreach ($fieldset as $item)
		{
			$fieldsetRenderer->render($item);
		}

		$content = $fieldsetRenderer->getRenderedForm();

		// Create the fieldset tag and add the content
		$tag = Html::tag('fieldset', $fieldset->getAttributes(), $content);

		// Make sure everything is added to the parent table
		$cell = new Table\Cell($tag);
		$cell->setAttributes(['colspan' => 2]);

		$this->table->addCell($cell);
		$this->table->addRow();

		return '';
	}
1142614
public function setCharset($charset) {
		if (!$this->isOpen) return;
		$this->charset=$charset;
		$this->conn1->set_charset($this->charset);
	}
567757
public function set_charset($charset)
	{
		// Make sure the database is connected
		$this->_connection or $this->connect();

		// Set Charset for SQL Server connection
		if (strtolower($this->driver_name()) == 'sqlsrv')
		{
			$this->_connection->setAttribute(\PDO::SQLSRV_ATTR_ENCODING, \PDO::SQLSRV_ENCODING_SYSTEM);
		}
		// Set Charset for SQLite connection
		elseif (strtolower($this->driver_name()) == 'sqlite')
		{
			// Execute a raw PRAGMA encoding query
			$this->_connection->exec('PRAGMA encoding = ' . $this->quote($charset));
		}
		// Set Charset for any connection except ODBC, as it throws exception
		elseif (strtolower($this->driver_name()) != 'odbc')
		{
			// Execute a raw SET NAMES query
			$this->_connection->exec('SET NAMES '.$this->quote($charset));
		}
	}
187449
protected function moveRegisterAssets($append = true) {
        foreach ($this->currentRegisterAssets as $key => $item) {
            if (empty($item)) {
                continue;
            }
            $this->registerAssets[$key] = $this->_mergeAssets($this->registerAssets[$key], $item, $append);
            $this->currentRegisterAssets[$key] = [];
        }
        return $this;
    }
413044
private function databaseSetBuilder($set)
    {

        $s = '';
        $arr = [];

        foreach ($set as $key => $value) {
            $s .= "$key = ?,";
            $arr[] = $value;
        }

        return [

            'content' => rtrim($s, ","),
            'array' => $arr,
        ];
    }
359210
protected function loadNailsBower($sAsset, $sForceType)
    {
        $sType = $this->determineType($sAsset, $sForceType);

        switch ($sType) {

            case 'CSS':

                $this->aCss['NAILS-BOWER-' . $sAsset] = NAILS_ASSETS_URL . $this->sBowerDir . $sAsset;
                break;

            case 'JS':

                $this->aJs['NAILS-BOWER-' . $sAsset] = NAILS_ASSETS_URL . $this->sBowerDir . $sAsset;
                break;
        }
    }
1176648
public function setCharset($charset)
    {
        $this->clearCachedValueIf($charset != $this->charset);
        $this->charset = $charset;
        if (isset($this->encoder)) {
            $this->encoder->charsetChanged($charset);
        }
    }
923547
public void addPageSet (@Nonnull final PLPageSet aPageSet)
  {
    ValueEnforcer.notNull (aPageSet, "PageSet");
    m_aPageSets.add (aPageSet);
  }
114759
public function refreshCharactersetCollation($characterSet, $collation)
    {
        $this->executeQuery('SET NAMES ' . $this->quote($characterSet) . ' COLLATE ' . $this->quote($collation));
        $this->overriddenParams['character_set'] = $characterSet;
        $this->overriddenParams['collation'] = $collation;
    }
667094
public function rewriteAssetFileUrls($sAssetFileContent, \AssetsBundle\AssetFile\AssetFile $oAssetFile){
        // Callback for url rewriting
        $oRewriteUrlCallback = array($this, 'rewriteUrl');
        return preg_replace_callback('/url\(([^\)]+)\)/', function ($aMatches) use ($oAssetFile, $oRewriteUrlCallback) {
            return call_user_func($oRewriteUrlCallback, $aMatches, $oAssetFile);
        }, $sAssetFileContent);
    }
444802
public function append(AssetTarget $target)
    {
        $name = $target->name();
        $this->indexed[$name] = $target;
        $this->items[] = $name;
    }
626681
protected function applicationForm(Fieldset $fieldset, Fluent $model): void
    {
        $fieldset->control('text', 'site_name')
            ->label(\trans('orchestra/foundation::label.name'))
            ->value(\data_get($model, 'site.name'))
            ->attributes(['autocomplete' => 'off']);
    }
364838
public void addSyslibset(final SystemLibrarySet libset) {
    if (isReference()) {
      throw super.noChildrenAllowed();
    }
    if (libset == null) {
      throw new NullPointerException("libset");
    }
    this.sysLibrarySets.addElement(libset);
  }
1182166
public function useAssetsPreset($preset_name = null)
    {
        $preset = $this->assets_loader->getPreset($preset_name);
        $preset->load();
    }
393495
protected function unloadNailsPackage($sAsset, $sForceType)
    {
        $sType = $this->determineType($sAsset, $sForceType);

        switch ($sType) {

            case 'CSS':

                unset($this->aCss['NAILS-PACKAGE-' . $sAsset]);
                break;

            case 'JS':

                unset($this->aJs['NAILS-PACKAGE-' . $sAsset]);
                break;
        }
    }
1092602
public function getAssetRelativePath($sAssetPath)
    {
        if (!($sAssetRealPath = $this->getOptions()->getRealPath($sAssetPath))) {
            throw new \InvalidArgumentException('File "' . $sAssetPath . '" does not exist');
        }

        //If asset is already a cache file
        $sCachePath = $this->getOptions()->getCachePath();
        return strpos($sAssetRealPath, $sCachePath) !== false ? str_ireplace(
                        array($sCachePath, '.less'), array('', '.css'), $sAssetRealPath
                ) : (
                $this->getOptions()->hasAssetsPath() ? str_ireplace(
                                array($this->getOptions()->getAssetsPath(), getcwd(), DIRECTORY_SEPARATOR), array('', '', '_'), $sAssetRealPath
                        ) : str_ireplace(
                                array(getcwd(), DIRECTORY_SEPARATOR), array('', '_'), $sAssetRealPath
                        )
                );
    }