X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/geopattern-php/GeoPattern/SVGElements
home
/
cbholdings
/
pasukulu
/
lib
/
geopattern-php
/
GeoPattern
/
SVGElements
/
📁
..
📄
Base.php
(1.12 KB)
📄
Circle.php
(331 B)
📄
Group.php
(748 B)
📄
Path.php
(267 B)
📄
Polyline.php
(290 B)
📄
Rectangle.php
(380 B)
Editing: Group.php
<?php namespace RedeyeVentures\GeoPattern\SVGElements; class Group extends Base { protected $tag = 'g'; protected $items; function __construct($items=array(), $args=array()) { $this->items = $items; $this->args = $args; } function addItem($item) { $this->items[] = $item; return $this; } function setArgs($args) { $this->args = $args; return $this; } function getString() { $svgString = ''; $svgString .= "<{$this->tag} {$this->argsToString($this->args)}>"; foreach ($this->items as $item) { $svgString .= $item; } $svgString .= "</{$this->tag}>"; return $svgString; } }
Upload File
Create Folder