Methods

All methods in the Solar_Inflect class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

camelToDashes()

Returns "camelCapsWord" and "CamelCapsWord" as "camel-caps-word".

camelToUnder()

Returns "camelCapsWord" and "CamelCapsWord" as "Camel_Caps_Word".

classToFile()

Returns "Class_Name" as "Class/Name.php".

dashesToCamel()

Returns "foo-bar-baz" as "fooBarBaz".

dashesToStudly()

Returns "foo-bar-baz" as "FooBarBaz".

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

locale()

Looks up class-specific locale strings based on a key.

toDashes()

Returns any string, converted to using dashes with only lowercase alphanumerics.

toPlural()

Returns a singular word as a plural.

toSingular()

Returns a plural word as a singular.

underToCamel()

Returns "foo_bar_baz" as "fooBarBaz".

underToStudly()

Returns "foo_bar_baz" as "FooBarBaz".

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

Private

None.



Local