1: | <?php
|
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: |
|
10: |
|
11: | |
12: | |
13: | |
14: | |
15: | |
16: |
|
17: | class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Internal_Compile_Private_Block_Plugin
|
18: | {
|
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: |
|
29: | public function setup(Smarty_Internal_TemplateCompilerBase $compiler, $_attr, $tag, $method)
|
30: | {
|
31: | $_paramsArray = array();
|
32: | foreach ($_attr as $_key => $_value) {
|
33: | if (is_int($_key)) {
|
34: | $_paramsArray[] = "$_key=>$_value";
|
35: | } else {
|
36: | $_paramsArray[] = "'$_key'=>$_value";
|
37: | }
|
38: | }
|
39: | $callback = array("\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]", "->{$method}");
|
40: | return array($callback, $_paramsArray, "array(\$_block_plugin{$this->nesting}, '{$method}')");
|
41: | }
|
42: | }
|
43: | |