From 7d1bb45d8405d6a70ce5ebfa949c51b969bc0766 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 2 Jul 2010 17:04:42 -0300 Subject: Adding IsisConnector::getFieldKey() --- classes/IsisConnector.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index 1111672..adc4047 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -297,6 +297,19 @@ class IsisConnector { } } + /** + * Get the key of a field entry. + * + * @param $field + * Field array. + * + * @return + * Field key. + */ + public function getFieldKey($field) { + return array_search($field, $this->format['fields']); + } + /** * Remove brackets from strings whithin an array. * -- cgit v1.2.3