Generate the url parameter sequence used to pass this configuration to the editor.

@return html endocode sequence of configuration parameters
182699
public String getUrlParams()
   {
      StringBuffer osParams = new StringBuffer();

      for (Iterator i = this.entrySet().iterator(); i.hasNext();)
      {
         Map.Entry entry = (Map.Entry)i.next();
         if (entry.getValue() != null)
            osParams.append("&" + encodeConfig(entry.getKey().toString()) + "="
               + encodeConfig(entry.getValue().toString()));
      }
      return osParams.toString();
   }
275503
protected function addConfigParameterNode()
    {
    	$builder = new TreeBuilder();
    	$node = $builder->root('config');
    
    	$node
    		->treatTrueLike(array('form' => array(
    			'type' => "ASF\WebsiteBundle\Form\Type\ConfigType",
    			'name' => 'website_config_type'
    		)))
    		->treatFalseLike(array('form' => array(
    			'type' => "ASF\WebsiteBundle\Form\Type\ConfigType",
    			'name' => 'website_config_type'
    		)))
    		->addDefaultsIfNotSet()
    		->children()
    			->arrayNode('form')
    				->addDefaultsIfNotSet()
    				->children()
    					->scalarNode('type')
    						->defaultValue('ASF\WebsiteBundle\Form\Type\ConfigType')
    					->end()
    					->scalarNode('name')
    						->defaultValue('website_config_type')
    					->end()
    					->arrayNode('validation_groups')
    						->prototype('scalar')->end()
    						->defaultValue(array("Default"))
    					->end()
    				->end()
    			->end()
    		->end()
    	;
    
    	return $node;
    }
355300
public function compileUrl()
    {
        $append = '';
        if (count($this->compiledValues) > 0) {
            $append = implode('', $this->compiledValues);
        }

        return $this->name.$append;
    }
1258070
protected String defaultActionHtmlEnd() {

        StringBuffer result = new StringBuffer(2048);
        result.append(dialogEnd());
        result.append(bodyEnd());
        result.append(htmlEnd());
        return result.toString();
    }
657585
public String getEffectiveUrl() {
        StringBuilder url = new StringBuilder(this.getUrlPrefix());
        url.append(this.getRepositoryPath());
        char propertyDelim = getPropertyDelimiter();
        for (String propertyName : getProperties().stringPropertyNames()) {
            String value = getProperties().getProperty(propertyName);
            if (value == null) {
                continue;
            }
            if (LocalJcrDriver.PASSWORD_PROPERTY_NAME.equals(propertyName)) {
                value = StringUtil.createString('*', value.length());
            }
            url.append(propertyDelim).append(propertyName).append('=').append(value);
            propertyDelim = '&';
        }
        return url.toString();
    }
29259
protected function generatePickerUrl()
    {
        $parameter = [
            'fieldType'    => $this->fieldType,
            'sourceName'   => $this->sourceName,
            'modelId'      => ModelId::fromModel($this->dataContainer->getModel())->getSerialized(),
            'orderField'   => $this->orderField,
            'propertyName' => $this->name
        ];

        if ($this->pickerOrderProperty && $this->pickerSortDirection) {
            $parameter = \array_merge(
                $parameter,
                [
                    'orderProperty' => $this->pickerOrderProperty,
                    'sortDirection' => $this->pickerSortDirection
                ]
            );
        }

        return System::getContainer()->get('contao.picker.builder')->getUrl('cca_tree', $parameter);
    }
686755
protected function generateUpdateUrl()
    {
        $request = System::getContainer()->get('request_stack')->getCurrentRequest();

        $configPicker = new PickerConfig(
            'cca_tree',
            [
                'fieldType'    => $this->fieldType,
                'sourceName'   => $this->sourceName,
                'modelId'      => ModelId::fromModel($this->dataContainer->getModel())->getSerialized(),
                'orderField'   => $this->orderField,
                'propertyName' => $this->name
            ],
            $this->valueToWidget($this->value)
        );

        return System::getContainer()->get('router')->generate(
            'cca_dc_general_tree_update',
            [
                'picker' => $configPicker->cloneForCurrent((string) $request->query->get('context'))->urlEncode()
            ],
            UrlGenerator::ABSOLUTE_URL
        );
    }
