Пример #1
0
 public function __construct($connection, $sql)
 {
     parent::__construct($connection, $sql);
     $this->queryResult = null;
 }
Пример #2
0
 /**
  * @param IEngConnection $connection
  * @param string $sql
  */
 public function __construct(IEngConnection $connection, $sql)
 {
     parent::__construct($connection, $sql);
     $this->queryResult = null;
     $this->mysqliConnection = $connection;
 }
Пример #3
0
 protected function LastError()
 {
     if (isset($this->lastException)) {
         return $this->lastException->getMessage();
     } else {
         return parent::LastError();
     }
 }
Пример #4
0
 public function GetFieldValues()
 {
     $result = array();
     foreach ($this->GetFields() as $field) {
         $result[$field->GetNameInDataset()] = $field->GetDisplayValue($this->dataReader->GetFieldValueByName($field->GetNameInDataset()));
     }
     return $result;
 }
Пример #5
0
 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);
         }
     }
 }
Пример #6
0
 public function __construct(SqlSrvConnection $connection, $sql)
 {
     parent::__construct($connection, $sql);
     $this->queryResult = null;
     $this->sqlSrvConnection = $connection;
 }
Пример #7
0
 protected function LastError()
 {
     if ($this->queryResult) {
         $errorArray = oci_error($this->queryResult);
     } else {
         $errorArray = parent::LastError();
     }
     return $errorArray['message'];
 }
Пример #8
0
 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);
 }