Changeset 326 for cleversvg/trunk/base/csBaseElement.class.php
- Timestamp:
- 02/27/08 22:52:17 (4 years ago)
- Files:
-
- 1 modified
-
cleversvg/trunk/base/csBaseElement.class.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cleversvg/trunk/base/csBaseElement.class.php
r323 r326 1 1 <?php 2 2 /** 3 * SVG Base Element abstract class. Shapes and Groups allherit from this class.3 * SVG Base Element abstract class. Shapes and Groups inherit from this class. 4 4 * 5 5 * @author Nicolas Perriault <nperriault@gmail.com> … … 7 7 * @subpackage elements 8 8 */ 9 abstractclass csBaseElement9 class csBaseElement 10 10 { 11 11 … … 55 55 * @return DOMElement 56 56 */ 57 p ublicfunction compile($embedded=false)57 protected function compile($embedded=false) 58 58 { 59 59 $dom = $this->getDomDocument(); … … 251 251 * @param string $default Default value 252 252 */ 253 p ublicfunction setAttribute($name, $value, $default=null)253 protected function setAttribute($name, $value, $default=null) 254 254 { 255 255 if (!is_null($default) && is_null($value)) … … 272 272 if (!is_null($depth) && is_int($depth)) 273 273 { 274 $this-> styles['z-index'] = (string) $depth;274 $this->attributes['style']['z-index'] = (string) $depth; 275 275 } 276 276 }
