* @license PHP License * @package WB * @subpackage base */ WBClass::load('WBStatistic'); /** * Statistic module for page and content views * * Simple interface to save page statistic * * @version 0.1.0 * @package WB * @subpackage base */ class WBStatistic_ForwardTracker extends WBStatistic { /** * name of page view table */ const TABLE_STAT = 'forwardtracking'; /** * constructor * * Init user and request object. * */ public function __construct() { parent::__construct(); } /** * add path to page views * * Save path in statistic table * * @param string $path */ public function add($id) { if (!$this->enabled) { return; } $save = array( 'trackid' => $this->getTrackingId(), 'urlid' => $id, ); $this->table->save(self::TABLE_STAT, '__new', $save); } }