コード例 #1
0
	function OsimoData(){
		parent::OsimoModule();
		get('debug')->register('OsimoData',
			array(
				'events'=>false
			)
		);
		
		$this->init();
	}
コード例 #2
0
	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();
	}
コード例 #3
0
	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();
	}
コード例 #4
0
 /**
  * OsimoDB Constructor.
  *
  * @param Array $options (optional)
  */
 private function OsimoDB()
 {
     parent::OsimoModule(ConfigManager::instance()->get('database'));
     $this->autoconnect = true;
 }