Overview
Acts as a central catalog for model instances; reduces the number of times you instantiate model classes.
Configuration Keys
classes: Use these prefixes for the class stack that loads model classes.
Constants
None.
Public Properties
The Solar_Sql_Model_Catalog class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Sql_Model_Catalog class.
You can also view the list of all public, protected, and private methods.
-
__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.