/** * Gets the OPML body * @param int $depth * @return string */ private function getBody($depth) { $opml = ''; foreach ($this->sublist->getSublists() as $sublist) { $exporter = new WorkFlowyOPML($sublist); $opml .= $exporter->export($depth + 1); } return $opml; }
/** * Returns the OPML view * @return string */ public function getOPML() { $exporter = new WorkFlowyOPML($this); return $exporter->export(); }