function OA_Dashboard_Widget_GraphOAP($aParams) { parent::OA_Dashboard_Widget_Graph($aParams); $this->oTpl->setCacheLifetime(new Date_Span('0-3-0-0')); if ($this->isDataRequired()) { $this->setData($this->getStats()); } }
function OA_Dashboard_Widget_GraphOAC($aParams) { parent::OA_Dashboard_Widget_Graph($aParams); $this->oTpl->setCacheLifetime(new Date_Span('0-8-0-0')); if (!$this->oTpl->is_cached()) { $oDashboard = new OA_Central_Dashboard(); if ($aData = $oDashboard->getCommunityStats()) { $this->setData($aData); } } }