Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * Returns the OPML view
  * @return string
  */
 public function getOPML()
 {
     $exporter = new WorkFlowyOPML($this);
     return $exporter->export();
 }