"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/web/CController.php" between
yii-1.1.19.5790cb.tar.gz and yii-1.1.20.6ed384.tar.gz

About: Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Hint: Yii 1.1 is now in maintenance mode.

CController.php  (yii-1.1.19.5790cb):CController.php  (yii-1.1.20.6ed384)
skipping to change at line 926 skipping to change at line 926
* Note, the callback and its parameter values will be serialized and sav ed in cache. * Note, the callback and its parameter values will be serialized and sav ed in cache.
* Make sure they are serializable. * Make sure they are serializable.
* *
* @param callback $callback a PHP callback which returns the needed dyna mic content. * @param callback $callback a PHP callback which returns the needed dyna mic content.
* When the callback is specified as a string, it will be first assumed t o be a method of the current * When the callback is specified as a string, it will be first assumed t o be a method of the current
* controller class. If the method does not exist, it is assumed to be a global PHP function. * controller class. If the method does not exist, it is assumed to be a global PHP function.
* Note, the callback should return the dynamic content instead of echoin g it. * Note, the callback should return the dynamic content instead of echoin g it.
*/ */
public function renderDynamic($callback) public function renderDynamic($callback)
{ {
$n=count($this->_dynamicOutput); $n=($this->_dynamicOutput === null ? 0 : count($this->_dynamicOut put));
echo "<###dynamic-$n###>"; echo "<###dynamic-$n###>";
$params=func_get_args(); $params=func_get_args();
array_shift($params); array_shift($params);
$this->renderDynamicInternal($callback,$params); $this->renderDynamicInternal($callback,$params);
} }
/** /**
* This method is internally used. * This method is internally used.
* @param callback $callback a PHP callback which returns the needed dyna mic content. * @param callback $callback a PHP callback which returns the needed dyna mic content.
* @param array $params parameters passed to the PHP callback * @param array $params parameters passed to the PHP callback
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)