class StandardInflector extends Inflector (View source)

Methods

static object
instance()

Get an instance of the {@link Inflector} class.

from Inflector
string
camelize(string $s)

Turn a string into its camelized version.

from Inflector
static bool
is_upper(string $s)

Determines if a string contains all uppercase characters.

from Inflector
static bool
is_lower(string $s)

Determines if a string contains all lowercase characters.

from Inflector
string
uncamelize(string $s)

Convert a camelized string to a lowercase, underscored string.

from Inflector
string
underscorify(string $s)

Convert a string with space into a underscored equivalent.

from Inflector
keyify($class_name)

No description

from Inflector
variablize($s)

No description

tableize($s)

No description

Details

static object instance()

Get an instance of the {@link Inflector} class.

Return Value

object

string camelize(string $s)

Turn a string into its camelized version.

Parameters

string $s string to convert

Return Value

string

static bool is_upper(string $s)

Determines if a string contains all uppercase characters.

Parameters

string $s string to check

Return Value

bool

static bool is_lower(string $s)

Determines if a string contains all lowercase characters.

Parameters

string $s string to check

Return Value

bool

string uncamelize(string $s)

Convert a camelized string to a lowercase, underscored string.

Parameters

string $s string to convert

Return Value

string

string underscorify(string $s)

Convert a string with space into a underscored equivalent.

Parameters

string $s string to convert

Return Value

string

keyify($class_name)

Parameters

$class_name

variablize($s)

Parameters

$s

tableize($s)

Parameters

$s