function OsimoData(){ parent::OsimoModule(); get('debug')->register('OsimoData', array( 'events'=>false ) ); $this->init(); }
public function OsimoPaths(){ parent::OsimoModule(); $config = array( 'site_folder' => ConfigManager::instance()->get('site_folder') ); $this->set_options($config); $this->site_folder = $this->parseFolderPath($this->site_folder); $this->site_root = $_SERVER['DOCUMENT_ROOT'].$this->site_folder; $this->init(); }
function OsimoCache(){ parent::OsimoModule(); try{ $config = ConfigManager::instance()->get('cache'); $this->set_options($config); } catch (Exception $e) { $this->enabled = false; } /* Register the cache debugging defaults */ get('debug')->register('OsimoCache',array( 'events'=>false )); if(class_exists('Memcache')){ $this->memcache = new Memcache; } else{ $this->enabled = false; } $this->init(); }
/** * OsimoDB Constructor. * * @param Array $options (optional) */ private function OsimoDB() { parent::OsimoModule(ConfigManager::instance()->get('database')); $this->autoconnect = true; }