/** * vraci pole moznych typu stranek * @return array */ protected function getPagesTypes() { try { if (count($this->pagesTypes) > 0) { return $this->pagesTypes; } foreach (LBoxUtil::getFilenamesOfDir(LBOX_PATH_TEMPLATES_PAGES) as $template) { if (preg_match("/" . $this->fileNamesTemplatePagesTypesPattern . "/", $template, $matches)) { $this->pagesTypes[$template] = $matches[1]; } } return $this->pagesTypes; } catch (Exception $e) { throw $e; } }