. * * PHP version 5 * @copyright ETES GmbH * @author Sebastian Leitz , Jan Theofel * @package parentslist * @license LGPL * @filesource */ /** * Update the parent page tree */ class Parentslist extends Backend { public function runonce() { $objRootPages = $this->Database->execute("SELECT id FROM tl_page WHERE pid=0 AND(parents = '' OR parents IS NULL)"); if($objRootPages->numRows) { $arrRootPages = $objRootPages->fetchAllAssoc(); foreach ($arrRootPages as $rootPages) { $this->updateChildren($rootPages->id, $rootPages->id, 0); } } } }