__construct() __construct() Construct a new QuesttypeModel. TODO Catch exception Throws \hhu\z\models\DatamodelException \hhu\z\models\DriverNotFoundException \hhu\z\models\DriverNotValidException \hhu\z\models\QuesttypeModelNotValidException \hhu\z\models\QuesttypeModelNotFoundException
load() load(string $modelName) Load a Model. Parameters string $modelName Name of the QuesttypeModel to load Throws \hhu\z\models\QuesttypeModelNotFoundException \hhu\z\models\QuesttypeModelNotValidException
factory() factory(string $questtypeName) Instantiate a QuesttypeModel (Factory Pattern). Parameters string $questtypeName Name of the QuesttypeModel to instantiate
checkClass() checkClass(string $className, string $parentClassName) Check inheritance of the QuesttypeModel-class. Parameters string $className Name of the class to check string $parentClassName Name of the parent class Throws \hhu\z\models\ClassNotValidException
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 $questtypeName) : string Determine the Model-classname for the given Questtype-name. Parameters string $questtypeName Questtype-name to get Model-classname of Returns string — Classname for the Questtype-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
loadClass() loadClass(string $questtypeName, string $fullClassName) Load the class of a QuesttypeModel. Parameters string $questtypeName Name of the QuesttypeModel to load string $fullClassName Name of the class to load Throws \hhu\z\models\ClassNotFoundException