tag = 'IconStyle'; $this->id = $id; $this->tagId = $iconId; $this->href = $href; } /** * (non-PHPdoc) * @see EGMapKMLNode::toXML() */ public function toXML(){ $icon = new EGMapKMLNode('Icon'); if(!is_null($this->href)) $icon->addChild( new EGMapKMLNode('href', $this->href ) ); $this->addChild($icon); $result = CHtml::openTag( 'Style', array( 'id'=>$this->id ) ); $result .= parent::toXML(); $result .= CHtml::closeTag('Style'); return $result; } }