__construct() __construct() Construct a new application Model. TODO Catch exception Throws \hhu\z\DatamodelException \hhu\z\DriverNotFoundException \hhu\z\DriverNotValidException \hhu\z\ModelNotValidException \hhu\z\ModelNotFoundException
load() load(string $modelName) Load the class of a Model. Parameters string $modelName Name of the Model to load Throws \nre\core\ModelNotFoundException \nre\core\ModelNotValidException
factory() factory(string $modelName) Instantiate a Model (Factory Pattern). Parameters string $modelName Name of the Model to instantiate
loadDriver() loadDriver(string $driverName) Load the database driver. Parameters string $driverName Name of the database driver Throws \nre\models\DriverNotFoundException \nre\models\DriverNotValidException
connect() connect(string $driverName, array $config) Establish a connection to the database. Parameters string $driverName Name of the database driver array $config Connection settings Throws \nre\models\DatamodelException
getClassName() getClassName(string $modelName) : string Determine the classname for the given Model name. Parameters string $modelName Model name to get classname of Returns string — Classname fore the Model name
loadModels() loadModels() Load the Models of this Model. Throws \nre\core\DatamodelException \nre\core\DriverNotFoundException \nre\core\DriverNotValidException \nre\core\ModelNotValidException \nre\core\ModelNotFoundException