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

@@ -32,6 +32,7 @@ dbmodel = "/../../application/model/"
module = "/../../application/module/"
interfaces = "/../../application/interfaces/"
trait = "/../../application/trait/"
entriesperpage = 4
background.img[] = "public/img/nibiru3.jpg"
smarty.css[] = "public/css/v3/roboto.css"
smarty.css[] = "public/css/v3/toolkit-inverse.css"
@@ -57,12 +58,24 @@ username = "YOURUSER"
password = "YOURPASSWORD"
hostname = "SERVERHOST"
basename = "DATABASENAME"
driver = "mysql"
port = "3306"
;;driver = "mysql"
;;port = "3306"
;;Postgres UNIXodbc
;;driver = "PSQL"
;;port = "5432"
;;readonly = "No"
driver = "psql"
port = "5432"
readonly = "No"
multithreading = 4
encoding = "UTF-8"
[GENERATOR]
odbc = false
database = true
database.overwrite = false
controller = true
config-section = "DATABASE"
folder-out = "/../../application/model/"
modeltemplate = "/../../application/settings/db/db.class.mask"
[SECURITY]
password_hash = "YOURPWHASH"

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.
}
}