Methods

All methods in the Solar_Sql_Model_Catalog class.

Public

__construct()

Constructor.

__destruct()

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

__get()

Magic get to make it look like model names are object properties.

dump()

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

free()

Frees memory for all models in the catalog.

getClass()

Gets the model class for a particular model name.

getInfo()

Returns information about the catalog as an array with keys for 'names' (the model name-to-class mappings), 'store' (the classes actually loaded up and retained), and 'stack' (the search stack for models).

getModel()

Returns a stored model instance by name, creating it if needed.

getModelByClass()

Returns a stored model instance by class, creating it if needed.

loadModel()

Loads a model from the stack into the catalog by name, returning a true/false success indicator (instead of throwing an exception when the class cannot be found).

locale()

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

newModel()

Returns a new model instance (not stored).

setModel()

Sets a model name to be a specific instance or class.

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.

_newModel()

Returns a new model instance (not stored).

_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.

_setStack()

Sets the model stack.

Private

None.



Local