File: D:/HostingSpaces/SBogers59/ferrumbv.nl/wwwroot/lib/mvc/model.class.php
<?php
/**
* model.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 3/20/13
*/
class Model
{
// Errors
protected $errors;
// Language
protected $lang = array();
protected $urls = array();
/*
* Construct
*/
public function __construct(){}
/*
* 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;
}
/*
* Set the language property
*/
public function setLang($lang, $urls)
{
$this->lang = $lang;
$this->urls = $urls;
}
}