Version 0.7.0 beta - update for database functionality

This commit is contained in:
Stephan Kasdorf
2019-01-27 16:20:25 +01:00
parent a2bb8a2f48
commit 7bc5198d31
14 changed files with 1477 additions and 31 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Nibiru\Model\[FOLDERNAME];
use Nibiru\Adapter\[ADAPTER]\Db;
use Nibiru\Pdo;
/**
* Created by PhpStorm.
* User: kasdorf
* Date: 10.11.17
* Time: 09:38
*/
class [CLASSNAME] extends Db
{
const TABLE = array(
'table' => '[TABLE]',
'fields' => [FIELDARRAY]
);
public function __construct()
{
[ADAPTER]::settingsSection('[DBSECTION]');
self::initTable( self::TABLE );
}
public function getTableInfo()
{
return self::TABLE;
}
public function insertArrayIntoTable($dataset = array())
{
// TODO: Implement insertArrayIntoTable() method.
}
}