public static function instance() { if (is_null(self::$instance)) { self::$instance = new AWPCP_Settings_API(); } return self::$instance; }
public function __construct() { global $awpcp_db_version; $this->version = $awpcp_db_version; // stored options are loaded when the settings API is instatiated $this->settings = AWPCP_Settings_API::instance(); $this->js = AWPCP_JavaScript::instance(); $this->installer = AWPCP_Installer::instance(); }