public function _before() { $this->initUsedModel(); // $this->connection = common\connection::getConnection(); $this->cache = common\cache::getCache(); $this->rankCache = common\cache::getRankCache(); return true; }
public function __construct() { parent::__construct(); $this->cache = common\cache::getCache(); }
public static function getNextRunTime() { $cacheObj = common\cache::getCache(); if (!($ret = $cacheObj->get(self::$keyNextRunTime))) { $gameModel = self::getModel('gameModel'); $ret = $gameModel->getGame()[0]['nextRunTime']; } return $ret; }