[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 118 lignes (4 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
sfInflector:: (7 méthodes):
camelize()
underscore()
demodulize()
foreign_key()
tableize()
classify()
humanize()
Classe: sfInflector - X-Ref
camelize($lower_case_and_underscored_word) X-Ref |
Returns a camelized string from a lower case and underscored string by replaceing slash with double-colol and upper-casing each letter preceded by an underscore. param: string String to camelize. return: string Camelized string. |
underscore($camel_cased_word) X-Ref |
Returns an underscore-syntaxed version or the CamelCased string. param: string String to underscore. return: string Underscored string. |
demodulize($class_name_in_module) X-Ref |
Returns classname::module with classname:: stripped off. param: string Classname and module pair. return: string Module name. |
foreign_key($class_name, $separate_class_name_and_id_with_underscore = true) X-Ref |
Returns classname in underscored form, with "_id" tacked on at the end. This is for use in dealing with foreign keys in the database. param: string Class name. param: boolean Seperate with underscore. return: strong Foreign key |
tableize($class_name) X-Ref |
Returns corresponding table name for given classname. param: string Name of class to get database table name for. return: string Name of the databse table for given class. |
classify($table_name) X-Ref |
Returns model class name for given database table. param: string Table name. return: string Classified table name. |
humanize($lower_case_and_underscored_word) X-Ref |
Returns a human-readable string from a lower case and underscored word by replacing underscores with a space, and by upper-casing the initial characters. param: string String to make more readable. return: string Human-readable string. |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |