Пример #1
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();
 }
Пример #2
0
 /**
  * The class constructor
  *
  * @param array $aParams The parameters array, usually $_REQUEST
  * @return OA_Dashboard_Widget_Feed
  */
 function __construct($aParams)
 {
     parent::__construct($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);
 }
Пример #3
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'));
 }
Пример #4
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');
 }