399252
public function createWebConfig()
    {
        $content = <<<TEXT
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.webServer>
        <security>
            <requestFiltering>
                <hiddenSegments applyToWebDAV="false">
                    <add segment="silverstripe-cache" />
                    <add segment="composer.json" />
                    <add segment="composer.lock" />
                </hiddenSegments>
                <fileExtensions allowUnlisted="true" >
                    <add fileExtension=".ss" allowed="false"/>
                    <add fileExtension=".yml" allowed="false"/>
                </fileExtensions>
            </requestFiltering>
        </security>
        <rewrite>
            <rules>
                <rule name="SilverStripe Clean URLs" stopProcessing="true">
                    <match url="^(.*)$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
TEXT;

        $path = $this->getPublicDir() . 'web.config';
        $this->writeToFile($path, $content, true);
    }
1100678
public String getEncodedUrl() {
		if (method.equals(HttpMethod.GET)) {
			UrlBuilder builder = new UrlBuilder(url);
			for (String name : getParams().keySet()) {
				builder.addParameter(name, getParams().get(name));
			}
			return builder.toString();
		} else {
			return url;
		}
	}
407767
public function generateHTML() {
        //create blocktrail pub key QR codes if not already done
        if (!$this->blocktrailPubKeyQRs) {
            $this->processBlocktrailPubKeys();
        }
        $pubKeysHtml = "";
        foreach ($this->blocktrailPubKeyQRs as $pubKey) {
            $pubKeysHtml .= "<img src='{$pubKey['qr']}' />";
        }
        $totalPubKeys = count($this->blocktrailPubKeyQRs);

        $backupInfo = $this->prepareBackupInfo();
        $extraInfo = $this->prepareExtraInfo();

        $passwordEncryptedSecret = null;
        if (isset($this->backupInfo['encrypted_secret'])) {
            $passwordEncryptedSecret = $this->backupInfo['encrypted_secret'];
        }

        $html = self::renderTemplate(__DIR__ . "/../resources/templates/recovery_sheet.html.php", [
            'identifier' => $this->identifier,
            'totalPubKeys' => $totalPubKeys,
            'pubKeysHtml' => $pubKeysHtml,
            'backupInfo' => $backupInfo,
            'extraInfo' => $extraInfo,
            'passwordEncryptedSecret' => $passwordEncryptedSecret,
            'options' => $this->options,
        ]);

        return $html;
    }
266327
public String getHtmlFieldParam()
    {
        String strFieldName = this.getScreenField().getSFieldParam(null, false);

        if (this.getScreenField().getParentScreen() instanceof GridScreen)
        { // These are command buttons such as "Form" or "Detail"
            GridScreen gridScreen = (GridScreen)this.getScreenField().getParentScreen();
            Record record = gridScreen.getMainRecord();
            try {
                Object objBookmark = record.getHandle(DBConstants.OBJECT_ID_HANDLE);
                if (objBookmark == null)
                    objBookmark = record.getHandle(DBConstants.BOOKMARK_HANDLE);
                if (objBookmark != null)
                    strFieldName = strFieldName + '@' + objBookmark.toString();
            } catch (DBException ex)    {
                ex.printStackTrace();
            }
        }

        try {
            strFieldName = URLEncoder.encode(strFieldName, DBConstants.URL_ENCODING);
        } catch (java.io.UnsupportedEncodingException ex) {
            ex.printStackTrace();
        }
        return strFieldName;
    }
982873
public String [] getParamNames() {
		Vector<String> v = new Vector<>();
		// Get the params names from the query
		SortedSet<String> pns = this.getParamNameSet(HtmlParameter.Type.url);
		Iterator<String> iterator = pns.iterator();
		while (iterator.hasNext()) {
			String name = iterator.next();
			if (name != null) {
				v.add(name);
			}
		}
		if (getRequestHeader().getMethod().equalsIgnoreCase(HttpRequestHeader.POST)) {
			// Get the param names from the POST
			pns = this.getParamNameSet(HtmlParameter.Type.form);
		    iterator = pns.iterator();
		    while (iterator.hasNext()) {
				String name = iterator.next();
		        if (name != null) {
		        	v.add(name);
		        }
				
			}
		}
		String [] a = new String [v.size()];
		v.toArray(a);
		return a;
	}
