File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,47 @@ <h4 id="method_camelize">camelize($underscored_word)</h4>
108108 </ table >
109109 </ article >
110110
111+ < article >
112+ < h4 id ="method_words_to_upper "> words_to_upper($class)</ h4 >
113+ < p > The < strong > words_to_upper</ strong > method uppercases the first letter of each word in a classname with
114+ the words separated by underscores.</ p >
115+ < table class ="method ">
116+ < tbody >
117+ < tr >
118+ < th class ="legend "> Static</ th >
119+ < td > Yes</ td >
120+ </ tr >
121+ < tr >
122+ < th > Parameters</ th >
123+ < td >
124+ < table class ="parameters ">
125+ < tr >
126+ < th > Param</ th >
127+ < th > Default</ th >
128+ < th class ="description "> Description</ th >
129+ </ tr >
130+ < tr >
131+ < th > < kbd > $class</ kbd > </ th >
132+ < td > < i > Required</ i > </ td >
133+ < td > The classname.</ td >
134+ </ tr >
135+ </ table >
136+ </ td >
137+ </ tr >
138+ < tr >
139+ < th > Returns</ th >
140+ < td > string</ td >
141+ </ tr >
142+ < tr >
143+ < th > Example</ th >
144+ < td >
145+ < pre class ="php "> < code > echo Inflector::words_to_upper('fuel_users'); // returns Fuel_Users</ code > </ pre >
146+ </ td >
147+ </ tr >
148+ </ tbody >
149+ </ table >
150+ </ article >
151+
111152 < article >
112153 < h4 id ="method_classify "> classify($table_name)</ h4 >
113154 < p > The < strong > classify</ strong > method allows you to convert a table name to a class name.</ p >
@@ -131,6 +172,11 @@ <h4 id="method_classify">classify($table_name)</h4>
131172 < td > < i > Required</ i > </ td >
132173 < td > The table name.</ td >
133174 </ tr >
175+ < tr >
176+ < th > < kbd > $singularize</ kbd > </ th >
177+ < td > < pre class ="php "> < code > true</ code > </ pre > </ td >
178+ < td > Whether the $tablename is singularized before its words are uppercased.</ td >
179+ </ tr >
134180 </ table >
135181 </ td >
136182 </ tr >
You can’t perform that action at this time.
0 commit comments