/** * Returns an instance of class (singleton pattern implementation). * * @return UTAGS_CLASS_Plugin */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
<?php /** * Copyright (c) 2013, Sergey Kambalin * All rights reserved. * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ * and is licensed under Oxwall Store Commercial License. * Full text of this license can be found at http://www.oxwall.org/store/oscl */ UTAGS_CLASS_Plugin::getInstance()->mobileInit();
<?php /** * Copyright (c) 2013, Sergey Kambalin * All rights reserved. * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ * and is licensed under Oxwall Store Commercial License. * Full text of this license can be found at http://www.oxwall.org/store/oscl */ UTAGS_CLASS_Plugin::getInstance()->init();