Esempio n. 1
0
 function __construct()
 {
     // Get cache object.
     $oCache = CCache::inject($this);
     $oCache->addMethod('add', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('removeOneActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('removeActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('deleteActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * Construct
  * @param type $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_me = CFactory::getUser();
 }