aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-16 18:33:11 -0300
committerSilvio <silvio@devlet.com.br>2010-07-16 18:33:11 -0300
commitee93a3e79f21969548b920c20e4d9bdfa6f3ec5e (patch)
tree8f83915b38e5ab54dab11e60953c68f5f236b04c
parentd9f864a13f9216b7ee78a85c53d3184220eb01c3 (diff)
downloadcinisis-ee93a3e79f21969548b920c20e4d9bdfa6f3ec5e.tar.gz
cinisis-ee93a3e79f21969548b920c20e4d9bdfa6f3ec5e.tar.bz2
TODO: main mapping for IsisSubfieldIterator
-rw-r--r--classes/iterators/IsisSubfieldIterator.php9
-rw-r--r--schemas/fbe.yaml8
2 files changed, 13 insertions, 4 deletions
diff --git a/classes/iterators/IsisSubfieldIterator.php b/classes/iterators/IsisSubfieldIterator.php
index 36d3d06..7e01687 100644
--- a/classes/iterators/IsisSubfieldIterator.php
+++ b/classes/iterators/IsisSubfieldIterator.php
@@ -21,8 +21,15 @@ class IsisSubfieldIterator implements Iterator
*
* @param $field
* Field to iterate over.
+ *
+ * @param $main
+ * Control to which subfield the main field should be mapped to.
+ * By default no mapping is made.
+ *
+ * @todo
+ * Implement $main mapping.
*/
- public function __construct($class, $field) {
+ public function __construct($class, $field, $main = false) {
$this->class = $class;
$this->field = $field;
$this->rows = $class->getRows($field);
diff --git a/schemas/fbe.yaml b/schemas/fbe.yaml
index 2052e09..d3337e0 100644
--- a/schemas/fbe.yaml
+++ b/schemas/fbe.yaml
@@ -485,7 +485,7 @@ fields:
repeat: Yes
#
- # Characters
+ # FictionalCharacters
#
28:
name: Identidades/Elenco
@@ -502,7 +502,8 @@ fields:
o: componente
i: (sem descrição na bula) – identificador
map:
- type: Characters
+ type: FictionalCharacters
+ special: [p]
280:
name: Identidades/Elenco - dados adicionais
repeat: Yes
@@ -518,7 +519,8 @@ fields:
o: componente
i: (sem descrição na bula) – identificador
map:
- type: Characters
+ type: FictionalCharacters
+ special: [p,i]
#
# Producers