initial: bootstrap from BukidBountyApp base
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
|
||||
class DB_TABLENAME
|
||||
{
|
||||
public $DB = false;
|
||||
public $tablename = 'users';
|
||||
|
||||
use BASICDB;
|
||||
public function __construct($DB = false)
|
||||
{
|
||||
if (!$DB) {
|
||||
$DB = DB();
|
||||
}
|
||||
if (!$DB) {
|
||||
return false;
|
||||
}
|
||||
if ($DB) {
|
||||
$this->DB = $DB;
|
||||
}
|
||||
if (!$this->tablename) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
function NewRecord()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class DB_TABLENAME_QUICK_MULTIPLESEARCH
|
||||
{
|
||||
use DBClassSearch;
|
||||
public $data;
|
||||
|
||||
public $tablename = 'tablename';
|
||||
|
||||
private $parentidresults = [];
|
||||
|
||||
|
||||
public function __construct($data = [], $likefields = [], $fieldstoselectarray = '', $orderby = '', $noindex = 0, $whereappend = ' and ', $dateonlyarray = '', $newdata = false)
|
||||
{
|
||||
return $this->initialize($data, $likefields, $fieldstoselectarray, $orderby, $noindex, $whereappend, $dateonlyarray, $newdata);
|
||||
}
|
||||
|
||||
function FindName($uid)
|
||||
{
|
||||
return $this->Find($fieldname = 'uid', $contenttosearch = $uid, $exact = true)[0]['name'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function DB_TABLENAME($DB=false){
|
||||
return new DB_TABLENAME($DB);
|
||||
}
|
||||
function DB_TABLENAME_QUICK_MULTIPLESEARCH($DB=false){
|
||||
return new DB_TABLENAME_QUICK_MULTIPLESEARCH($DB);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user