Todaymade\Daux\Tree\Entry::dump PHP Method

dump() public method

public dump ( )
    public function dump()
    {
        return ['title' => $this->getTitle(), 'type' => get_class($this), 'name' => $this->getName(), 'uri' => $this->getUri(), 'url' => $this->getUrl(), 'path' => $this->path];
    }

Usage Example

Ejemplo n.º 1
0
 public function dump()
 {
     $dump = parent::dump();
     $dump['index'] = $this->getIndexPage() ? $this->getIndexPage()->getUrl() : '';
     $dump['first'] = $this->getFirstPage() ? $this->getFirstPage()->getUrl() : '';
     foreach ($this->getEntries() as $entry) {
         $dump['children'][] = $entry->dump();
     }
     return $dump;
 }