示例#1
0
文件: Morfy.php 项目: Razzwan/morfy
 /**
  * Initialize Morfy Application
  *
  *  <code>
  *      Morfy::init();
  *  </code>
  *
  * @access  public
  */
 public static function init()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Morfy();
     }
     return self::$instance;
 }
示例#2
0
文件: Morfy.php 项目: zorca/morfy
 /**
  * Initialize Morfy Application
  *
  *  <code>
  *      Morfy::init();
  *  </code>
  *
  * @access public
  * @return object
  */
 public static function init()
 {
     return !isset(self::$instance) and self::$instance = new Morfy();
 }