Version 0.9.6 beta - changed the model class mapper
This commit is contained in:
@@ -1,18 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Nibiru\Model\[FOLDERNAME];
|
namespace Nibiru\Model\[FOLDERNAME];
|
||||||
use Nibiru\Adapter\[ADAPTER]\Db;
|
use Nibiru\Adapter\[ADAPTER]\Db;
|
||||||
use Nibiru\Pdo;
|
use Nibiru\Pdo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by PhpStorm.
|
* Class [TABLE]Model
|
||||||
* User: kasdorf
|
* @package Nibiru
|
||||||
* Date: 10.11.17
|
* @author Stephan Kasdorf
|
||||||
* Time: 09:38
|
* @date 03.04.23
|
||||||
|
* @copyright: 2023 Nibiru Framework, you may copy the code,
|
||||||
|
* but have to inform the author about where it
|
||||||
|
* is used. So happy copying.
|
||||||
|
* @licence: BSD 4-Old License
|
||||||
*/
|
*/
|
||||||
class [CLASSNAME] extends Db
|
class [CLASSNAME] extends Db
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[CLASSPARAMETERS]
|
||||||
|
|
||||||
const TABLE = array(
|
const TABLE = array(
|
||||||
'table' => '[TABLE]',
|
'table' => '[TABLE]',
|
||||||
'fields' => [FIELDARRAY]
|
'fields' => [FIELDARRAY]
|
||||||
@@ -28,5 +33,16 @@ class [CLASSNAME] extends Db
|
|||||||
{
|
{
|
||||||
return self::TABLE;
|
return self::TABLE;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @desc This are the class wide setters
|
||||||
|
* currently this is what is needed in order
|
||||||
|
* to run some addition
|
||||||
|
*/
|
||||||
|
[SETTERS]
|
||||||
|
/**
|
||||||
|
* @desc This are the class wide getters
|
||||||
|
* currently this is what is needed in order
|
||||||
|
* to run some addition
|
||||||
|
*/
|
||||||
|
[GETTERS]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user