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
-
- Returns
- string
static inflector::humanize |
( |
|
$str | ) |
|
|
static |
Makes an underscored or dashed phrase human-reable.
- Parameters
-
string | phrase to make human-reable |
- Returns
- string
static inflector::plural |
( |
|
$str, |
|
|
|
$count = NULL |
|
) |
| |
|
static |
Makes a singular word plural.
- Parameters
-
- Returns
- string
static inflector::singular |
( |
|
$str, |
|
|
|
$count = NULL |
|
) |
| |
|
static |
Makes a plural word singular.
- Parameters
-
string | word to singularize |
- Returns
- string
static inflector::uncountable |
( |
|
$str | ) |
|
|
static |
Checks if a word is defined as uncountable.
- Parameters
-
- Returns
- boolean
static inflector::underscore |
( |
|
$str | ) |
|
|
static |
Makes a phrase underscored instead of spaced.
- Parameters
-
string | phrase to underscore |
- Returns
- string
The documentation for this class was generated from the following file: