7fff0000, * where alpha=0x7f, blue=0xff, green=0x00, and red=0x00. * * @var string color */ public $color; /** * * Width of the line, in pixels. * @var numeric string */ public $width; /** * * Class constructor * @param string $id * @param string $lineId * @param string $color * @param string $width */ public function __construct($id, $lineId = null, $color = null, $width = null){ $this->tag = 'LineStyle'; $this->id = $id; $this->tagId = $lineId; $this->color = $color; $this->width = $width; } /** * (non-PHPdoc) * @see EGMapKMLNode::toXML() */ public function toXML(){ $this->checkNode( 'color' ); $this->checkNode( 'width' ); $result = CHtml::openTag( 'Style', array( 'id'=>$this->id ) ); $result .= parent::toXML(); $result .= CHtml::closeTag('Style'); return $result; } }