public function listPagesCommand()
    {
        $pageRepository = new PageRepository();
        $pages = $pageRepository->findAll();
        $tableData = [];
        /** @var Page $page */
        foreach ($pages as $page) {
            $tableData[] = [
                'identifier'   => $page->getIdentifier(),
                'title'        => $page->getTitle(),
                'is directory' => $page->getIsDirectory(),
                'is virtual'   => $page->getIsVirtual(),
                'sorting'      => $page->getSorting(),
            ];
        }
        $this->outputTable($tableData);
    }
public function listPagesCommand()
    {
        $pageRepository = new PageRepository();
        $pages = $pageRepository->findAll();
        $tableData = [];
        /** @var Page $page */
        foreach ($pages as $page) {
            $tableData[] = [
                'identifier'   => $page->getIdentifier(),
                'title'        => $page->getTitle(),
                'is directory' => $page->getIsDirectory(),
                'is virtual'   => $page->getIsVirtual(),
                'sorting'      => $page->getSorting(),
            ];
        }
        $this->outputTable($tableData);
    }
public function listPagesCommand ( ) { $ pageRepository = new PageRepository ( ) ; $ pages = $ pageRepository -> findAll ( ) ; $ tableData = [ ] ; /** @var Page $page */ foreach ( $ pages as $ page ) { $ tableData [ ] = [ 'identifier' => $ page -> getIdentifier ( ) , 'title' => $ page -> getTitle ( ) , 'is directory' => $ page -> getIsDirectory ( ) , 'is virtual' => $ page -> getIsVirtual ( ) , 'sorting' => $ page -> getSorting ( ) , ] ; } $ this -> outputTable ( $ tableData ) ; }
Lists all pages
Lists all pages