aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-02 17:04:42 -0300
committerSilvio <silvio@devlet.com.br>2010-07-02 17:04:42 -0300
commit7d1bb45d8405d6a70ce5ebfa949c51b969bc0766 (patch)
tree8bf98f3d2afa03ec959aff2f230d0eba5d3b5888 /classes
parent67c312ff0f171065c133985cdc98187bde108c39 (diff)
downloadcinisis-7d1bb45d8405d6a70ce5ebfa949c51b969bc0766.tar.gz
cinisis-7d1bb45d8405d6a70ce5ebfa949c51b969bc0766.tar.bz2
Adding IsisConnector::getFieldKey()
Diffstat (limited to 'classes')
-rw-r--r--classes/IsisConnector.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php
index 1111672..adc4047 100644
--- a/classes/IsisConnector.php
+++ b/classes/IsisConnector.php
@@ -298,6 +298,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.
*
* @param &$values