Ejemplo n.º 1
0
Archivo: google.php Proyecto: 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'], '.');
     }
 }
Ejemplo 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']);
     }
 }