Version 0.7.0 beta - update for database functionality
This commit is contained in:
@@ -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"
|
||||
36
application/settings/db/db.class.mask
Executable file
36
application/settings/db/db.class.mask
Executable 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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user