コード例 #1
0
ファイル: he-ib.php プロジェクト: hungtran0203/he-ib
 /**
  * Main HEIBApp Instance.
  *
  */
 public static function getInstance()
 {
     // Store the instance locally to avoid private static replication
     static $instance = null;
     // Only run these methods if they haven't been run previously
     if (null === $instance) {
         $instance = new HEIBApp();
         $instance->defineConstants();
         $instance->version();
         $instance->setupHooks();
     }
     // Always return the instance
     return $instance;
 }