Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
4014a4c0
Commit
4014a4c0
authored
9 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Support: appendTypo3Paramter(): added 'id' as Typo3 Parameter.
parent
b795dd8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qfq/helper/Support.php
+18
-13
18 additions, 13 deletions
qfq/helper/Support.php
with
18 additions
and
13 deletions
qfq/helper/Support.php
+
18
−
13
View file @
4014a4c0
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment