mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Remove dead code
This commit is contained in:
@@ -109,7 +109,6 @@ class module_console_taskrun extends Command
|
||||
);
|
||||
|
||||
$tmpTask = $task_manager->getTask($task_id, null);
|
||||
$taskname = $tmpTask->getName();
|
||||
unset($tmpTask);
|
||||
|
||||
if (($ttyloglevel = strtoupper($input->getOption('ttyloglevel'))) != '') {
|
||||
|
@@ -727,7 +727,7 @@ class module_report
|
||||
* effectue le mechanism de pagination
|
||||
* @param resultset $rs
|
||||
*/
|
||||
protected function calculatePages($rs)
|
||||
protected function calculatePages()
|
||||
{
|
||||
if ($this->nb_record && $this->total > $this->nb_record) {
|
||||
$this->previous_page = $this->nb_page - 1;
|
||||
@@ -843,7 +843,7 @@ class module_report
|
||||
//construct results
|
||||
$this->buildResult($this->app, $rs);
|
||||
//calculate prev and next page
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
//do we display navigator ?
|
||||
$this->setDisplayNav();
|
||||
//assign all variables
|
||||
|
@@ -131,7 +131,7 @@ class module_report_activity extends module_report
|
||||
|
||||
$this->result[] = $res;
|
||||
//calculate prev and next page
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
//display navigator
|
||||
$this->setDisplayNav();
|
||||
//set report
|
||||
@@ -251,7 +251,7 @@ class module_report_activity extends module_report
|
||||
|
||||
$this->total = sizeof($this->result);
|
||||
//calculate prev and next page
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
//do we display navigator ?
|
||||
$this->setDisplayNav();
|
||||
//set report
|
||||
@@ -357,7 +357,6 @@ class module_report_activity extends module_report
|
||||
|
||||
$this->setChamp($rs);
|
||||
$this->setDisplay($tab);
|
||||
$save_date = "";
|
||||
$total = array('tot_doc' => 0, 'tot_prev' => 0, 'tot_dl' => 0);
|
||||
$i = -1;
|
||||
|
||||
@@ -398,7 +397,7 @@ class module_report_activity extends module_report
|
||||
$this->result[$nb_row]['preview'] = '<b>' . $total['tot_prev'] . '</b>';
|
||||
$this->result[$nb_row]['total'] = '<b>' . $total['tot_dl'] . '</b>';
|
||||
}
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -482,7 +481,7 @@ class module_report_activity extends module_report
|
||||
$this->result[$i][$on] = '<b>TOTAL</b>';
|
||||
}
|
||||
//calculate prev and next page
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
//do we display navigator ?
|
||||
$this->setDisplayNav();
|
||||
//set report
|
||||
@@ -609,7 +608,7 @@ class module_report_activity extends module_report
|
||||
'<b>' . p4string::format_octets($total['poidprev']) . '</b>';
|
||||
}
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -653,7 +652,6 @@ class module_report_activity extends module_report
|
||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
$save_id = "";
|
||||
foreach ($rs as $row) {
|
||||
$kttd = 'top_ten_doc';
|
||||
$kttp = 'top_ten_poiddoc';
|
||||
@@ -692,7 +690,6 @@ class module_report_activity extends module_report
|
||||
$result[$kttpp][$id]['id'] = $id;
|
||||
}
|
||||
}
|
||||
$save_id = $id;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
@@ -96,7 +96,6 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
|
||||
public function __construct(Application $app, $sbasid, $sbas_collection, $dmin, $dmax)
|
||||
{
|
||||
$this->app = $app;
|
||||
$conn = connection::getPDOConnection($app, $sbasid);
|
||||
$this->dmin = $dmin;
|
||||
$this->dmax = $dmax;
|
||||
$this->dminsql = $this->dateToSqlDate('dmin');
|
||||
|
@@ -142,7 +142,7 @@ class module_report_nav extends module_report
|
||||
}
|
||||
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -200,7 +200,7 @@ class module_report_nav extends module_report
|
||||
$this->report['legend'][] = $row['os'];
|
||||
}
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -261,7 +261,7 @@ class module_report_nav extends module_report
|
||||
}
|
||||
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -320,7 +320,7 @@ class module_report_nav extends module_report
|
||||
$this->report['legend'][] = $row['combo'];
|
||||
}
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -401,7 +401,7 @@ class module_report_nav extends module_report
|
||||
$this->report['legend'][] = $appli;
|
||||
}
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -475,7 +475,7 @@ class module_report_nav extends module_report
|
||||
_('report:: Information sur l\'utilisateur %s'), $login
|
||||
);
|
||||
}
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
@@ -566,7 +566,7 @@ class module_report_nav extends module_report
|
||||
|
||||
$this->result = $rs;
|
||||
$this->total = sizeof($this->result);
|
||||
$this->calculatePages($rs);
|
||||
$this->calculatePages();
|
||||
$this->setDisplayNav();
|
||||
$this->setReport();
|
||||
|
||||
|
@@ -84,7 +84,6 @@ class module_report_question extends module_report
|
||||
|
||||
protected function buildResult(Application $app, $rs)
|
||||
{
|
||||
$tab = array();
|
||||
$i = 0;
|
||||
foreach ($rs as $row) {
|
||||
if ($this->enable_limit && ($i > $this->nb_record))
|
||||
|
Reference in New Issue
Block a user