--- a/busui/owa/modules/base/reportVisit.php +++ b/busui/owa/modules/base/reportVisit.php @@ -1,1 +1,83 @@ - + + * @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_reportVisitController extends owa_reportController { + + function action() { + + $visit = owa_coreAPI::executeApiCommand(array( + 'do' => 'getVisitDetail', + 'sessionId' => $this->getParam('session_id') ) ); + + //setup Metrics + $rs = owa_coreAPI::executeApiCommand(array( + 'do' => 'getClickstream', + 'sessionId' => $this->getParam('session_id') ) ); + + $this->set('clickstream', $rs); + $this->set('visit', $visit); + $this->set('session_id', $this->getParam('session_id')); + $this->setView('base.report'); + $this->setSubview('base.reportVisit'); + $this->setTitle('Visit Clickstream'); + } +} + +/** + * Visit Report View + * + * @author Peter Adams + * @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_reportVisitView extends owa_view { + + function render() { + + // Assign data to templates + $this->body->set_template('report_visit.tpl'); + $this->body->set('session_id', $this->get('session_id')); + $this->body->set('visits', $this->get('visit')); + $this->body->set('clickstream', $this->get('clickstream')); + } +} + +?>