File: D:/HostingSpaces/SBogers10/lab.komma-mediadesign.nl/wwwroot/lab/lib/model.class.php
<?php
/**
* model.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 3/20/13
*/
class Model
{
/*
* @property DatabaseHandler $Db
* Handles all basic select/update/insert queries
*/
protected $Db;
/*
* @property array $errors
*/
protected $errors;
public function __construct()
{
$this->Db = new DatabaseHandler();
}
/*
* This function is called by a controller when something goes wrong.
* If any errors are set, return them to the controller.
*/
public function getErrors()
{
if(count($this->errors) > 0)
{
return $this->errors;
}
return false;
}
}