コード例 #1
0
ファイル: event_handler.php プロジェクト: hardikamutech/hammu
 /**
  * Returns class instance
  *
  * @return OCSSITESTATS_CLASS_EventHandler
  */
 public static function getInstance()
 {
     if (null === self::$classInstance) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: init.php プロジェクト: hardikamutech/hammu
<?php

/**
 * Copyright (c) 2013, Oxwall CandyStore
 * 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
 */
/**
 * /init.php
 * 
 * @author Oxwall CandyStore <*****@*****.**>
 * @package ow.ow_plugins.ocs_sitestats
 * @since 1.5
 */
OW::getRouter()->addRoute(new OW_Route('ocssitestats.admin_config', 'admin/plugin/ocs-sitestats', 'OCSSITESTATS_CTRL_Admin', 'index'));
OCSSITESTATS_CLASS_EventHandler::getInstance()->init();