47 private $bibliography;
67 private $citationItems;
82 private $globalOptions;
87 private $bibliographySpecificOptions;
92 private $citationSpecificOptions;
97 private $renderingState;
117 private $citationsAsArray =
false;
121 if (!empty($locale)) {
122 $this->locale = $locale;
126 $this->citationItems =
new DataList();
131 public function addMacro($key, $macro)
133 $this->macros->add($key, $macro);
142 return $this->macros->get($key);
150 $this->locale = $locale;
158 return $this->locale;
166 return $this->bibliography;
174 $this->bibliography = $bibliography;
182 return $this->citation;
190 $this->citation = $citation;
198 $this->citationsAsArray = $citationsAsArray;
203 return $this->citationsAsArray;
208 $this->sorting = $sorting;
213 return $this->sorting;
239 return $this->mode ===
"citation";
248 return $this->mode ===
"bibliography";
256 return $this->citationItems;
264 $this->citationItems = $citationItems;
269 return ($this->citationItems->count() > 0);
277 return $this->macros;
285 return $this->results;
299 public function setRoot(Root $root)
309 return $this->globalOptions;
317 $this->globalOptions = $globalOptions;
325 return $this->renderingState;
333 $this->renderingState = $renderingState;
341 return $this->bibliographySpecificOptions;
349 $this->bibliographySpecificOptions = $bibliographySpecificOptions;
357 return $this->citationSpecificOptions;
365 $this->citationSpecificOptions = $citationSpecificOptions;
373 $this->cssStyle = $cssStyle;
381 return $this->cssStyle;