Pluf Framework

Review 7: ucfirst as builtin template filter

Created:2010-02-21 19:19:47 (3 years 3 months ago)
Updated:6 months 20 days ago
Author:Benjamin Jorand
Commit:dcc03b431a4bf060edafaf129c5ccdd6d3aee234
Description:ucfirst as builtin template filter

Add a ucfisrt filter is useful ! Usage : {$myword|ucfirst}
Reviewers:No reviewers at the moment.
Files: b/src/Pluf/Template/Compiler.php (1 diff)
b/src/Pluf/Translation/TemplateExtractor.php (1 diff)
 Archive Download the corresponding diff file
b/src/Pluf/Template/Compiler.php
OldNew
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
*/
protected $_modifier = array('upper' => 'strtoupper',
'lower' => 'strtolower',
'count' => 'count',
'md5' => 'md5',
'escxml' => 'htmlspecialchars',
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
*/
protected $_modifier = array('upper' => 'strtoupper',
'lower' => 'strtolower',
'ucfirst' => 'ucfirst',
'count' => 'count',
'md5' => 'md5',
'escxml' => 'htmlspecialchars',
b/src/Pluf/Translation/TemplateExtractor.php
OldNew
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
*/
protected $_modifier = array('upper' => 'strtoupper',
'lower' => 'strtolower',
'escxml' => 'htmlspecialchars',
'escape' => 'Pluf_Template_htmlspecialchars',
'strip_tags' => 'strip_tags',
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*/
protected $_modifier = array('upper' => 'strtoupper',
'lower' => 'strtolower',
'ucfirst' => 'ucfirst',
'escxml' => 'htmlspecialchars',
'escape' => 'Pluf_Template_htmlspecialchars',
'strip_tags' => 'strip_tags',

General Comments

Comment 1 by dong dong, Mar 3, 2010

xxxxxxxxxxxx

Comment 2 by dong dong, Mar 3, 2010

sssssssssssssss

Comment 3 by Felix Xu, Nov 5, 2012

It's useful.