/**
  * 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;
 }
Esempio n. 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();
 }
 /**
  * Inits Admin Class
  */
 public function admin_init()
 {
     self::$admin_instance = WooCommerce_Role_Based_Price_Admin::get_instance();
 }