function BxPmtOrdersPage($sType, &$oPayments) { parent::BxDolPageView('bx_pmt_orders'); $this->_sType = $sType; $this->_oPayments =& $oPayments; $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId); }
function BxSitesPageHon(&$oSites) { parent::BxDolPageView('bx_sites_hon'); $this->_oSites =& $oSites; $this->_oTemplate = $oSites->_oTemplate; $this->_oDb = $oSites->_oDb; }
function BxDolPEditProcessor() { global $logged; $this->aProfiles = array(0 => array(), 1 => array()); // double arrays (for couples) $this->aValues = array(0 => array(), 1 => array()); $this->aErrors = array(0 => array(), 1 => array()); $iId = bx_get('ID'); $this->iProfileID = (int) $iId; // basic checks if ($logged['member']) { $iMemberID = getLoggedId(); if (!$this->iProfileID) { //if profile id is not set by request, edit own profile $this->iProfileID = $iMemberID; $this->iArea = 2; } else { // check if this member is owner if ($this->iProfileID == $iMemberID) { $this->iArea = 2; } } } elseif ($logged['admin']) { $this->iArea = 3; } elseif ($logged['moderator']) { $this->iArea = 4; } $this->bAjaxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'); $this->bForceAjaxSave = bx_get('force_ajax_save'); parent::BxDolPageView('pedit'); }
function BxPfwPageCart(&$oMain) { parent::BxDolPageView('bx_pfw_cart'); $this->_oMain = $oMain; $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->getUserId()); $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oMain->_oConfig->getUri()); }
/** * Class constructor; * * @param : $sPageName (string) - builder's page name; * @param : $oPollModule (object) - created poll's module object; * @param : $iPollId (integer) - poll's Id; */ function BxPollView($sPageName, &$aModule, &$oPollModule, $iPollId) { parent::BxDolPageView($sPageName); // define member's Id; $aProfileInfo = getProfileInfo(); $this->iMemberId = isset($aProfileInfo['ID']) ? $aProfileInfo['ID'] : 0; $this->oModule = $oPollModule; $this->iPollId = $iPollId; if ($this->iPollId) { $this->aPollInfo = $this->oModule->_oDb->getPollInfo($this->iPollId); if (!$this->oModule->oPrivacy->check('view', $this->aPollInfo[0]['id_poll'], $this->iMemberId)) { echo $this->oModule->_oTemplate->defaultPage(_t('_bx_poll'), MsgBox(_t('_bx_poll_access_denied')), 2); exit; } } if ($this->aPollInfo) { $this->aPollInfo = array_shift($this->aPollInfo); } $this->oVotingView = new BxTemplVotingView('bx_poll', $this->iPollId); $this->oCmtsView = new BxPollCmts('bx_poll', $this->iPollId); $this->aModule = $aModule; if ($sPageName == 'show_poll_info') { $GLOBALS['oTopMenu']->setCustomSubHeaderUrl(BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . '&action=show_poll_info&id=' . $this->iPollId); } $GLOBALS['oTopMenu']->setCustomBreadcrumbs(array(_t('_bx_poll') => BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . '&action=poll_home', $this->aPollInfo['poll_question'] => '')); }
function BxPmtDetailsPage(&$oPayments) { parent::BxDolPageView('bx_pmt_details'); $this->_oPayments =& $oPayments; $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId); $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri()); }
function BxDolProfilePageView(&$oPr, &$aSite, &$aDir) { $this->oProfileV =& $oPr; $this->aConfSite = $aSite; $this->aConfDir = $aDir; parent::BxDolPageView('profile'); }
function BxBaseCategoriesModule($aParam, $sTitle, $sUrl) { $this->_sPage = 'categ_module'; $this->_sTitle = $sTitle ? $sTitle : _t('_categ_users'); $this->_sUrl = $sUrl; $this->_aParam = $aParam; parent::BxDolPageView($this->_sPage); }
function BxPmtHistoryPage($sType, &$oPayments) { parent::BxDolPageView('bx_pmt_history'); $this->_iVendorId = $sType == 'site' ? BX_PMT_ADMINISTRATOR_ID : BX_PMT_EMPTY_ID; $this->_oPayments =& $oPayments; $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId); $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri()); }
function BxSitesPageMain(&$oSites) { parent::BxDolPageView('bx_sites_main'); $this->_oSites =& $oSites; $this->_oTemplate = $oSites->_oTemplate; $this->_oConfig = $oSites->_oConfig; $this->_oDb = $oSites->_oDb; }
function BxPfwPageHistory($sType, &$oMain) { parent::BxDolPageView('bx_pfw_history'); $this->_iVendorId = $sType == 'site' ? BX_PMT_ADMINISTRATOR_ID : BX_PMT_EMPTY_ID; $this->_oMain = $oMain; $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->getUserId()); $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oMain->_oConfig->getUri()); }
function BxMapPageMain(&$oModule) { $this->oMain =& $oModule; $this->oTemplate = $oModule->_oTemplate; $this->oConfig = $oModule->_oConfig; $this->oDb = $oModule->_oDb; parent::BxDolPageView('bx_map'); }
function BxDolMember($iMember, &$aSite, &$aDir) { $this->iMember = (int) $iMember; $this->aMemberInfo = getProfileInfo($this->iMember); $this->aConfSite = $aSite; $this->aConfDir = $aDir; parent::BxDolPageView('member'); }
function BxBaseTagsModule($aParam, $sTitle, $sUrl) { $this->_sPage = 'tags_module'; $this->_sTitle = $sTitle ? $sTitle : _t('_all_tags'); $this->_sUrl = $sUrl; $this->_aParam = $aParam; parent::BxDolPageView($this->_sPage); }
function BxSitesPageView(&$oSites, $aSite) { parent::BxDolPageView('bx_sites_view'); $this->_oSites =& $oSites; $this->_aSite = $aSite; $this->_oTemplate = $oSites->_oTemplate; $this->_oConfig = $oSites->_oConfig; }
function BxAvaPageMain(&$oMain) { $this->_oMain =& $oMain; $this->_oTemplate = $oMain->_oTemplate; $this->_oConfig = $oMain->_oConfig; $this->_oDb = $oMain->_oDb; parent::BxDolPageView('bx_avatar_main'); }
function BxDolTwigPageView($sName, &$oMain, &$aDataEntry) { parent::BxDolPageView($sName); $this->_oMain = $oMain; $this->_oTemplate = $oMain->_oTemplate; $this->_oDb = $oMain->_oDb; $this->_oConfig = $oMain->_oConfig; $this->aDataEntry =& $aDataEntry; }
function MlClonetwoPageMy(&$oMain, &$aProfile) { $this->_oMain =& $oMain; $this->_oTemplate = $oMain->_oTemplate; $this->_oDb = $oMain->_oDb; $this->_oConfig = $oMain->_oConfig; $this->_aProfile = $aProfile; parent::BxDolPageView('ml_clonetwo_my'); }
function BxMapPageEdit(&$oModule, &$aLocation) { $this->oMain =& $oModule; $this->oTemplate = $oModule->_oTemplate; $this->oConfig = $oModule->_oConfig; $this->oDb = $oModule->_oDb; $this->aLocation = $aLocation; parent::BxDolPageView('bx_map_edit'); }
function BxEventsPageMy(&$oMain, &$aProfile) { $this->_oMain =& $oMain; $this->_oTemplate = $oMain->_oTemplate; $this->_oConfig = $oMain->_oConfig; $this->_oDb = $oMain->_oDb; $this->_aProfile =& $aProfile; parent::BxDolPageView('bx_events_my'); }
function BxAvaPageMain(&$oMain) { $this->_oMain =& $oMain; $this->_oTemplate = $oMain->_oTemplate; $this->_oConfig = $oMain->_oConfig; $this->_oDb = $oMain->_oDb; parent::BxDolPageView('bx_avatar_main'); $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->_iProfileId); }
function BxDolTwigPageMain($sName, &$oMain) { $this->oMain =& $oMain; $this->oTemplate = $oMain->_oTemplate; $this->oConfig = $oMain->_oConfig; $this->oDb = $oMain->_oDb; $this->sUrlStart = BX_DOL_URL_ROOT . $this->oMain->_oConfig->getBaseUri(); $this->sUrlStart .= false === strpos($this->sUrlStart, '?') ? '?' : '&'; parent::BxDolPageView($sName); }
/** * @description : class constructor ; * @param : $sPageName (string) - name of build page ; * @param : $aDisplayParameters (array) ; per_page (integer) - number of elements for per page ; page (integer) - current page ; mode (string) - will swith member view mode ; sort (string) - sorting parameters ; * @param : $iProfileID (integer) - member ID ; */ function BxDolFriendsPageView($sPageName, &$aDisplayParameters, $iProfileID) { parent::BxDolPageView($sPageName); $this->aDisplayParameters =& $aDisplayParameters; $this->oSearchProfileTmpl = new BxTemplSearchProfile(); $this->sCurrentPage = 'viewFriends.php'; // check member on line time ; $this->iMemberOnlineTime = getParam('member_online_time'); $this->iProfileID = $iProfileID; }
function BxSitesPageProfile(&$oSites, $aProfile, $sSubMenu) { parent::BxDolPageView('bx_sites_profile'); $GLOBALS['oTopMenu']->setCurrentProfileNickName($aProfile['NickName']); $this->_oSites =& $oSites; $this->_oDb = $oSites->_oDb; $this->_oTemplate = $oSites->_oTemplate; $this->_oConfig = $oSites->_oConfig; $this->_aProfile = $aProfile; $this->_sSubMenu = $sSubMenu; }
function BxPhotosPageAlbumView($oModule, $aInfo, $sBrowseCode = '') { parent::BxDolPageView('bx_photos_album_view'); $this->aInfo = $aInfo; $this->iProfileId = $oModule->_iProfileId; $this->oModule = $oModule; $this->oConfig = $oModule->_oConfig; $this->oDb = $oModule->_oDb; $this->oTemplate = $oModule->_oTemplate; $this->sBrowseCode = $sBrowseCode; $GLOBALS['oTopMenu']->setCustomSubHeader($aInfo['Caption']); }
function BxFilesPageView(&$oShared, &$aFileInfo) { parent::BxDolPageView('bx_files_view'); $this->aFileInfo = $aFileInfo; $this->iProfileId =& $oShared->_iProfileId; $this->oTemplate = $oShared->_oTemplate; $this->oConfig = $oShared->_oConfig; $this->oDb = $oShared->_oDb; $this->oSearch = new BxFilesSearch(); $this->oTemplate->addCss('view.css'); new BxDolViews('bx_files', $this->aFileInfo['medID']); }
function BxDolFilesPageAlbumsOwner($sPageName, &$oShared, $aParams = array()) { parent::BxDolPageView($sPageName); $this->oModule = $oShared; $this->oTemplate = $oShared->_oTemplate; $this->oConfig = $oShared->_oConfig; $this->oDb = $oShared->_oDb; $this->aAddParams = $aParams; list($sParamName, $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3) = $this->aAddParams; $this->iOwnerId = getID($sParamValue1); $this->oAlbum = new BxDolAlbums($this->oConfig->getMainPrefix(), $this->iOwnerId); }
function BxVideosPageView(&$oShared, &$aFileInfo) { parent::BxDolPageView('bx_videos_view'); $this->aFileInfo = $aFileInfo; $this->iProfileId =& $oShared->_iProfileId; $this->oTemplate = $oShared->_oTemplate; $this->oConfig = $oShared->_oConfig; $this->oDb = $oShared->_oDb; $this->oSearch = new BxVideosSearch(); $this->oTemplate->addCss('view.css'); bx_import('BxDolViews'); new BxDolViews('bx_' . $this->oConfig->getUri(), $this->aFileInfo['medID']); }
function BxPhotosPageView(&$oShared, &$aFileInfo, $sPage = 'bx_photos_view') { parent::BxDolPageView($sPage); $this->aFileInfo = $aFileInfo; $this->iProfileId =& $oShared->_iProfileId; $this->oModule = $oShared; $this->oTemplate = $oShared->_oTemplate; $this->oConfig = $oShared->_oConfig; $this->oDb = $oShared->_oDb; $this->oSearch = new BxPhotosSearch(); $this->oTemplate->addCss('view.css'); bx_import('BxDolViews'); new BxDolViews($this->oConfig->getMainPrefix(), $this->aFileInfo['medID']); }
function BxBaseProfileView(&$oPr, &$aSite, &$aDir) { $this->oProfileGen =& $oPr; $this->aConfSite = $aSite; $this->aConfDir = $aDir; parent::BxDolPageView('profile'); bx_import('BxDolMemberInfo'); $o = BxDolMemberInfo::getObjectInstance(getParam('sys_member_info_thumb')); $sThumbUrl = $o ? $o->get($oPr->_aProfile) : ''; $GLOBALS['oSysTemplate']->setOpenGraphInfo(array('title' => getNickName($oPr->_aProfile['ID']), 'type' => 'profile')); if ($sThumbUrl) { $GLOBALS['oSysTemplate']->setOpenGraphInfo(array('image' => $sThumbUrl)); } }