Commit edc6689e authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 12b96285
......@@ -561,22 +561,6 @@ class tx_nG6_eid {
print '1'; // already access to the project
}
}
} elseif($type == 'get_size_per_group'){
$usergroup = intVal(trim(t3lib_div::_GP('usergroup')));
$data_folder = trim(t3lib_div::_GP('data_folder'));
$get_analyzes = false;
if(trim(t3lib_div::_GP('get_analyzes')) == '1'){
$get_analyzes = true;
}
$get_cumulatives = false;
if(trim(t3lib_div::_GP('get_cumulatives')) == '1'){
$get_cumulatives = true;
}
$size_tab = tx_nG6_db::get_size($usergroup, $data_folder, $get_analyzes, $get_cumulatives, 0);
$encode_size_tab = json_encode($size_tab);
print $encode_size_tab;
} elseif($type == 'runs_table') {
$smarty = new Smarty();
......@@ -702,6 +686,20 @@ class tx_nG6_eid {
$by = trim(t3lib_div::_GP('by'));
$role = trim(t3lib_div::_GP('role'));
print json_encode(tx_nG6_db::select_projects_evolution($values, $by, $role));
} elseif($type == 'get_size_per_group'){
$usergroup = intVal(trim(t3lib_div::_GP('usergroup')));
$data_folder = trim(t3lib_div::_GP('data_folder'));
$get_analyzes = false;
if(trim(t3lib_div::_GP('get_analyzes')) == '1'){
$get_analyzes = true;
}
$get_cumulatives = false;
if(trim(t3lib_div::_GP('get_cumulatives')) == '1'){
$get_cumulatives = true;
}
$size_tab = tx_nG6_db::get_size($usergroup, $data_folder, $get_analyzes, $get_cumulatives, 0);
$encode_size_tab = json_encode($size_tab);
print $encode_size_tab;
}
}
......
Markdown is supported
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