本文整理汇总了PHP中BxDolPageView::BxDolPageView方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolPageView::BxDolPageView方法的具体用法?PHP BxDolPageView::BxDolPageView怎么用?PHP BxDolPageView::BxDolPageView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolPageView
的用法示例。
在下文中一共展示了BxDolPageView::BxDolPageView方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BxPmtOrdersPage
function BxPmtOrdersPage($sType, &$oPayments)
{
parent::BxDolPageView('bx_pmt_orders');
$this->_sType = $sType;
$this->_oPayments =& $oPayments;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
}
示例2: BxSitesPageHon
function BxSitesPageHon(&$oSites)
{
parent::BxDolPageView('bx_sites_hon');
$this->_oSites =& $oSites;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oDb = $oSites->_oDb;
}
示例3: BxDolPEditProcessor
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');
}
示例4: BxPfwPageCart
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());
}
示例5: BxPollView
/**
* 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'] => ''));
}
示例6: BxPmtDetailsPage
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());
}
示例7: BxDolProfilePageView
function BxDolProfilePageView(&$oPr, &$aSite, &$aDir)
{
$this->oProfileV =& $oPr;
$this->aConfSite = $aSite;
$this->aConfDir = $aDir;
parent::BxDolPageView('profile');
}
示例8: BxBaseCategoriesModule
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);
}
示例9: BxPmtHistoryPage
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());
}
示例10: BxSitesPageMain
function BxSitesPageMain(&$oSites)
{
parent::BxDolPageView('bx_sites_main');
$this->_oSites =& $oSites;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oConfig = $oSites->_oConfig;
$this->_oDb = $oSites->_oDb;
}
示例11: BxPfwPageHistory
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());
}
示例12: BxMapPageMain
function BxMapPageMain(&$oModule)
{
$this->oMain =& $oModule;
$this->oTemplate = $oModule->_oTemplate;
$this->oConfig = $oModule->_oConfig;
$this->oDb = $oModule->_oDb;
parent::BxDolPageView('bx_map');
}
示例13: BxDolMember
function BxDolMember($iMember, &$aSite, &$aDir)
{
$this->iMember = (int) $iMember;
$this->aMemberInfo = getProfileInfo($this->iMember);
$this->aConfSite = $aSite;
$this->aConfDir = $aDir;
parent::BxDolPageView('member');
}
示例14: BxBaseTagsModule
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);
}
示例15: BxSitesPageView
function BxSitesPageView(&$oSites, $aSite)
{
parent::BxDolPageView('bx_sites_view');
$this->_oSites =& $oSites;
$this->_aSite = $aSite;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oConfig = $oSites->_oConfig;
}