812370
protected Map<String,String> initializeAdditionalParameters()
    {
        //get configuration
        Map<String,String> configuration=this.getConfiguration();

        //get property part
        String propertyPart=this.getPropertyPart();
        
        //get prefix
        String prefix=FaxJob2HTTPRequestConverterConfigurationConstants.ADDITIONAL_PARAMETER_PROPERTY_KEY_PREFIX.toString();
        prefix=MessageFormat.format(prefix,propertyPart);

        //init output
        Map<String,String> additionalParametersMap=new HashMap<String,String>();
        
        Iterator<Entry<String,String>> iterator=configuration.entrySet().iterator();
        Entry<String,String> entry=null;
        String key=null;
        String value=null;
        while(iterator.hasNext())
        {
            //get next entry
            entry=iterator.next();
            
            //get next key
            key=entry.getKey();
            
            if(key!=null)
            {
                //format key
                key=MessageFormat.format(key,propertyPart);
                key=key.trim();
                
                if(key.length()>0)
                {
                    //check if additional parameter key
                    if(key.startsWith(prefix))
                    {
                        //get value
                        value=entry.getValue();
                        
                        if(value!=null)
                        {
                            value=value.trim();
                            if(value.length()>0)
                            {
                                //get updated key without prefix
                                key=key.substring(prefix.length());
                                
                                //put in map
                                additionalParametersMap.put(key,value);
                            }
                        }
                    }
                }
            }
        }
        
        return additionalParametersMap;
    }
220556
private function generateUrl(): string
    {
        static $re = '/\%5B\d+\%5D/m';
        static $subst = '%5B%5D';

        $query = [];
        /**
         * @var IArgument
         */
        foreach ($this->arguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->mergeableArguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->stackableArguments as $key => $value) {
            $query[$key] = $value->toArray();
        }

        $queryArg = http_build_query($query, null, '&', PHP_QUERY_RFC3986);

        $fullUrl = $this->routeUrl() . '?' . preg_replace($re, $subst, $queryArg);

        return $fullUrl;
    }
660450
public function setFromUrl()
    {
        // Cache?
        $cacheRebuild = true;
        if ($this->options->cache) {
            $cacheKey = md5($this->get());
            $cacheData = $this->cache->get($cacheKey);

            if (!empty($cacheData)) {
                $cacheRebuild = false;
                $this->set($cacheData);
            }
        }

        // Get dom
        if ($cacheRebuild) {
            $dom = new \PHPHtmlParser\Dom;
            $dom->load($this->url, $this->PHPHtmlParserOptions);
            $element = $dom->find($this->selector)[0];

            if (!empty($element)) {
                // Filter?
                if (!empty($this->filter->selector)) {
                    $newElement = new \PHPHtmlParser\Dom;
                    $newElement->load($element->outerHtml, $this->PHPHtmlParserOptions);
                    $filter = $newElement->find($this->filter->selector);

                    if (!empty($filter)) {
                        $i = 0;
                        foreach ($filter as $item) {
                            if ($i >= $this->filter->length) {
                                $item->delete();
                            }
                            $i++;
                        }
                    }
                    unset($filter);

                    $html = $newElement->outerHtml;

                } else {
                    $html = $element->outerHtml;
                }

                $this->set($html);

                if ($this->options->cache && !empty($cacheKey)) {
                    $this->cache->set($cacheKey, $html);
                }
            }
        }

        return $this;
    }
770238
protected String getTemplateUrl() {
        return "web/" + getClass().getPackage().getName().replace(".", "/") + "/"
                + StringUtils.uncapitalize(getClass().getSimpleName()) + ".fsp";
    }
869604
public function generate()
	{
		$html = array();

		foreach ($this->properties as $property => $value):
			if (is_array($value)):
				foreach ($value as $_value) {
					$html[] = strtr(
						static::OPENGRAPH_TAG,
						array(
							'[property]' => static::OPENGRAPH_PREFIX . $property,
							'[value]'    => $_value
						)
					);
				}
			else:
				$html[] = strtr(
					static::OPENGRAPH_TAG,
					array(
						'[property]' => static::OPENGRAPH_PREFIX . $property,
						'[value]'    => $value
					)
				);
			endif;
		endforeach;

		return implode(PHP_EOL, $html);
	}