BxDolFilesModule::actionAlbums PHP Method

actionAlbums() public method

public actionAlbums ( $sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '' )
    function actionAlbums($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '')
    {
        if ($sParamName == 'my') {
            $this->actionAlbumsViewMy($sParamValue, $sParamValue1, $sParamValue2, $sParamValue3);
            return;
        }
        if ($sParamName == 'browse' && $sParamValue == 'all') {
            $sContent = $this->getAlbumPageBrowse(array($sParamName, $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3));
            $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $sContent));
            return;
        }
        if ($sParamName == 'browse' && $sParamValue == 'owner') {
            $iIdOwner = getID($sParamValue1);
            if (!$iIdOwner) {
                $this->_oTemplate->displayPageNotFound();
                exit;
            }
            $GLOBALS['oTopMenu']->setCurrentProfileID($iIdOwner);
            $this->aPageTmpl['header'] = _t('_' . $this->_oConfig->getMainPrefix() . '_browse_by_owner', $sParamValue1);
        }
        $sClassName = $this->_oConfig->getClassPrefix() . 'PageAlbumsOwner';
        bx_import('PageAlbumsOwner', $this->_aModule);
        $oPage = new $sClassName($this, array($sParamName, $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3));
        $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $oPage->getCode()));
    }