FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
inflector Class Reference

Static Public Member Functions

static uncountable ($str)
 Checks if a word is defined as uncountable.
static singular ($str, $count=NULL)
 Makes a plural word singular.
static plural ($str, $count=NULL)
 Makes a singular word plural.
static camelize ($str)
 Makes a phrase camel case.
static underscore ($str)
 Makes a phrase underscored instead of spaced.
static humanize ($str)
 Makes an underscored or dashed phrase human-reable.

Member Function Documentation

static inflector::camelize (   $str)
static

Makes a phrase camel case.

Parameters
stringphrase to camelize
Returns
string
static inflector::humanize (   $str)
static

Makes an underscored or dashed phrase human-reable.

Parameters
stringphrase to make human-reable
Returns
string
static inflector::plural (   $str,
  $count = NULL 
)
static

Makes a singular word plural.

Parameters
stringword to pluralize
Returns
string
static inflector::singular (   $str,
  $count = NULL 
)
static

Makes a plural word singular.

Parameters
stringword to singularize
Returns
string
static inflector::uncountable (   $str)
static

Checks if a word is defined as uncountable.

Parameters
stringword to check
Returns
boolean
static inflector::underscore (   $str)
static

Makes a phrase underscored instead of spaced.

Parameters
stringphrase to underscore
Returns
string

The documentation for this class was generated from the following file: