1: | <?php
|
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | |
9: |
|
10: |
|
11: | |
12: | |
13: | |
14: | |
15: | |
16: |
|
17: | class Smarty_Internal_Compile_Setfilter extends Smarty_Internal_CompileBase
|
18: | {
|
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: |
|
28: | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter)
|
29: | {
|
30: | $compiler->variable_filter_stack[] = $compiler->variable_filters;
|
31: | $compiler->variable_filters = $parameter[ 'modifier_list' ];
|
32: |
|
33: | $compiler->has_code = false;
|
34: | return true;
|
35: | }
|
36: | }
|
37: |
|
38: | |
39: | |
40: | |
41: | |
42: | |
43: |
|
44: | class Smarty_Internal_Compile_Setfilterclose extends Smarty_Internal_CompileBase
|
45: | {
|
46: | |
47: | |
48: | |
49: | |
50: | |
51: | |
52: | |
53: | |
54: |
|
55: | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
|
56: | {
|
57: | $_attr = $this->getAttributes($compiler, $args);
|
58: |
|
59: | if (count($compiler->variable_filter_stack)) {
|
60: | $compiler->variable_filters = array_pop($compiler->variable_filter_stack);
|
61: | } else {
|
62: | $compiler->variable_filters = array();
|
63: | }
|
64: |
|
65: | $compiler->has_code = false;
|
66: | return true;
|
67: | }
|
68: | }
|
69: | |