__construct() __construct() Construct a new QuesttypeModel. TODO Catch exception Throws \nre\exceptions\DatamodelException \nre\exceptions\DriverNotFoundException \nre\exceptions\DriverNotValidException \hhu\z\exceptions\QuesttypeModelNotValidException \hhu\z\exceptions\QuesttypeModelNotFoundException
load() load(string $modelName) Load a Model. Parameters string $modelName Name of the QuesttypeModel to load Throws \hhu\z\exceptions\QuesttypeModelNotFoundException \hhu\z\exceptions\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 \nre\exceptions\ClassNotValidException
loadDriver() loadDriver(string $driverName) Load the database driver. Parameters string $driverName Name of the database driver Throws \nre\exceptions\DriverNotFoundException \nre\exceptions\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\exceptions\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\exceptions\DatamodelException \nre\exceptions\DriverNotFoundException \nre\exceptions\DriverNotValidException \nre\exceptions\ModelNotValidException \nre\exceptions\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 \nre\exceptions\ClassNotFoundException