Example #1
0
 function __construct()
 {
     parent::__construct();
     // sometimes google routes the connection through IPv6 which just makes this more difficult to deal with - force it to always use IPv4
     $this->client->setDefaultOption('config/curl', array(CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4));
     $this->preferences['results_per_page'] = 100;
     $this->preferences['google_domain'] = 'google.com';
 }
Example #2
0
 function setPreference($name, $value)
 {
     if ($name == 'search_market') {
         $this->setSearchMarket($value);
     }
     if ($name == 'results_per_page') {
         $this->setResultsPerPage($value);
     }
     parent::setPreference($name, $value);
 }
Example #3
0
 function __construct()
 {
     parent::__construct();
     $this->preferences['results_per_page'] = 100;
     $this->preferences['google_domain'] = 'google.com';
 }