aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-09-08 18:44:19 -0300
committerSilvio <silvio@devlet.com.br>2010-09-08 18:44:19 -0300
commitaaf77d9ffa20677ade451c1008aa25733dc572dc (patch)
treea9ab2a7ea7aa5015c7ce594e7c134f988ab8e45d
parentf49ad3720c73f21562f6699d7c6c3f1fae89e35e (diff)
downloadcinisis-aaf77d9ffa20677ade451c1008aa25733dc572dc.tar.gz
cinisis-aaf77d9ffa20677ade451c1008aa25733dc572dc.tar.bz2
Adding function getFullMap into IsisMap
-rw-r--r--classes/IsisMap.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/IsisMap.php b/classes/IsisMap.php
index 61df038..5e800f8 100644
--- a/classes/IsisMap.php
+++ b/classes/IsisMap.php
@@ -330,4 +330,21 @@ class IsisMap extends IsisReader {
return $fields;
}
+
+ /**
+ * Get the full map.
+ *
+ * @param $field
+ * Field key.
+ *
+ * @return
+ * Array with full map or false if there is no map.
+ */
+ public function getFullMap($field) {
+ if (isset($field['map'])) {
+ return $field['map'];
+ }
+
+ return FALSE;
+ }
}