add namespaces to docstrings

This commit is contained in:
coderkun 2015-04-25 14:09:46 +02:00
commit a4487a1028
16 changed files with 169 additions and 169 deletions

View file

@ -27,7 +27,7 @@
/** /**
* Get the layout if it was explicitly defined. * Get the layout if it was explicitly defined.
* *
* @param string $agentName Name of Agent to get Layout for * @param string $agentName Agent name
* @return string Layout of the IntermediateAgent * @return string Layout of the IntermediateAgent
*/ */
public static function getLayout($agentName) public static function getLayout($agentName)

View file

@ -36,19 +36,19 @@
/** /**
* Current request * Current request
* *
* @var Request * @var \nre\core\Request
*/ */
private $request; private $request;
/** /**
* Current response * Current response
* *
* @var Response * @var \nre\core\Response
*/ */
private $response; private $response;
/** /**
* Layout instace * Layout instace
* *
* @var Layout * @var \nre\core\Layout
*/ */
private $layout = null; private $layout = null;
/** /**
@ -64,18 +64,18 @@
/** /**
* Construct a ToplevelAgent. * Construct a ToplevelAgent.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
* @param Request $request Current request * @param \nre\core\Request $request Current request
* @param Response $response Current response * @param \nre\core\Response $response Current response
* @param Logger $log Log-system * @param \nre\core\Logger $log Log-system
*/ */
protected function __construct(\nre\core\Request $request, \nre\core\Response $response, \nre\core\Logger $log=null) protected function __construct(\nre\core\Request $request, \nre\core\Response $response, \nre\core\Logger $log=null)
{ {
@ -106,10 +106,10 @@
/** /**
* Run the Controller of this Agent and its SubAgents. * Run the Controller of this Agent and its SubAgents.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @param Request $request Current request * @param \nre\core\Request $request Current request
* @param Response $response Current response * @param \nre\core\Response $response Current response
* @return Exception Last occurred exception of SubAgents * @return \Exception Last occurred exception of SubAgents
*/ */
public function run(\nre\core\Request $request, \nre\core\Response $response) public function run(\nre\core\Request $request, \nre\core\Response $response)
{ {
@ -156,7 +156,7 @@
/** /**
* Return the IntermediateAgent. * Return the IntermediateAgent.
* *
* @return IntermediateAgent IntermediateAgent * @return \nre\agents\IntermediateAgent IntermediateAgent
*/ */
public function getIntermediateAgent() public function getIntermediateAgent()
{ {
@ -169,10 +169,10 @@
/** /**
* Load a SubAgent and add it. * Load a SubAgent and add it.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws FatalDatamodelException * @throws \nre\exceptions\FatalDatamodelException
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @param string $agentName Name of the Agent to load * @param string $agentName Name of the Agent to load
* @param mixed Additional parameters for the agent * @param mixed Additional parameters for the agent
*/ */
@ -198,7 +198,7 @@
/** /**
* Load IntermediateAgent defined by the current request. * Load IntermediateAgent defined by the current request.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
*/ */
private function loadIntermediateAgent() private function loadIntermediateAgent()
{ {
@ -241,7 +241,7 @@
/** /**
* Load IntermediateAgent defined by the current request. * Load IntermediateAgent defined by the current request.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
*/ */
private function _loadIntermediateAgent() private function _loadIntermediateAgent()
{ {
@ -276,13 +276,13 @@
/** /**
* Run the Controller of this Agent and its SubAgents. * Run the Controller of this Agent and its SubAgents.
* *
* @throws AccessDeniedException * @throws \nre\exceptions\AccessDeniedException
* @throws IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param Request $request Current request * @param \nre\core\Request $request Current request
* @param Response $response Current response * @param \nre\core\Response $response Current response
* @return Exception Last occurred exception of SubAgents * @return \Exception Last occurred exception of SubAgents
*/ */
private function _run(\nre\core\Request $request, \nre\core\Response $response) private function _run(\nre\core\Request $request, \nre\core\Response $response)
{ {
@ -304,11 +304,11 @@
/** /**
* Run IntermediateAgent. * Run IntermediateAgent.
* *
* @throws AccessDeniedException * @throws \nre\exceptions\AccessDeniedException
* @throws ParamsNotValidException * @throws \nre\exceptions\ParamsNotValidException
* @throws IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
*/ */
private function runIntermediateAgent() private function runIntermediateAgent()
{ {
@ -323,8 +323,8 @@
* Handle an error that occurred during * Handle an error that occurred during
* loading/cnostructing/running of the IntermediateAgent. * loading/cnostructing/running of the IntermediateAgent.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @param Exception $exception Occurred exception * @param \Exception $exception Occurred exception
* @param int $httpStatusCode HTTP-statuscode * @param int $httpStatusCode HTTP-statuscode
* @param string $stage Stage of execution * @param string $stage Stage of execution
*/ */

View file

@ -156,7 +156,7 @@
* Handle an error that orrcurred during the * Handle an error that orrcurred during the
* loading/constructing/running of the ToplevelAgent. * loading/constructing/running of the ToplevelAgent.
* *
* @param Exception $exception Occurred exception * @param \Exception $exception Occurred exception
* @param int $httpStatusCode HTTP-statuscode * @param int $httpStatusCode HTTP-statuscode
*/ */
private function error(\nre\core\Exception $exception, $httpStatusCode) private function error(\nre\core\Exception $exception, $httpStatusCode)

View file

@ -64,8 +64,8 @@
* Load the class of an Agent. * Load the class of an Agent.
* *
* @static * @static
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @param string $agentName Name of the Agent to load * @param string $agentName Name of the Agent to load
*/ */
public static function load($agentName) public static function load($agentName)
@ -97,17 +97,17 @@
* Instantiate an Agent (Factory Pattern). * Instantiate an Agent (Factory Pattern).
* *
* @static * @static
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
* @param string $agentName Name of the Agent to instantiate * @param string $agentName Name of the Agent to instantiate
* @param Request $request Current request * @param Request $request Current request
* @param Response $response Current response * @param Response $respone Current respone
* @param Logger $log Log-system * @param Logger $log Log-system
*/ */
public static function factory($agentName, Request $request, Response $response, Logger $log=null) public static function factory($agentName, Request $request, Response $response, Logger $log=null)
@ -156,16 +156,16 @@
/** /**
* Construct a new Agent. * Construct a new Agent.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
* @param Request $request Current request * @param Request $request Current request
* @param Response $response Current response * @param Response $respone Current response
* @param Logger $log Log-system * @param Logger $log Log-system
*/ */
protected function __construct(Request $request, Response $response, Logger $log=null) protected function __construct(Request $request, Response $response, Logger $log=null)
@ -188,13 +188,13 @@
/** /**
* Run the Controller of this Agent and its SubAgents. * Run the Controller of this Agent and its SubAgents.
* *
* @throws ParamsNotValidException * @throws \nre\exceptions\ParamsNotValidException
* @throws IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws ActionNotFoundException * @throws \nre\exceptions\ActionNotFoundException
* @param Request $request Current request * @param Request $request Current request
* @param Response $response Current response * @param Response $response Current response
* @return Exception Last occurred exception of SubAgents * @return \Exception Last occurred exception of SubAgents
*/ */
public function run(Request $request, Response $response) public function run(Request $request, Response $response)
{ {
@ -302,14 +302,14 @@
/** /**
* Load the Controller of this Agent. * Load the Controller of this Agent.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
*/ */
protected function loadController() protected function loadController()
{ {
@ -342,7 +342,7 @@
/** /**
* Log an error. * Log an error.
* *
* @param Exception $exception Occurred exception * @param \Exception $exception Occurred exception
* @param int $logMode Log mode * @param int $logMode Log mode
*/ */
protected function log($exception, $logMode) protected function log($exception, $logMode)
@ -361,9 +361,9 @@
/** /**
* Load a SubAgent and add it. * Load a SubAgent and add it.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @param string $agentName Name of the Agent to load * @param string $agentName Name of the Agent to load
* @param mixed Additional parameters for the agent * @param mixed Additional parameters for the agent
*/ */
@ -387,10 +387,10 @@
/** /**
* Load a SubAgent and add it. * Load a SubAgent and add it.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @param string $agentName Name of the Agent to load * @param string $agentName Name of the Agent to load
* @param mixed Additional parameters for the agent * @param mixed Additional parameters for the agent
*/ */
@ -444,7 +444,7 @@
/** /**
* Create a new SubAgent. * Create a new SubAgent.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param string $agentName Agent name * @param string $agentName Agent name
* @return array SubAgent * @return array SubAgent
*/ */
@ -500,9 +500,9 @@
/** /**
* Handle the exception of a SubAgent. * Handle the exception of a SubAgent.
* *
* @param Agent $subAgent SubAgent to handle error of * @param array $subAgent Original (Sub-) Agent
* @param Request $request Current request * @param Request $request Current request
* @param Exception $exception Occurred exception * @param Excepiton $exception Occurred exception
* @return array InlineError-SubAgent * @return array InlineError-SubAgent
*/ */
private function errorInline($subAgent, $request, $exception) private function errorInline($subAgent, $request, $exception)
@ -533,7 +533,7 @@
* Create a new InlineError. * Create a new InlineError.
* *
* @param string $label Name of the original Agent * @param string $label Name of the original Agent
* @param Exception $exception Occurred exception * @param \Exception $exception Occurred exception
*/ */
private function newInlineError($label, $exception) private function newInlineError($label, $exception)
{ {

View file

@ -31,7 +31,7 @@
/** /**
* Der Toplevelagent * Der Toplevelagent
* *
* @var ToplevelAgent * @var \nre\agents\ToplevelAgent
*/ */
private $toplevelAgent = null; private $toplevelAgent = null;
/** /**
@ -74,17 +74,17 @@
/** /**
* Run the application. * Run the application.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
* @return Exception Last occurred exception of an subagent * @return \Exception Last occurred exception of an subagent
*/ */
public function run() public function run()
{ {
@ -116,7 +116,7 @@
/** /**
* Log an exception * Log an exception
* *
* @param Exception $exception Occurred exception * @param \Exception $exception Occurred exception
* @param int $logMode Log-mode * @param int $logMode Log-mode
*/ */
protected function log($exception, $logMode) protected function log($exception, $logMode)
@ -133,9 +133,9 @@
/** /**
* Load the ToplevelAgent specified by the request. * Load the ToplevelAgent specified by the request.
* *
* @throws ServiceUnavailableException * @throws \nre\exceptions\ServiceUnavailableException
* @throws AgentNotValidException * @throws \nre\exceptions\AgentNotValidException
* @throws AgentNotFoundException * @throws \nre\exceptions\AgentNotFoundException
*/ */
private function loadToplevelAgent() private function loadToplevelAgent()
{ {

View file

@ -26,8 +26,8 @@
/** /**
* Load a class. * Load a class.
* *
* @throws ClassNotFoundException * @throws \nre\exceptions\ClassNotFoundException
* @param string $fullClassName Name of the class to load * @param string $className Name of the class to load
*/ */
public static function load($fullClassName) public static function load($fullClassName)
{ {
@ -55,7 +55,7 @@
/** /**
* Check inheritance of a class. * Check inheritance of a class.
* *
* @throws ClassNotValidException * @throws \nre\exceptions\ClassNotValidException
* @param string $className Name of the class to check * @param string $className Name of the class to check
* @param string $parentClassName Name of the parent class * @param string $parentClassName Name of the parent class
*/ */

View file

@ -26,8 +26,8 @@
/** /**
* Load the class of a Component. * Load the class of a Component.
* *
* @throws ComponentNotFoundException * @throws \nre\exceptions\ComponentNotFoundException
* @throws ComponentNotValidException * @throws \nre\exceptions\ComponentNotValidException
* @param string $componentName Name of the Component to load * @param string $componentName Name of the Component to load
*/ */
public static function load($componentName) public static function load($componentName)

View file

@ -56,8 +56,8 @@
/** /**
* Load the class of a Controller. * Load the class of a Controller.
* *
* @throws ControllerNotFoundException * @throws \nre\exceptions\ControllerNotFoundException
* @throws ControllerNotValidException * @throws \nre\exceptions\ControllerNotValidException
* @param string $controllerName Name of the Controller to load * @param string $controllerName Name of the Controller to load
*/ */
public static function load($controllerName) public static function load($controllerName)
@ -84,16 +84,16 @@
/** /**
* Instantiate a Controller (Factory Pattern). * Instantiate a Controller (Factory Pattern).
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @param string $controllerName Name of the Controller to instantiate * @param string $controllerName Name of the Controller to instantiate
* @param string $layoutName Name of the current Layout * @param string $layoutName Name of the current Layout
* @param string $action Current Action * @param string $action Current Action
* @param string $agent Name of Agent * @param string $agent Corresponding Agent
*/ */
public static function factory($controllerName, $layoutName, $action, $agent) public static function factory($controllerName, $layoutName, $action, $agent)
{ {
@ -125,11 +125,11 @@
/** /**
* Construct a new Controller. * Construct a new Controller.
* *
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @param string $layoutName Name of the current Layout * @param string $layoutName Name of the current Layout
* @param string $action Current Action * @param string $action Current Action
* @param Agent $agent Corresponding Agent * @param Agent $agent Corresponding Agent
@ -186,10 +186,10 @@
* This method executes the Action of the Controller defined by * This method executes the Action of the Controller defined by
* the current Request. * the current Request.
* *
* @throws ParamsNotValidException * @throws \nre\exceptions\ParamsNotValidException
* @throws IdNotFoundException * @throws \nre\exceptions\IdNotFoundException
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws ActionNotFoundException * @throws \nre\exceptions\ActionNotFoundException
* @param Request $request Current request * @param Request $request Current request
* @param Response $response Current response * @param Response $response Current response
*/ */
@ -309,8 +309,8 @@
/** /**
* Load the Components of this Controller. * Load the Components of this Controller.
* *
* @throws ComponentNotValidException * @throws \nre\exceptions\ComponentNotValidException
* @throws ComponentNotFoundException * @throws \nre\exceptions\ComponentNotFoundException
*/ */
private function loadComponents() private function loadComponents()
{ {
@ -348,11 +348,11 @@
/** /**
* Load the Models of this Controller. * Load the Models of this Controller.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
*/ */
protected function loadModels() protected function loadModels()
{ {
@ -405,7 +405,7 @@
/** /**
* Load the View of this Controller. * Load the View of this Controller.
* *
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @param string $layoutName Name of the current Layout * @param string $layoutName Name of the current Layout
* @param string $action Current Action * @param string $action Current Action
*/ */

View file

@ -26,8 +26,8 @@
/** /**
* Load the class of a Driver. * Load the class of a Driver.
* *
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @param string $driverName Name of the Driver to load * @param string $driverName Name of the Driver to load
*/ */
public static function load($driverName) public static function load($driverName)
@ -55,7 +55,7 @@
* Instantiate a Driver (Factory Pattern). * Instantiate a Driver (Factory Pattern).
* *
* @param string $driverName Name of the Driver to instantiate * @param string $driverName Name of the Driver to instantiate
* @param mixed $config Driver configuration * @param array $config Configuration settings
*/ */
public static function factory($driverName, $config) public static function factory($driverName, $config)
{ {

View file

@ -22,7 +22,7 @@
/** /**
* Current request * Current request
* *
* @var Request * @var \nre\core\Request
*/ */
private $request; private $request;
@ -32,7 +32,7 @@
/** /**
* Construct a new linker. * Construct a new linker.
* *
* @param Request $request Current request * @param \nre\core\Request $request Current request
*/ */
function __construct(\nre\requests\WebRequest $request) function __construct(\nre\requests\WebRequest $request)
{ {
@ -213,10 +213,10 @@
/** /**
* Create a link. * Create a link.
* *
* @param Request $request Current request * @param \nre\core\Request $request Current request
* @param Response $response Current response * @param \nre\core\Response $response Current response
* @param bool $absolute Create absolute link
* @param string $anchor Anchor on target * @param string $anchor Anchor on target
* @param bool $absolute Create absolute link
* @return string Created link * @return string Created link
*/ */
private static function createLink(Request $request, Response $response, $anchor=null, $absolute=false) private static function createLink(Request $request, Response $response, $anchor=null, $absolute=false)
@ -276,7 +276,7 @@
* Adapt a link to the environment. * Adapt a link to the environment.
* *
* @param string $url URL * @param string $url URL
* @param Request $request Current request * @param \nre\core\Request $request Current request
* @param bool $absolute Create absolute URL * @param bool $absolute Create absolute URL
* @return string Adapted URL * @return string Adapted URL
*/ */

View file

@ -26,8 +26,8 @@
/** /**
* Load the class of a Model. * Load the class of a Model.
* *
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @param string $modelName Name of the Model to load * @param string $modelName Name of the Model to load
*/ */
public static function load($modelName) public static function load($modelName)
@ -88,11 +88,11 @@
* *
* TODO Catch exception * TODO Catch exception
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
*/ */
protected function __construct() protected function __construct()
{ {
@ -106,11 +106,11 @@
/** /**
* Load the Models of this Model. * Load the Models of this Model.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @throws ModelNotValidException * @throws \nre\exceptions\ModelNotValidException
* @throws ModelNotFoundException * @throws \nre\exceptions\ModelNotFoundException
*/ */
private function loadModels() private function loadModels()
{ {

View file

@ -34,7 +34,7 @@
/** /**
* Load and instantiate the View of an Agent. * Load and instantiate the View of an Agent.
* *
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @param string $layoutName Name of Layout in use * @param string $layoutName Name of Layout in use
* @param string $agentName Name of the Agent * @param string $agentName Name of the Agent
* @param string $action Current Action * @param string $action Current Action
@ -51,7 +51,7 @@
/** /**
* Construct a new View. * Construct a new View.
* *
* @throws ViewNotFoundException * @throws \nre\exceptions\ViewNotFoundException
* @param string $layoutName Name of Layout in use * @param string $layoutName Name of Layout in use
* @param string $agentName Name of the Agent * @param string $agentName Name of the Agent
* @param string $action Current Action * @param string $action Current Action

View file

@ -77,7 +77,7 @@
/** /**
* Establish a connect to a MqSQL-database. * Establish a connect to a MqSQL-database.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param array $config Connection and login settings * @param array $config Connection and login settings
*/ */
protected abstract function connect($config); protected abstract function connect($config);

View file

@ -26,7 +26,7 @@
/** /**
* Construct a MySQL-driver. * Construct a MySQL-driver.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param array $config Connection and login settings * @param array $config Connection and login settings
*/ */
function __construct($config) function __construct($config)
@ -40,7 +40,7 @@
/** /**
* Execute a SQL-query. * Execute a SQL-query.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param string $query Query to run * @param string $query Query to run
* @param mixed Params * @param mixed Params
* @return array Result * @return array Result
@ -135,7 +135,7 @@
/** /**
* Establish a connect to a MqSQL-database. * Establish a connect to a MqSQL-database.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param array $config Connection and login settings * @param array $config Connection and login settings
*/ */
protected function connect($config) protected function connect($config)

View file

@ -45,7 +45,7 @@
/** /**
* Construct a new exception. * Construct a new exception.
* *
* @param Exception $exception Exception that has occurred * @param \Exception $exception Exception that has occurred
*/ */
function __construct($exception) function __construct($exception)
{ {
@ -65,7 +65,7 @@
/** /**
* Get the exception that hat occurred * Get the exception that hat occurred
* *
* @return Exception Exception that has occurred * @return \Exception Exception that has occurred
*/ */
public function getException() public function getException()
{ {

View file

@ -33,9 +33,9 @@
/** /**
* Construct a new datamase model. * Construct a new datamase model.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @param string $type Database type * @param string $type Database type
* @param array $config Connection settings * @param array $config Connection settings
*/ */
@ -56,8 +56,8 @@
/** /**
* Load the database driver. * Load the database driver.
* *
* @throws DriverNotFoundException * @throws \nre\exceptions\DriverNotFoundException
* @throws DriverNotValidException * @throws \nre\exceptions\DriverNotValidException
* @param string $driverName Name of the database driver * @param string $driverName Name of the database driver
*/ */
private function loadDriver($driverName) private function loadDriver($driverName)
@ -69,7 +69,7 @@
/** /**
* Establish a connection to the database. * Establish a connection to the database.
* *
* @throws DatamodelException * @throws \nre\exceptions\DatamodelException
* @param string $driverName Name of the database driver * @param string $driverName Name of the database driver
* @param array $config Connection settings * @param array $config Connection settings
*/ */