Esempio n. 1
0
 /**
  * @return bool
  */
 public function render()
 {
     $rootNode = $this->queryContainer->queryRootNode()->findOne();
     if ($rootNode) {
         $this->renderChildren($rootNode);
         return $this->graph->render('svg');
     }
     return false;
 }
Esempio n. 2
0
 /**
  * @return \Orm\Zed\Category\Persistence\SpyCategoryNode[]|\Propel\Runtime\Collection\ObjectCollection
  */
 public function getRootNodes()
 {
     return $this->queryContainer->queryRootNode()->find();
 }