Revert "* Add fetch api for screen preview chart data."
This reverts commit df96e69034.
This commit is contained in:
@@ -68,11 +68,11 @@ class screenModel extends model
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getByID($screenID, $year = '', $month = '', $dept = '', $account = '', $withChartData = true)
|
||||
public function getByID($screenID, $year = '', $month = '', $dept = '', $account = '')
|
||||
{
|
||||
$screen = $this->dao->select('*')->from(TABLE_SCREEN)->where('id')->eq($screenID)->fetch();
|
||||
if(!isset($screen->scheme) or empty($screen->scheme)) $screen->scheme = file_get_contents(__DIR__ . '/json/screen.json');
|
||||
if($withChartData) $screen->chartData = $this->genChartData($screen, $year, $month, $dept, $account);
|
||||
$screen->chartData = $this->genChartData($screen, $year, $month, $dept, $account);
|
||||
|
||||
return $screen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user