classes/helper/PageHelper.php
public function getPageNameList()
    {
        if (!empty($this->arPageNameList)) {
            return $this->arPageNameList;
        }

        $arResult = [];

        //Get page list
        $obPageList = $this->getPageList();
        if (empty($obPageList)) {
            return $arResult;
        }

        //Process page list
        foreach ($obPageList as $obPage) {
            $arResult[$obPage->id] = $obPage->title;
        }

        $this->arPageNameList = $arResult;

        return $arResult;
    }
public function getPageNameList()
    {
        if (!empty($this->arPageNameList)) {
            return $this->arPageNameList;
        }

        $arResult = [];

        //Get page list
        $obPageList = $this->getPageList();
        if (empty($obPageList)) {
            return $arResult;
        }

        //Process page list
        foreach ($obPageList as $obPage) {
            $arResult[$obPage->id] = $obPage->title;
        }

        $this->arPageNameList = $arResult;

        return $arResult;
    }
public function getPageNameList ( ) { if ( ! empty ( $ this -> arPageNameList ) ) { return $ this -> arPageNameList ; } $ arResult = [ ] ; //Get page list $ obPageList = $ this -> getPageList ( ) ; if ( empty ( $ obPageList ) ) { return $ arResult ; } //Process page list foreach ( $ obPageList as $ obPage ) { $ arResult [ $ obPage -> id ] = $ obPage -> title ; } $ this -> arPageNameList = $ arResult ; return $ arResult ; }
Get array with names of pages
@return array
Get array with names of pages