コード例 #1
0
ファイル: GraphOAC.php プロジェクト: villos/tree_admin
 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);
         }
     }
 }
コード例 #2
0
 function getCacheId()
 {
     return array_merge(parent::getCacheId(), array(OA_Permission::getAccountId()));
 }