public function __construct() { global $psp; $this->the_plugin = $psp; $this->settings = $this->the_plugin->getAllSettings('array', 'serp'); self::$__debug_url = $this->the_plugin->cfg['paths']['plugin_dir_url'] . 'test-google.json'; // cache folder & files self::$CACHE_FOLDER = $this->the_plugin->cfg['paths']['plugin_dir_path'] . 'modules/serp/cache/'; $this->config = array('key' => $this->settings['developer_key'], 'cx' => $this->settings['custom_search_id'], 'gl' => $this->settings['google_country']); self::$apiMaxNbReq = $this->settings['nbreq_max_limit']; }