Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param
  * @return
  */
 function __construct()
 {
     global $ilSetting;
     $news_set = new ilSetting("news");
     $news_set->get("acc_cache_mins");
     parent::__construct("ServicesNews", "News", true);
     $this->setExpiresAfter($news_set->get("acc_cache_mins") * 60);
     if ((int) $news_set->get("acc_cache_mins") == 0) {
         self::$disabled = true;
     }
 }