예제 #1
0
 /**
  * Provides access to a single instances of the class using the singleton pattern
  * @return object
  */
 public static function get_instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #2
0
 /**
  * Constructs Included Class
  */
 public function initiate_class()
 {
     // Get Instance For Settings Panel
     self::$admin_settings = WooCommerce_Role_Based_Price_Admin_Settings::get_instance();
 }