Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
5364cec7
Commit
5364cec7
authored
Aug 19, 2019
by
François Agneray
Browse files
#33
=> done
parent
d2c907ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Action/Search/SearchAction.php
View file @
5364cec7
...
@@ -211,7 +211,7 @@ final class SearchAction
...
@@ -211,7 +211,7 @@ final class SearchAction
* @param Dataset $dataset Represents the requested dataset
* @param Dataset $dataset Represents the requested dataset
* @param string[] $listOfIds The substring of the url (parameter a)
* @param string[] $listOfIds The substring of the url (parameter a)
*/
*/
private
function
select
(
QueryBuilder
$queryBuilder
,
Dataset
$dataset
,
array
$listOfIds
):
void
private
function
select
(
QueryBuilder
$queryBuilder
,
Dataset
$dataset
,
array
$listOfIds
):
array
{
{
$columns
=
array
();
$columns
=
array
();
$attributes
=
array
();
$attributes
=
array
();
...
@@ -236,7 +236,7 @@ final class SearchAction
...
@@ -236,7 +236,7 @@ final class SearchAction
{
{
$expressions
=
array
();
$expressions
=
array
();
foreach
(
$criteria
as
$criterion
)
{
foreach
(
$criteria
as
$criterion
)
{
$params
=
$params
=
explode
(
':'
,
$criterion
);
$params
=
$params
=
explode
(
':
:
'
,
$criterion
);
$attribute
=
$this
->
getAttribute
(
$dataset
,
(
int
)
$params
[
0
]);
$attribute
=
$this
->
getAttribute
(
$dataset
,
(
int
)
$params
[
0
]);
$column
=
$attribute
->
getTableName
()
.
'.'
.
$attribute
->
getName
();
$column
=
$attribute
->
getTableName
()
.
'.'
.
$attribute
->
getName
();
$columnType
=
$attribute
->
getType
();
$columnType
=
$attribute
->
getType
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment