diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-02 17:04:42 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-02 17:04:42 -0300 |
commit | 7d1bb45d8405d6a70ce5ebfa949c51b969bc0766 (patch) | |
tree | 8bf98f3d2afa03ec959aff2f230d0eba5d3b5888 | |
parent | 67c312ff0f171065c133985cdc98187bde108c39 (diff) | |
download | cinisis-7d1bb45d8405d6a70ce5ebfa949c51b969bc0766.tar.gz cinisis-7d1bb45d8405d6a70ce5ebfa949c51b969bc0766.tar.bz2 |
Adding IsisConnector::getFieldKey()
-rw-r--r-- | classes/IsisConnector.php | 13 |
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 |