Show
Ignore:
Timestamp:
03/02/08 15:12:12 (4 years ago)
Author:
nperriault
Message:

Clever Svg:

  • refs #40: more tests
  • added csDocument::getElementById() and csDocument::dropElementById() methods
  • fixed csDocument::swapDepths() bug

Warning: breaks BC from 0.5.

Files:
1 modified

Legend:

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

    r326 r335  
    109109  public function getDepth() 
    110110  { 
    111     if (isset($this->attributes['depth'])) 
    112     { 
    113       return (int) $this->attributes['depth']; 
     111    if (array_key_exists('style', $this->attributes) && 
     112        array_key_exists('z-index', $this->attributes['style'])) 
     113    { 
     114      return (int) $this->attributes['style']['z-index']; 
    114115    } 
    115116    else 
     
    139140   * @return string 
    140141   */ 
    141   protected function getElementName($embedded=false) 
     142  public function getElementName($embedded = false) 
    142143  { 
    143144    if ($embedded === true)