From ed250793255353582ae32d2cf5dc726004f3e0d8 Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 19 Aug 2010 10:51:05 -0300 Subject: Using field array instead of field name at IsisFinder --- classes/IsisConnector.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'classes/IsisConnector.php') diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index 64a6c59..09bb8ea 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -447,6 +447,23 @@ class IsisConnector { return array_search($field, $this->format['fields']); } + /** + * Get the array which defines a field. + * + * @param $field_key + * Field key. + * + * @return + * Field array. + */ + public function getFieldArray($field_key) { + if (isset($this->format['fields'][$field_key])) { + return $this->format['fields'][$field_key]; + } + + return NULL; + } + /** * Remove brackets from strings whithin an array. * -- cgit v1.2.3