Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
75167a1a
Commit
75167a1a
authored
Sep 03, 2012
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
9ed7cbbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_db.php
View file @
75167a1a
...
...
@@ -141,6 +141,11 @@ class tx_nG6_db {
// get all project analysis the usergroup can access to
if
(
$get_analyzes
)
{
if
(
$usergroup
!=
"0"
)
{
$where
=
'tx_nG6_project.uid IN ('
.
implode
(
","
,
$project_list_final
)
.
') AND tx_nG6_analyze.date BETWEEN '
.
$date_cursors
.
' AND '
.
$date_cursore
;
}
else
{
$where
=
'tx_nG6_analyze.date BETWEEN '
.
$date_cursors
.
' AND '
.
$date_cursore
;
}
$queryParts
=
array
(
'SELECT'
=>
'tx_nG6_analyze.uid as analyze_id'
,
'FROM'
=>
'tx_nG6_project '
...
...
@@ -151,11 +156,6 @@ class tx_nG6_db {
'ORDERBY'
=>
''
,
'LIMIT'
=>
''
);
if
(
$usergroup
!=
"0"
)
{
$where
=
'tx_nG6_project.uid IN ('
.
implode
(
","
,
$project_list_final
)
.
') AND tx_nG6_analyze.date BETWEEN '
.
$date_cursors
.
' AND '
.
$date_cursore
;
}
else
{
$where
=
'tx_nG6_analyze.date BETWEEN '
.
$date_cursors
.
' AND '
.
$date_cursore
;
}
$res
=
$GLOBALS
[
'TYPO3_DB'
]
->
exec_SELECT_queryArray
(
$queryParts
);
while
(
$res_row
=
$GLOBALS
[
'TYPO3_DB'
]
->
sql_fetch_assoc
(
$res
))
{
$current_size
+=
tx_nG6_db
::
get_analysis_size
(
$res_row
[
'analyze_id'
],
$data_folder
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment