Browse Source

Add TODO in SqlResultProvider.

namespace
Alexander Demidov 11 years ago
parent
commit
9ab3bfc0da
  1. 10
      model/SqlResultProvider.php

10
model/SqlResultProvider.php

@ -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};

Loading…
Cancel
Save