Exemplo n.º 1
0
 public function __construct($width = null, $height = null)
 {
     parent::__construct('svg', array('width', 'height', 'viewBox'));
     if ($width != null) {
         $this->set('width', $width);
     }
     if ($height != null) {
         $this->set('height', $height);
     }
 }
Exemplo n.º 2
0
 public function createArray()
 {
     $data = $this->createData();
     $this->set("d", $data);
     return parent::createArray();
 }