/** * Returns class instance * * @return OCSGUESTS_CLASS_EventHandler */ public static function getInstance() { if (null === self::$classInstance) { self::$classInstance = new self(); } return self::$classInstance; }
<?php /** * Copyright (c) 2012, Oxwall CandyStore * All rights reserved. * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is * licensed under The BSD license. */ OCSGUESTS_CLASS_EventHandler::getInstance()->init();
public function init() { OCSGUESTS_CLASS_EventHandler::getInstance()->genericInit(); $em = OW::getEventManager(); $em->bind('mobile.content.profile_view_top', array($this, 'trackVisit')); }