/** * Returns an instance of class (singleton pattern implementation). * * @return MATCHMAKING_CLASS_EventHandler */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
<?php /** * Copyright (c) 2014, Skalfa LLC * All rights reserved. * * ATTENTION: This commercial software is intended for exclusive use with SkaDate Dating Software (http://www.skadate.com) and is licensed under SkaDate Exclusive License by Skalfa LLC. * * Full text of this license can be found at http://www.skadate.com/sel.pdf */ $eventHandler = MATCHMAKING_CLASS_EventHandler::getInstance(); $eventHandler->genericInit();