/** * Creates a list of sites in the current folder * * @return string * @autoTestable * @permissions view */ protected function actionList() { class_module_languages_admin::enableLanguageSwitch(); $bitPeMode = $this->getParam("pe") != ""; //Collect the pages belonging to the current parent $objArraySectionIterator = new class_array_section_iterator(class_module_pages_folder::getPagesAndFolderListCount($this->getSystemid())); $objArraySectionIterator->setPageNumber($this->getParam("pv")); $objArraySectionIterator->setArraySection(class_module_pages_folder::getPagesAndFolderList($this->getSystemid(), false, $objArraySectionIterator->calculateStartPos(), $objArraySectionIterator->calculateEndPos())); $strPages = $this->renderList($objArraySectionIterator, true, class_module_pages_admin::STR_LIST_PAGES, true); if ($bitPeMode) { $strReturn = $strPages; } else { $strReturn = $this->generateTreeView($strPages); } return $strReturn; }