* @copyright Copyright © 2006 Peter Adams * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 * @category owa * @package owa * @version $Revision$ * @since owa 1.0.0 */ class owa_reportPagesController extends owa_reportController { function action() { $this->setSubview('base.reportSimpleDimensional'); $this->setTitle('Web Pages'); $this->set('metrics', 'pageViews,visits,uniquePageViews'); // add ametrics override setting $this->set('dimensions', 'pagePath,pageTitle,pageType'); //$this->set('excludeColumns', "'pageUrl'"); $this->set('sort', 'pageViews-'); $this->set('resultsPerPage', 30); $this->set('dimensionLink', array( 'linkColumn' => 'pagePath', 'template' => array('do' => 'base.reportDocument', 'pagePath' => '%s'), 'valueColumns' => 'pagePath')); $this->set('trendChartMetric', 'pageViews'); $this->set('trendTitle', 'There were <*= this.d.resultSet.aggregates.pageViews.formatted_value *> page views for <*= this.d.resultSet.aggregates.uniquePageViews.value *> unique pages.'); $this->set('gridTitle', 'Top Pages'); } } ?>