"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "owa_template.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.

owa_template.php  (Open-Web-Analytics-1.6.9):owa_template.php  (Open-Web-Analytics-1.7.0)
skipping to change at line 622 skipping to change at line 622
if ($add_state === true): if ($add_state === true):
$final_params = array_merge($final_params, $this->caller_params['lin k_state']); $final_params = array_merge($final_params, $this->caller_params['lin k_state']);
endif; endif;
// apply overides made via the template // apply overides made via the template
$final_params = array_merge($final_params, array_filter($params)); $final_params = array_merge($final_params, array_filter($params));
return owa_coreAPI::performAction($do, $final_params); return owa_coreAPI::performAction($do, $final_params);
} }
function getInpageWidget($do, $params = array()) {
return owa_template::getWidget($do, $params, 'inpage');
}
function getSparkline($metric, $metric_col, $period = '', $height = 25, $wid
th = 250, $map = array(), $add_state = true) {
$map['metric'] = $metric;
$map['metric_col'] = $metric_col;
$map['period'] = $period;
$map['height'] = $height;
$map['width'] = $width;
return owa_template::getWidget('base.widgetSparkline', $map, false, $add
_state);
}
function makeJson($array) { function makeJson($array) {
$reserved_words = owa_coreAPI::getSetting('base', 'reserved_words'); $reserved_words = owa_coreAPI::getSetting('base', 'reserved_words');
$json = '{'; $json = '{';
foreach ($array as $k => $v) { foreach ($array as $k => $v) {
if (is_object($v)) { if (is_object($v)) {
if (method_exists($v, 'toString')) { if (method_exists($v, 'toString')) {
skipping to change at line 998 skipping to change at line 981
function formatCurrency($value) { function formatCurrency($value) {
return owa_lib::formatCurrency( $value, owa_coreAPI::getSetting( 'base', 'currencyLocal' ), owa_coreAPI::getSetting( 'base', 'currencyISO3' ) ); return owa_lib::formatCurrency( $value, owa_coreAPI::getSetting( 'base', 'currencyLocal' ), owa_coreAPI::getSetting( 'base', 'currencyISO3' ) );
} }
function getCurrentUser() { function getCurrentUser() {
return owa_coreAPI::getCurrentUser(); return owa_coreAPI::getCurrentUser();
} }
function getLatestActions( $startDate, $endDate, $siteId, $visitorId = '', $
sessionId = '', $width = '300px', $resultsPerPage = 25, $page = 1 ) {
$la = owa_coreAPI::executeApiCommand(array(
'do' => 'getLatestActions',
'siteId' => $siteId,
'page' => $page,
'startDate' => $startDate,
'endDate' => $endDate,
'visitorId' => $visitorId,
'sessionId' => $sessionId,
'resultsPerPage' => $resultsPerPage
));
$items = $la->getResultsRows();
$t = new owa_template;
$t->set('items', $items);
$t->set('width', $width);
$t->set_template('widget_latestActions.php');
return $t->fetch();
}
public function getSiteThumbnail( $domain, $width = '200' ) { public function getSiteThumbnail( $domain, $width = '200' ) {
echo sprintf('<img src="https://s.wordpress.com/mshots/v1/%s?w=%s" width ="%s">', urlencode($domain .'/'), $width, $width ); echo sprintf('<img src="https://s.wordpress.com/mshots/v1/%s?w=%s" width ="%s">', urlencode($domain .'/'), $width, $width );
} }
/** /**
* Checks is a display value is set. * Checks is a display value is set.
*/ */
public function isValueSet( $string ) { public function isValueSet( $string ) {
 End of changes. 2 change blocks. 
43 lines changed or deleted 0 lines changed or added

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