public function __construct($connection, $sql) { parent::__construct($connection, $sql); $this->queryResult = null; }
/** * @param IEngConnection $connection * @param string $sql */ public function __construct(IEngConnection $connection, $sql) { parent::__construct($connection, $sql); $this->queryResult = null; $this->mysqliConnection = $connection; }
protected function LastError() { if (isset($this->lastException)) { return $this->lastException->getMessage(); } else { return parent::LastError(); } }
public function GetFieldValues() { $result = array(); foreach ($this->GetFields() as $field) { $result[$field->GetNameInDataset()] = $field->GetDisplayValue($this->dataReader->GetFieldValueByName($field->GetNameInDataset())); } return $result; }
public function GetActualFieldValue(&$fieldName, $value) { $fieldInfo = $this->GetFieldInfoByFieldName($fieldName); if (!isset($fieldInfo)) { return parent::GetActualFieldValue($fieldName, $value); } else { if ($fieldInfo->FieldType == ftBoolean) { return $value == 't' or $value == '1'; } else { return parent::GetActualFieldValue($fieldName, $value); } } }
public function __construct(SqlSrvConnection $connection, $sql) { parent::__construct($connection, $sql); $this->queryResult = null; $this->sqlSrvConnection = $connection; }
protected function LastError() { if ($this->queryResult) { $errorArray = oci_error($this->queryResult); } else { $errorArray = parent::LastError(); } return $errorArray['message']; }
public function GetActualFieldValue(&$fieldName, $value) { $fieldInfo = $this->GetFieldInfoByFieldName($fieldName); if (!isset($fieldInfo)) return parent::GetActualFieldValue($fieldName, $value); else if ($fieldInfo->FieldType == ftBoolean) return ($value == 't') or ($value == '1'); else return parent::GetActualFieldValue($fieldName, $value); }