Example #1
0
 private function __construct()
 {
     global $wpdb;
     $this->table = $wpdb->prefix . self::TABLE_NAME;
     $this->options =& EL_Options::get_instance();
     $this->daterange =& EL_Daterange::get_instance();
 }
Example #2
0
 public static function &get_instance()
 {
     // Create class instance if required
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     // Return class instance
     return self::$instance;
 }
Example #3
0
 private function __construct()
 {
     $this->options = EL_Options::get_instance();
     $this->daterange = EL_Daterange::get_instance();
 }