public function moreFiles()
    {
        $oConfig = $this->getConfig();
        $iStart = $oConfig->getRequestParameter('start') ? $oConfig->getRequestParameter('start') : 0;
        //$iShopId = $oConfig->getRequestParameter( 'oxshopid' ) ? $oConfig->getRequestParameter( 'oxshopid' ) : null;
        $iShopId = $oConfig->getConfigParam('blMediaLibraryMultiShopCapability') ? $oConfig->getActiveShop()->getShopId() : null;

        $aFiles = $this->_getFiles($iStart, $iShopId);
        $blLoadMore = ($iStart + 18 < $this->_getFileCount($iShopId));

        header('Content-Type: application/json');
        die(json_encode(array('files' => $aFiles, 'more' => $blLoadMore)));
    }
public function moreFiles()
    {
        $oConfig = $this->getConfig();
        $iStart = $oConfig->getRequestParameter('start') ? $oConfig->getRequestParameter('start') : 0;
        //$iShopId = $oConfig->getRequestParameter( 'oxshopid' ) ? $oConfig->getRequestParameter( 'oxshopid' ) : null;
        $iShopId = $oConfig->getConfigParam('blMediaLibraryMultiShopCapability') ? $oConfig->getActiveShop()->getShopId() : null;

        $aFiles = $this->_getFiles($iStart, $iShopId);
        $blLoadMore = ($iStart + 18 < $this->_getFileCount($iShopId));

        header('Content-Type: application/json');
        die(json_encode(array('files' => $aFiles, 'more' => $blLoadMore)));
    }
public function moreFiles ( ) { $ oConfig = $ this -> getConfig ( ) ; $ iStart = $ oConfig -> getRequestParameter ( 'start' ) ? $ oConfig -> getRequestParameter ( 'start' ) : 0 ; //$iShopId = $oConfig->getRequestParameter( 'oxshopid' ) ? $oConfig->getRequestParameter( 'oxshopid' ) : null; $ iShopId = $ oConfig -> getConfigParam ( 'blMediaLibraryMultiShopCapability' ) ? $ oConfig -> getActiveShop ( ) -> getShopId ( ) : null ; $ aFiles = $ this -> _getFiles ( $ iStart , $ iShopId ) ; $ blLoadMore = ( $ iStart + 18 < $ this -> _getFileCount ( $ iShopId ) ) ; header ( 'Content-Type: application/json' ) ; die ( json_encode ( array ( 'files' => $ aFiles , 'more' => $ blLoadMore ) ) ) ; }
Load more files
Load more files