"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/base/classes/trackingEventHelpers.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.

trackingEventHelpers.php  (Open-Web-Analytics-1.6.9):trackingEventHelpers.php  (Open-Web-Analytics-1.7.0)
skipping to change at line 45 skipping to change at line 45
public function translateKeys( $event ) { public function translateKeys( $event ) {
foreach ( $this->translations as $k => $v ) { foreach ( $this->translations as $k => $v ) {
$event->set( $v, $event->get( $k )); $event->set( $v, $event->get( $k ));
$event->delete( $k ); $event->delete( $k );
} }
} }
/*
public function setEnvironmentals( $event ) { public function setEnvironmentals( $event ) {
foreach ( $this->environmentals as $k => $v ) { foreach ( $this->environmentals as $k => $v ) {
// loop and execute call backs. // loop and execute call backs.
$event->set( $k, call_user_func( $this->environmentals[ $k ][ 'defau if (! $event->get( $k ) ) {
lt_value' ][0] ) );
$event->set( $k, call_user_func( $this->environmentals[ $k ][ 'de
fault_value' ][0] ) );
}
} }
} }
*/
public function registerCallbacks( $items, $priority = 0 ) { public function registerCallbacks( $items, $priority = 0 ) {
foreach ($items as $name => $item ) { foreach ($items as $name => $item ) {
if ( isset( $item['callbacks'] ) && ! empty($item['callbacks'] ) ) { if ( isset( $item['callbacks'] ) && ! empty($item['callbacks'] ) ) {
if ( is_array( $item['callbacks'] ) ) { if ( is_array( $item['callbacks'] ) ) {
foreach ($item['callbacks'] as $callback ) { foreach ($item['callbacks'] as $callback ) {
skipping to change at line 226 skipping to change at line 231
$event->delete( 'cv'.$i ); $event->delete( 'cv'.$i );
} }
} }
} }
static function remoteHostDefault() { static function remoteHostDefault() {
return owa_coreAPI::getServerParam('REMOTE_HOST'); return owa_coreAPI::getServerParam('REMOTE_HOST');
} }
static function userAgentDefault() { static function userAgentDefault( $ua = '') {
if (! $ua ) {
return owa_coreAPI::getServerParam('HTTP_USER_AGENT'); $ua = owa_coreAPI::getServerParam('HTTP_USER_AGENT');
}
return $ua;
} }
static function httpHostDefault() { static function httpHostDefault() {
return owa_coreAPI::getServerParam('HTTP_HOST'); return owa_coreAPI::getServerParam('HTTP_HOST');
} }
static function languageDefault() { static function languageDefault() {
return substr( owa_coreAPI::getServerParam( 'HTTP_ACCEPT_LANGUAGE' ), 0, 5 ); return substr( owa_coreAPI::getServerParam( 'HTTP_ACCEPT_LANGUAGE' ), 0, 5 );
 End of changes. 5 change blocks. 
4 lines changed or deleted 13 lines changed or added

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