/**
  * @return CArrayList|null
  */
 private static function getCachePages()
 {
     if (is_null(self::$_cachePages)) {
         self::$_cachePages = new CArrayList();
     }
     return self::$_cachePages;
 }
 public function actionView()
 {
     $page = CPageManager::getPage(CRequest::getInt("id"));
     if (!is_null($page)) {
         $this->setData("page", $page);
         $this->renderView("_pages/public.view.tpl");
     }
 }
 public function actionDelete()
 {
     $page = CPageManager::getPage(CRequest::getInt("id"));
     $page->remove();
     $this->redirect("admin.php?action=index");
 }