"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/base/classes/service.php" between
Open-Web-Analytics-1.6.9.tar.gz and Open-Web-Analytics-1.7.0.tar.gz

About: Open Web Analytics (OWA) is web analytics software to track and analyze how people use your web sites and applications.

service.php  (Open-Web-Analytics-1.6.9):service.php  (Open-Web-Analytics-1.7.0)
skipping to change at line 95 skipping to change at line 95
$this->geolocation = owa_geolocation::getInstance(); $this->geolocation = owa_geolocation::getInstance();
} }
} }
function setBrowscap($b) { function setBrowscap($b) {
$this->browscap = $b; $this->browscap = $b;
} }
function getBrowscap() { function getBrowscap( $ua = '') {
if (empty($this->browscap)) { if (empty($this->browscap)) {
$this->browscap = owa_coreAPI::supportClassFactory('base', 'browscap
', $this->request->getServerParam('HTTP_USER_AGENT')); if ( ! $ua ) {
$ua = $this->request->getServerParam('HTTP_USER_AGENT');
}
$this->browscap = owa_coreAPI::supportClassFactory('base', 'browscap
', $ua);
} }
return $this->browscap; return $this->browscap;
} }
function _loadModules() { function _loadModules() {
$present_modules = owa_coreAPI::getPresentModules();
$am = owa_coreAPI::getActiveModules(); $am = owa_coreAPI::getActiveModules();
foreach ($am as $k => $v) { foreach ($am as $k => $v) {
$m = owa_coreAPI::moduleClassFactory($v); if ( in_array( $v, $present_modules ) ) {
$m = owa_coreAPI::moduleClassFactory($v);
$this->addModule($m);
$this->addModule($m); // check for schema updates
$check = $m->isSchemaCurrent();
if ($check != true) {
$this->markModuleAsNeedingUpdate($m->name);
}
}
}
// set schema update flag
if (!empty($this->modules_needing_updates)) {
$this->setUpdateRequired();
}
}
function checkForRequiredUpdates() {
owa_coreAPI::debug( owa_coreAPI::configSingleton() );
$am = owa_coreAPI::getActiveModules();
foreach ($am as $k => $v) {
// check for schema updates // check for schema updates
$check = $m->isSchemaCurrent(); $check = $this->modules[ $v ]->isSchemaCurrent();
if ($check != true) { if ($check != true) {
$this->markModuleAsNeedingUpdate($m->name); $this->markModuleAsNeedingUpdate($this->modules[ $v ]->name);
} }
} }
// set schema update flag // set schema update flag
if (!empty($this->modules_needing_updates)) { if (!empty($this->modules_needing_updates)) {
$this->setUpdateRequired(); $this->setUpdateRequired();
} }
return;
} }
function _loadEntities() { function _loadEntities() {
foreach ($this->modules as $k => $module) { foreach ($this->modules as $k => $module) {
foreach ($module->entities as $entity_k => $entity_v) { foreach ($module->entities as $entity_k => $entity_v) {
// TODO: remove this to make API stateless // TODO: remove this to make API stateless
//$this->entities[] = $module->name.$entity_v; //$this->entities[] = $module->name.$entity_v;
// proper call // proper call
 End of changes. 8 change blocks. 
9 lines changed or deleted 36 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)