diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-24 15:53:45 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-24 15:53:45 -0300 |
commit | e3e32378e9c75303d32c7c7af92852884f73afa0 (patch) | |
tree | 73b1709b20c4bc5bf3be7abd5c92743b5629297f /classes/IsisMap.php | |
parent | 55016ae8470f0afa5f49addb70ffb07e81f893d8 (diff) | |
download | cinisis-e3e32378e9c75303d32c7c7af92852884f73afa0.tar.gz cinisis-e3e32378e9c75303d32c7c7af92852884f73afa0.tar.bz2 |
Using radio buttons for field and subfield selection on apps
Diffstat (limited to 'classes/IsisMap.php')
-rw-r--r-- | classes/IsisMap.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/classes/IsisMap.php b/classes/IsisMap.php index e73e178..05c7ae9 100644 --- a/classes/IsisMap.php +++ b/classes/IsisMap.php @@ -279,6 +279,25 @@ class IsisMap extends IsisReader { } /** + * Get all subfield names. + * + * @param $field_key + * Field key. + * + * @return + * Array with subfield names. + */ + public function getSubfieldNames($field_key) { + $subfields = array(); + + foreach ($this->format['fields'][$field_key]['subfields'] as $key => $value) { + $subfields[$key] = $value; + } + + return $subfields; + } + + /** * Get a field name. * * @param $field_key @@ -290,4 +309,20 @@ class IsisMap extends IsisReader { public function getFieldName($field_key) { return $this->format['fields'][$field_key]['name']; } + + /** + * Get all field names. + * + * @return + * Array with field names. + */ + public function getFieldNames() { + $fields = array(); + + foreach ($this->format['fields'] as $key => $field) { + $fields[$key] = $field['name']; + } + + return $fields; + } } |