Commit 4014a4c0 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Support: appendTypo3Paramter(): added 'id' as Typo3 Parameter.

parent b795dd8b
......@@ -12,6 +12,21 @@ require_once(__DIR__ . '/Sanatize.php');
class Support {
/**
* @param array $queryArray Empty or prefilled assoc array with url parameter
*/
public static function appendTypo3ParameterToArray(array &$queryArray) {
if (isset($_GET['id']))
$queryArray['id'] = self::getCurrentPage();
if (isset($_GET['L']))
$queryArray['L'] = $_GET['L'];
if (isset($_GET['type']))
$queryArray['type'] = $_GET['type'];
}
/**
* @return string If exist content of $_GET[], otherwise the name of the first GET Parameter
* @throws CodeException
......@@ -27,20 +42,10 @@ class Support {
}
/**
* @param array $queryArray Empty or prefilled assoc array with url parameter
*/
public static function appendTypo3ParameterToArray(array &$queryArray) {
if (isset($_GET['L']))
$queryArray['L'] = $_GET['L'];
if (isset($_GET['type']))
$queryArray['type'] = $_GET['type'];
}
/**
* Builds a urlencoded query string of assoc array
* Builds a urlencoded query string of an assoc array.
*
* @param array $queryArray
* @return string
* @return string Querystring (e.g.: id=23&type=99
*/
public static function arrayToQueryString(array $queryArray) {
$items = array();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment