Esempio n. 1
0
File: google.php Progetto: rafi/apis
 /**
  * Set defaults
  *
  * @param array|null $options
  */
 public function __construct(array $options = NULL)
 {
     parent::__construct($options);
     if (isset($options['version'])) {
         // Set the Google API version
         $this->version = (int) $options['version'];
     }
     if (isset($options['format'])) {
         $this->format = trim($options['format'], '.');
     }
 }
Esempio n. 2
0
 public function __construct(array $options = NULL)
 {
     parent::__construct($options);
     if (isset($options['version'])) {
         // Set the Blogger API version
         $this->version = (int) $options['version'];
     }
     if (isset($options['format'])) {
         // Set the response format
         $this->format = trim($options['format']);
     }
 }