コード例 #1
0
ファイル: wcm-class-stock.php プロジェクト: AndyA/River
 /**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
 /**
  * Get stock class
  * @return WCM_Stock
  * 
  * @since     1.0.0      
  */
 public function stock()
 {
     return WCM_Stock::get_instance();
 }