function initializeFramework() { if (!$this->isInit()) { // setup request container $this->request = owa_coreAPI::requestContainerSingleton(); $this->_loadModules(); $this->_loadEntities(); $this->_loadMetrics(); $this->_loadDimensions(); $this->_loadFormatters(); $this->_loadApiMethods(); $this->_loadEventProcessors(); $this->setInit(); // setup current user $this->current_user = owa_coreAPI::supportClassFactory('base', 'serviceUser'); // the 'log_users' config directive relies on this being populated $this->current_user->setUserData('user_id', $this->request->state->get('u')); // load geolocation obj. $this->geolocation = owa_geolocation::getInstance(); } }
public static function getCurrentUrl() { $r = owa_coreAPI::requestContainerSingleton(); return $r->getCurrentUrl(); }