Methods

All methods in the Solar_Cli_MakeModel class.

Public

__construct()

Constructor.

__destruct()

Destructor; closes STDOUT and STDERR file handles.

dump()

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

exec()

Public interface to execute the command.

getInfoHelp()

Returns the help text for this command.

getInfoOptions()

Returns an array of option flags and descriptions for this command.

locale()

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

setConsoleController()

Injects the console-controller object (if any) that invoked this command.

Protected

_buildConfig()

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

_createLocaleDir()

Creates the model "Locale/" directory.

_err()

Prints text to STDERR without a trailing newline.

_errln()

Prints text to STDERR and appends a newline.

_exception()

Convenience method for returning exceptions with localized text.

_exec()

Write out a series of model, record, and collection classes for a model.

_execMulti()

Makes one model/record/collection class for each table in the database using a class-name prefix.

_fetchGetoptOptions()

Gets the option settings from the class hierarchy.

_getSqlConfig()

Gets the SQL connection parameters from the command line options.

_loadMetadata()

Reads and retains the table metadata from the database.

_loadTemplates()

Loads the template array from skeleton files.

_out()

Prints text to STDOUT without a trailing newline.

_outln()

Prints text to STDOUT and appends a newline.

_postConfig()

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

_postConstruct()

Post-construction tasks to complete object construction.

_postExec()

Runs just after the main _exec() method.

_preConfig()

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

_preExec()

Runs just before the main _exec() method.

_setExtends()

Sets the class this model will extend from.

_setInherit()

Sets the $_inherit property based on the $_extends value.

_setTable()

Sets the table name; determines from the class name if no table name is given.

_setTarget()

Sets the base directory target.

_setup()

Post-construction setup logic.

_writeCollection()

Writes the collection class file.

_writeLocaleFile()

Writes the model "Locale/en_US.php" file.

_writeMetadata()

Writes the metadata class file.

_writeModel()

Writes the model class file.

_writeRecord()

Writes the record class file.

Private

None.



Local