public function __construct() { $doc = DBSimple::get(IndexPageModel::TableName, ''); $doc = new IndexPageModel($doc); $this->sitemapInfo = $doc->getSiteMapData(); $this->title = self::title; $this->begin = array(self::title => '#'); $this->parent = intval($this->sitemapInfo['id']); $this->paging_size = self::pagingSize; parent::__construct(); }
protected function seekIndexDocument() { $found = DBSimple::get(SITEMAP_TABLE, ['document_name' => $this->modelName]); return $found; }