load() load(string $modelName) Load the class of a Model. Parameters string $modelName Name of the Model to load Throws \nre\exceptions\ModelNotFoundException \nre\exceptions\ModelNotValidException
factory() factory(string $modelName) Instantiate a Model (Factory Pattern). Parameters string $modelName Name of the Model to instantiate
getUserrolesForUserById() getUserrolesForUserById(integer $userId) : array Get all userroles for an user referenced by its ID. Parameters integer $userId ID of an user Returns array — Userroles for an user
getUserrolesForUserByUrl() getUserrolesForUserByUrl(string $userUrl) : array Get all userroles for an user referenced by its URL-username. Parameters string $userUrl URL-Username of an user Returns array — Userroles for an user
addUserroleToUser() addUserroleToUser(integer $userId, string $userrole) Add a role to a user. Parameters integer $userId ID of user to add role to string $userrole Role to add
removeUserroleFromUser() removeUserroleFromUser(integer $userId, string $userrole) Remove a role from a user. Parameters integer $userId ID of user to remove role from string $userrole Role to remove
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 $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\exceptions\DatamodelException \nre\exceptions\DriverNotFoundException \nre\exceptions\DriverNotValidException \nre\exceptions\ModelNotValidException \nre\exceptions\ModelNotFoundException