From 9ab3bfc0da2ea1f3d28bef5dd3b339cdac029665 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 20 Sep 2013 22:13:02 +0400 Subject: [PATCH] Add TODO in SqlResultProvider. --- model/SqlResultProvider.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/SqlResultProvider.php b/model/SqlResultProvider.php index ff9f3b8..78534d9 100644 --- a/model/SqlResultProvider.php +++ b/model/SqlResultProvider.php @@ -59,11 +59,21 @@ class SqlResultProvider return $this->result_items; } + /** + * @param $key + * @return mixed + * TODO: метод актуален только после вызова assoc + */ public function fetchKey($key) { return $this->result_items[$key]; } + /** + * @param $field + * @return mixed + * TODO: метод не актуален после вызова assoc с параметров assoc_as_array = true + */ public function fetchField($field) { return current($this->result_items)->{$field};