|
@ -59,11 +59,21 @@ class SqlResultProvider |
|
|
return $this->result_items; |
|
|
return $this->result_items; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @param $key |
|
|
|
|
|
* @return mixed |
|
|
|
|
|
* TODO: метод актуален только после вызова assoc |
|
|
|
|
|
*/ |
|
|
public function fetchKey($key) |
|
|
public function fetchKey($key) |
|
|
{ |
|
|
{ |
|
|
return $this->result_items[$key]; |
|
|
return $this->result_items[$key]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @param $field |
|
|
|
|
|
* @return mixed |
|
|
|
|
|
* TODO: метод не актуален после вызова assoc с параметров assoc_as_array = true |
|
|
|
|
|
*/ |
|
|
public function fetchField($field) |
|
|
public function fetchField($field) |
|
|
{ |
|
|
{ |
|
|
return current($this->result_items)->{$field}; |
|
|
return current($this->result_items)->{$field}; |
|
|