PHP Class Phactory\Mongo\Inflector

Datei anzeigen Open project: chriskite/phactory

Public Methods

Method Description
addException ( $singular, $plural ) * Add an exception to the rules for inflection.
pluralize ( $word ) * Pluralize a word, obeying any stored exceptions.
reset ( ) * Forget all stored exceptions.

Private Methods

Method Description
__construct ( ) * Static class forbids instantiation.

Method Details

addException() public static method

* Add an exception to the rules for inflection.
public static addException ( $singular, $plural )
$singular the singular form of this word
$plural the plurbal form of this word

pluralize() public static method

* Pluralize a word, obeying any stored exceptions.
public static pluralize ( $word )
$word the word to pluralize

reset() public static method

* Forget all stored exceptions.
public static reset ( )