Show
Ignore:
Timestamp:
02/27/08 22:52:17 (4 years ago)
Author:
nperriault
Message:

refs #40 - More tests + bug fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleversvg/trunk/base/csBaseElement.class.php

    r323 r326  
    11<?php 
    22/** 
    3  * SVG Base Element abstract class. Shapes and Groups all herit from this class. 
     3 * SVG Base Element abstract class. Shapes and Groups inherit from this class. 
    44 * 
    55 * @author     Nicolas Perriault <nperriault@gmail.com> 
     
    77 * @subpackage elements 
    88 */ 
    9 abstract class csBaseElement 
     9class csBaseElement 
    1010{ 
    1111 
     
    5555   * @return DOMElement 
    5656   */ 
    57   public function compile($embedded=false) 
     57  protected function compile($embedded=false) 
    5858  { 
    5959    $dom = $this->getDomDocument(); 
     
    251251   * @param  string  $default  Default value 
    252252   */ 
    253   public function setAttribute($name, $value, $default=null) 
     253  protected function setAttribute($name, $value, $default=null) 
    254254  { 
    255255    if (!is_null($default) && is_null($value)) 
     
    272272    if (!is_null($depth) && is_int($depth)) 
    273273    { 
    274       $this->styles['z-index'] = (string) $depth; 
     274      $this->attributes['style']['z-index'] = (string) $depth; 
    275275    } 
    276276  }