Abel Hoogeveen
c5318a2e99
\FuzeWorks for Core classes \Controller for controller classes \Model for model classes \Module for modules Also did the following changes: - DatabaseModel now loads the database module as a dependency - DatabaseModel is no longer abstract because of ModelServer - Implemented a new mechanism for model types in the name of a ModelServer. This interface requires a Model Type Server to return a Model parent class based on a given type - Added a backtrace to the logger class for easy and fast debugging And that was it for this commit
17 lines
325 B
PHP
17 lines
325 B
PHP
<?php
|
|
|
|
namespace Model;
|
|
use \FuzeWorks\Model;
|
|
|
|
class Example extends Model{
|
|
|
|
public function __construct(&$core){
|
|
parent::__construct($core);
|
|
|
|
$this->setType('techfuze/databasemodel', 'DatabaseModel');
|
|
$this->fields = array('id', 'key', 'value');
|
|
$this->table = 'example';
|
|
}
|
|
}
|
|
|
|
?>
|