Exemplo n.º 1
0
 /**
  * Set options to apply when creating target object.
  * @param mixed $options Associative array or EMapMarkerOptions object
  */
 public function setOptions($options)
 {
     if (is_object($options)) {
         $this->setOptionsObject($options);
     } else {
         if (is_array($options)) {
             $this->setOptionsArray($options);
         } else {
             throw new CException('Inavlid type given for options.');
         }
     }
     if ($this->options->isEmpty()) {
         unset($this->options);
     } else {
         $this->options->verifyOptions();
     }
 }