Show
Ignore:
Timestamp:
02/26/08 23:36:12 (4 years ago)
Author:
nperriault
Message:

Clever Svg: Typos + some methods visibility

Files:
1 modified

Legend:

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

    r318 r323  
    22/** 
    33 * SVG base gradient abstract class 
    4  *  
     4 * 
    55 * @author     Nicolas Perriault <nperriault@gmail.com> 
    66 * @package    cleversvg 
     
    1010{ 
    1111 
    12   protected  
     12  protected 
    1313    $stops         = array(), 
    1414    $xml_node_name = 'unknown'; 
    15    
     15 
    1616  /** 
    17    * Adds a &lt;stop/&gt; elementto specify gradient marker points  
    18    *  
     17   * Adds a &lt;stop/&gt; elementto specify gradient marker points 
     18   * 
    1919   * @param  mixed   $offset       Stop offset (can be percentage) 
    2020   * @param  string  $stop_color   (optional, default=black) 
     
    2323  public function addStop($offset, $stop_color='black', $stop_opacity=1) 
    2424  { 
    25     $this->stops[] = array('offset'       => $offset,  
    26                            'stop-color'   => $stop_color,  
     25    $this->stops[] = array('offset'       => $offset, 
     26                           'stop-color'   => $stop_color, 
    2727                           'stop-opacity' => $stop_opacity); 
    2828  } 
    29    
     29 
    3030  /** 
    3131   * Computes DOMXML Node 
    32    *  
     32   * 
    3333   * @param  boolean  $embedded  Is SVG element embedded ? 
    3434   * @return DOMElement 
     
    3838    $dom = $this->getDomDocument(); 
    3939    $element_node = parent::compile($embedded); 
    40      
     40 
    4141    // Add stops 
    4242    if (count($this->stops) > 0) 
     
    5252      } 
    5353    } 
    54      
     54 
    5555    return $element_node; 
    5656  } 
    57    
     57 
    5858  /** 
    5959   * Gets the node name of current SVG element 
    60    *  
    61    * @param  boolean  $embedded   
     60   * 
     61   * @param  boolean  $embedded 
    6262   * @return string 
    6363   */ 
    64   public function getStopNodeName($embedded) 
     64  protected function getStopNodeName($embedded) 
    6565  { 
    6666    return $embedded === true ? 'svg:stop' : 'stop'; 
    6767  } 
    68    
     68 
    6969}