mohrt Thu Sep 9 14:25:55 2004 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
update code comment with more examples
http://cvs.php.net/diff.php/smarty/libs/Smarty_Compiler.class.php?r1=1.339&r2=1.340&ty=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.339
smarty/libs/Smarty_Compiler.class.php:1.340
--- smarty/libs/Smarty_Compiler.class.php:1.339 Thu Sep 9 14:21:09 2004
+++ smarty/libs/Smarty_Compiler.class.php Thu Sep 9 14:25:55 2004
@@ -26,7 +26,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.339 2004/09/09 18:21:09 mohrt Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.340 2004/09/09 18:25:55 mohrt Exp $ */
/**
* Template compiling class
@@ -139,7 +139,7 @@
// "text"
$this->_var_regexp = '(?:' . $this->_avar_regexp . '|' .
$this->_num_const_regexp . '|' . $this->_qstr_regexp . ')';
- // matches valid object call (no objects allowed in parameters):
+ // matches valid object call (one level of object nesting allowed in
parameters):
// $foo->bar
// $foo->bar()
// $foo->bar("text")
@@ -147,6 +147,9 @@
// $foo->bar($foo, "foo")
// $foo->bar->foo()
// $foo->bar->foo->bar()
+ // $foo->bar($foo->bar)
+ // $foo->bar($foo->bar())
+ // $foo->bar($foo->bar($blah,$foo,44,"foo",$foo[0].bar))
$this->_obj_ext_regexp = '\->(?:\$?' . $this->_dvar_guts_regexp . ')';
$this->_obj_params_regexp = '\((?:\w+|(?:'
. $this->_var_regexp . '(?:' . $this->_obj_ext_regexp .
'(?:\((?:' . $this->_var_regexp
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|