Exemple #1
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'));
 }