private function createReaction($id)
 {
     $key = "ReactionObject-{$id}";
     if ($this->cacheMgr->isCached($key)) {
         return $this->cacheMgr->load($key);
     } else {
         $object = new Reaction($id);
         $this->cacheMgr->save($key, $object, 3600);
         return $object;
     }
 }
 /**
  * Returns all columns of all rows from the systems table as an associative array keyed by systemID.
  * @param	none
  * @return	array
  */
 public function getAllSystems()
 {
     $key = __METHOD__ . "(" . implode(",", func_get_args()) . ")";
     if ($this->cacheMgr->isCached($key)) {
         $systems = $this->cacheMgr->load($key);
     } else {
         $sql = "SELECT systemID, systemName FROM {$this->dbPrefix}systems ORDER BY systemID ASC;";
         $query = $this->pdo->prepare($sql);
         $query->execute();
         if ($systems = $query->fetchAll(PDO::FETCH_KEY_PAIR)) {
             if (count($systems) > 0) {
                 $this->cacheMgr->save($key, $systems, 86400);
             }
         }
         $query->closeCursor();
         $query = null;
     }
     return $systems;
 }
 /**
  * Loads and returns the pages categories cached data.
  * @return PagesCategoriesCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'pages', 'categories');
 }
Пример #4
0
 /**
  * Loads and returns the menus cached data.
  * @return MenusCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'kernel', 'menus');
 }
 /**
  * Loads and returns the extended_fields cached data.
  * @return ExtendedFieldsCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'kernel', 'extended-fields');
 }
 /**
  * Loads and returns the bugtracker stats cached data.
  * @return BugtrackerStatsCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'bugtracker', 'stats');
 }
 /**
  * Loads and returns the administrator alert cached data.
  * @return AdministratorAlertCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'kernel', 'administrator-alert');
 }
 /**
  * Loads and returns the poll cached data.
  * @return PollMiniMenuCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'poll', 'minimenu');
 }
 /**
  * Loads and returns the unread contribution cached data.
  * @return UnreadContributionsCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'kernel', 'unread-contributions');
 }
Пример #10
0
 /**
  * Loads and returns the faq cached data.
  * @return FaqCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'module', 'faq');
 }
Пример #11
0
 /**
  * Loads and returns the groups cached data.
  * @return HtaccessFileCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'kernel', 'htaccess-file');
 }
 /**
  * Loads and returns the messages guestbook cached data.
  * @return GuestbookMessagesCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'guestbook', 'messages');
 }
Пример #13
0
 /**
  * Loads and returns the ranks cached data.
  * @return ForumRanksCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'forum', 'ranks');
 }
 /**
  * Loads and returns current month events cached data.
  * @return CalendarCurrentMonthEventsCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(__CLASS__, 'calendar', 'currentmonthevents');
 }
Пример #15
0
 /**
  * Loads and returns the categories cached data.
  * @return CategoriesCache The cached data
  */
 public static function load()
 {
     return CacheManager::load(get_called_class(), self::get_class()->get_module_identifier(), 'categories');
 }