示例#1
0
文件: Users.php 项目: wappr/ticklr
 public function __construct(LoggerInterface $logger)
 {
     $this->dbh = parent::getDb();
     $this->logger = $logger;
     $this->permissions = new Permissions($this->logger);
     $this->config = parent::loadConfig('users');
 }
示例#2
0
文件: Logger.php 项目: wappr/ticklr
 public function __construct()
 {
     $config = $this->config = parent::loadConfig('logger');
     $this->logLevelThreshold = constant('\\Wappr\\Ticklr\\log\\LogLevel::' . $config['threshold']);
 }
示例#3
0
文件: Cache.php 项目: wappr/ticklr
 /**
  * Check to see if the directory already exists, if it doesn't, create it
  * 
  * @param type $class
  * @return boolean
  */
 protected static function checkDir($class)
 {
     $config = parent::loadConfig('cache');
     $classDir = $config['cache_directory'] . DS . $class;
     if (!file_exists($classDir)) {
         return mkdir($classDir);
     } else {
         return true;
     }
 }