From 93ce15dd6a512f5d29fa230fba69bf796ccb4ff6 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 25 Jun 2010 18:28:37 -0300 Subject: Adding IsisConnector::getFields() --- classes/IsisConnector.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'classes') diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index 4577a23..6467959 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -38,6 +38,21 @@ class IsisConnector { return $this->result; } + /** + * Get all values of a given field. + * + * @param $field + * Field array. + * + * @return + * Field data. + */ + public function getFields($field) { + if (isset($this->result[$field['name']])) { + return $this->result[$field['name']]; + } + } + /** * Get the value of a given field. * -- cgit v1.2.3