/** * Constructor * * @param DBConnector $oConnector The connector to use. * * @return void */ protected function __construct(DBAbstractConnector $oConnector) { parent::__construct($oConnector); }
<?php /** * Created by PhpStorm. * User: dutoitd1 * Date: 2014/10/08 * Time: 1:29 PM */ $path = explode(DIRECTORY_SEPARATOR, __FILE__); include_once "IncludesAndClasses/DBBase.class.php"; include_once @"IncludesAndClasses/BranchBase.class.php"; include_once "IncludesAndClasses/functions.inc.php"; $dbBaseClass = new DBBase(); $BranchBase = new BranchBase(); $BranchRecord = $BranchBase::$Branch; $name = $BranchRecord['BranchCode']['FieldName']; $help = $BranchRecord['BranchCode']['Helptext']; initializeFieldParametersArray($fieldParams); $t = array_key_exists(FieldParameters::class_par, $BranchRecord['BranchCode'][0]); $v1 = $BranchRecord['BranchCode'][0][FieldParameters::class_par]; $t = array_key_exists(FieldParameters::groupIdName_par, $BranchRecord['BranchCode'][0]); $t = array_key_exists(FieldParameters::autoRefresh_par, $BranchRecord['BranchCode'][0]); $BranchRecord['BranchCode']['Value'] = "Branch'Code"; $BranchRecord['Name']['Value'] = "Names's"; $BranchRecord['Active']['Value'] = '0'; $BranchRecord['ContactPersonName']['Value'] = 'ContactPersonName'; $BranchRecord['PhoneNumber']['Value'] = '(012)2311234'; $BranchRecord['FaxNumber']['Value'] = '(012)2311234'; $BranchRecord['Longitude']['Value'] = '123.4567'; $BranchRecord['Latitude']['Value'] = '123.4567'; $BranchBase->update('Branch', 'id', 1, $BranchRecord);
public static function commit_implicit_transaction() { if (isset(DBBase::$transaction_in_progress) && DBBase::$transaction_in_progress->is_implicit) { DBBase::commit(); } }