Changeset 999

Show
Ignore:
Timestamp:
06/21/08 17:11:40 (2 months ago)
Author:
laurentj
Message:

ticket #137: added assignByRef method in jTpl

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/tpl/jTpl.class.php

    r998 r999  
    6565            $this->_vars[$name] = $value; 
    6666        } 
     67    } 
     68 
     69    /** 
     70     * assign a value by reference in a template variable 
     71     * @param string $name the variable name 
     72     * @param mixed  $value the value 
     73     * @since jelix 1.1 
     74     */ 
     75    public function assignByRef ($name, & $value){ 
     76        $this->_vars[$name] = &$value; 
    6777    } 
    6878 
Download in other formats: Unified Diff Zip Archive