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