public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
public function get_api($use_db_code = true) { if (!$this->api) { require_once trailingslashit(dirname(_DTBAKER_SUPPORT_HUB_CORE_FILE_)) . 'extensions/ucm/class.ucm-api.php'; $this->api = ucm_api_basic::getInstance(); $this->api->set_api_url($this->get('ucm_api_url')); $this->api->set_api_key($this->get('ucm_api_key')); } return $this->api; }