69 $this->parent = $parent;
71 foreach ($node->children() as $child) {
74 if ($child->getName() ===
"names") {
81 if (!$names->hasEtAl()) {
83 if ($this->parent->hasEtAl()) {
84 $names->setEtAl($this->parent->getEtAl());
87 if (!$names->hasName()) {
89 if ($this->parent->hasName()) {
90 $names->setName($this->parent->getName());
94 if (!$names->hasLabel() && $this->parent->hasLabel()) {
95 $names->setLabel($this->parent->getLabel());
98 $this->children->append($names);
101 $this->children->append($object);
111 public function render($data, $citationNumber =
null)
119 foreach ($this->children as $child) {
122 $res = $child->render($data, $citationNumber);
131 return implode(
"", $ret);