Changeset 1650

Show
Ignore:
Timestamp:
12/30/2007 02:24:55 PM (10 months ago)
Author:
Shadowhand
Message:

Added View::bind($name, $var)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r1638 r1650  
    7575         * 
    7676         * @param   string|array  name of variable or an array of variables 
    77          * @param   value         value when using a named variable 
     77         * @param   mixed         value when using a named variable 
    7878         * @return  object 
    7979         */ 
     
    9595 
    9696        /** 
     97         * Sets a bound variable by reference. 
     98         * 
     99         * @param   string   name of variable 
     100         * @param   mixed    variable to assign by reference 
     101         * @return  object 
     102         */ 
     103        public function bind($name, & $var) 
     104        { 
     105                $this->data[$name] =& $var; 
     106 
     107                return $this; 
     108        } 
     109 
     110        /** 
    97111         * Sets a view global variable. 
    98112         * 
    99113         * @param   string|array  name of variable or an array of variables 
    100          * @param   value         value when using a named variable 
     114         * @param   mixed         value when using a named variable 
    101115         * @return  object 
    102116         */