aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-06-25 18:28:37 -0300
committerSilvio <silvio@devlet.com.br>2010-06-25 18:28:37 -0300
commit93ce15dd6a512f5d29fa230fba69bf796ccb4ff6 (patch)
tree3eb76c757727c7cc36d14b2e2f51f72c080da541
parent9b07549642ff1d9accb76912f980df9d5159a5d3 (diff)
downloadcinisis-93ce15dd6a512f5d29fa230fba69bf796ccb4ff6.tar.gz
cinisis-93ce15dd6a512f5d29fa230fba69bf796ccb4ff6.tar.bz2
Adding IsisConnector::getFields()
-rw-r--r--classes/IsisConnector.php15
-rw-r--r--schemas/fbe.yaml3
2 files changed, 18 insertions, 0 deletions
diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php
index 4577a23..6467959 100644
--- a/classes/IsisConnector.php
+++ b/classes/IsisConnector.php
@@ -39,6 +39,21 @@ class IsisConnector {
}
/**
+ * Get all values of a given field.
+ *
+ * @param $field
+ * Field array.
+ *
+ * @return
+ * Field data.
+ */
+ public function getFields($field) {
+ if (isset($this->result[$field['name']])) {
+ return $this->result[$field['name']];
+ }
+ }
+
+ /**
* Get the value of a given field.
*
* @param $field
diff --git a/schemas/fbe.yaml b/schemas/fbe.yaml
index 5f03e32..6b95e85 100644
--- a/schemas/fbe.yaml
+++ b/schemas/fbe.yaml
@@ -84,6 +84,9 @@ fields:
24:
name: GĂȘnero
repeat: Yes
+ map:
+ type: FilmGenres
+ field: description
25:
name: Sinopse/Enredo
repeat: Yes