function init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable)
 {
     parent::init($currentControllerName, $currentControllerAction, $apiMethodToRequestDataTable);
     $this->setParametersToModify(array('date' => Piwik_Common::getRequestVar('date', 'last30', 'string')));
     $this->disableShowAllViewsIcons();
     $this->disableShowTable();
 }
示例#2
0
 /**
  * We ensure that the graph for a given Goal has a different ID than the 'Goals Overview' graph
  * so that both can display on the dashboard at the same time
  * @return null|string
  */
 public function getUniqueIdViewDataTable()
 {
     $id = parent::getUniqueIdViewDataTable();
     if (!empty($this->parametersToModify['idGoal'])) {
         $id .= $this->parametersToModify['idGoal'];
     }
     return $id;
 }