예제 #1
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_BlogFeed
  */
 function OA_Dashboard_Widget_Audit($aParams)
 {
     parent::OA_Dashboard_Widget($aParams);
     $aConf = $GLOBALS['_MAX']['CONF'];
     $this->oTpl = new OA_Admin_Template('dashboard/audit.html');
     $this->oTrans = new OX_Translation();
 }
예제 #2
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_BlogFeed
  */
 function __construct($aParams)
 {
     parent::__construct($aParams);
     $aConf = $GLOBALS['_MAX']['CONF'];
     $this->oTpl = new OA_Admin_Template('dashboard/audit.html');
     $this->oTrans = new OX_Translation();
 }
예제 #3
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_Feed
  */
 function OA_Dashboard_Widget_Graph($aParams)
 {
     parent::OA_Dashboard_Widget($aParams);
     $this->oTrans = new OX_Translation();
     $gdAvailable = extension_loaded('gd');
     $this->draw = $gdAvailable && !empty($aParams['draw']);
     $this->setDummyData();
     $this->oTpl = new OA_Admin_Template($this->draw ? 'passthrough.html' : 'dashboard/graph.html');
     $this->oTpl->setCacheId($this->getCacheId());
     $this->oTpl->assign('extensionLoaded', $gdAvailable);
 }
예제 #4
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @param string $title
  * @param string $url
  * @param int $posts
  * @return OA_Dashboard_Widget_Feed
  */
 function __construct($aParams, $title, $url, $posts = 6, $siteTitle = null, $siteUrl = null)
 {
     parent::__construct($aParams);
     $this->title = $title;
     $this->url = $url;
     $this->posts = $posts;
     $this->siteTitle = $siteTitle;
     $this->siteUrl = $siteUrl;
     $this->oTpl = new OA_Admin_Template('dashboard/feed.html');
     $this->oTpl->setCacheId($this->title);
     $this->oTpl->setCacheLifetime(new Date_Span('0-1-0-0'));
 }
예제 #5
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget
  */
 function OA_Dashboard_Widget_Reload($aParams)
 {
     parent::OA_Dashboard_Widget($aParams);
     if (isset($aParams['url'])) {
         if ($aUrl = @parse_url(stripslashes($aParams['url']))) {
             $aUrl['protocol'] = $aUrl['scheme'];
             if (empty($aUrl['path'])) {
                 $aUrl['path'] = '/';
             }
             if (!empty($aUrl['query'])) {
                 $aUrl['path'] .= '?' . $aUrl['query'];
             }
             $this->aUrl = $aUrl;
         }
     }
     if (empty($this->aUrl)) {
         $this->aUrl = $GLOBALS['_MAX']['CONF']['oacDashboard'];
     }
 }
예제 #6
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_Campaign_Overview
  */
 function __construct($aParams)
 {
     parent::__construct($aParams);
     $this->oTpl = new OA_Admin_Template('dashboard/campaign-overview.html');
 }
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_Campaign_Overview
  */
 function OA_Dashboard_Widget_CampaignOverview($aParams)
 {
     parent::OA_Dashboard_Widget($aParams);
     $this->oTpl = new OA_Admin_Template('dashboard/campaign-overview.html');
 }