ICanBoogie/Inflector master
  • Namespace
  • Class

Namespaces

  • ICanBoogie

Classes

  • Inflections
  • Inflector

Constants

  • INFLECTOR_DEFAULT_LOCALE

Functions

  • camelize
  • capitalize
  • downcase
  • humanize
  • hyphenate
  • pluralize
  • singularize
  • titleize
  • underscore
  • upcase

Namespace ICanBoogie

Classes summary

Inflections A representation of the inflections used by an inflector.
Inflector

The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys. Inflections can be localized, the default english inflections for pluralization, singularization, and uncountable words are kept in lib/inflections/en.php.

Constants summary

INFLECTOR_DEFAULT_LOCALE Default inflector locale.

Functions summary

camelize Forwards calls to Inflector::get()->camelize().
capitalize

Returns a copy of str with the first character converted to uppercase and the remainder to lowercase.

downcase Returns an lowercase string.
humanize Forwards calls to Inflector::get()->humanize().
hyphenate Forwards calls to Inflector::get()->hyphenate().
pluralize Forwards calls to Inflector::get()->pluralize().
singularize Forwards calls to Inflector::get()->singularize().
titleize Forwards calls to Inflector::get()->titleize().
underscore Forwards calls to Inflector::get()->underscore().
upcase Returns an uppercase string.
ICanBoogie/Inflector master API documentation generated by ApiGen