当前位置: 首页>>代码示例>>PHP>>正文


PHP BxDolPageView::__construct方法代码示例

本文整理汇总了PHP中BxDolPageView::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolPageView::__construct方法的具体用法?PHP BxDolPageView::__construct怎么用?PHP BxDolPageView::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BxDolPageView的用法示例。


在下文中一共展示了BxDolPageView::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 /**
  * @description : class constructor ;
  */
 function __construct($sPageName = null)
 {
     global $aPreValues;
     // read data from cache file ;
     $oCache = $GLOBALS['MySQL']->getDbCacheObject();
     $this->aMembersInfo = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('sys_browse_people'));
     if (null === $this->aMembersInfo) {
         $this->aMembersInfo = array();
     }
     // fill aDateBirthRange array ;
     $iStartDate = getParam('search_start_age');
     $iLastDate = getParam('search_end_age');
     // fill date of birth array
     while ($iStartDate <= $iLastDate) {
         $this->aDateBirthRange[$iStartDate . '-' . ($iStartDate + 2)] = 0;
         $iStartDate += 3;
     }
     // check permalink mode ;
     $this->bPermalinkMode = getParam('permalinks_browse') ? true : false;
     // check member on line time ;
     $this->iMemberOnlineTime = (int) getParam("member_online_time");
     // fill sex array ;
     ksort($aPreValues['Sex'], SORT_STRING);
     foreach ($aPreValues['Sex'] as $sKey => $aItems) {
         $this->aSexRange[$sKey] = 0;
     }
     // fill country array ;
     ksort($aPreValues['Country'], SORT_STRING);
     foreach ($aPreValues['Country'] as $sKey => $aItems) {
         $this->aCountryRange[$sKey] = 0;
     }
     if ($sPageName) {
         parent::__construct($sPageName);
     }
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:38,代码来源:BxDolBrowse.php

示例2:

 function __construct(&$oMain)
 {
     parent::__construct('bx_pfw_cart');
     $this->_oMain = $oMain;
     $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->getUserId());
     $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oMain->_oConfig->getUri());
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:7,代码来源:BxPfwPageCart.php

示例3:

 function __construct(&$oPayments)
 {
     parent::__construct('bx_pmt_details');
     $this->_oPayments =& $oPayments;
     $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
     $GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri());
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:7,代码来源:details.php

示例4: getProfileInfo

 /**
  * Class constructor;
  *
  * @param : $sPageName   (string)  - builder's page name;
  * @param : $oPollModule (object)  - created poll's module object;
  * @param : $iPollId     (integer) - poll's Id;
  */
 function __construct($sPageName, &$aModule, &$oPollModule, $iPollId)
 {
     parent::__construct($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'] => ''));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:33,代码来源:BxPollView.php

示例5: array

 function __construct()
 {
     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::__construct('pedit');
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:31,代码来源:pedit.php

示例6:

 function __construct(&$oSites)
 {
     parent::__construct('bx_sites_hon');
     $this->_oSites =& $oSites;
     $this->_oTemplate = $oSites->_oTemplate;
     $this->_oDb = $oSites->_oDb;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:7,代码来源:BxSitesPageHon.php

示例7:

 function __construct($aParam, $sTitle, $sUrl)
 {
     $this->_sPage = 'tags_module';
     $this->_sTitle = $sTitle ? $sTitle : _t('_all_tags');
     $this->_sUrl = $sUrl;
     $this->_aParam = $aParam;
     parent::__construct($this->_sPage);
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:8,代码来源:BxBaseTagsModule.php

示例8:

 function __construct(&$oModule)
 {
     $this->_oMain =& $oModule;
     $this->_oTemplate = $oModule->_oTemplate;
     $this->_oConfig = $oModule->_oConfig;
     $this->_oDb = $oModule->_oDb;
     parent::__construct('bx_wmap');
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:8,代码来源:BxWmapPageMain.php

示例9: getProfileInfo

 function __construct($iMember, &$aSite, &$aDir)
 {
     $this->iMember = (int) $iMember;
     $this->aMemberInfo = getProfileInfo($this->iMember);
     $this->aConfSite = $aSite;
     $this->aConfDir = $aDir;
     parent::__construct('member');
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:8,代码来源:BxBaseAccountView.php

示例10:

 function __construct($sType, &$oMain)
 {
     parent::__construct('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());
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:8,代码来源:BxPfwPageHistory.php

示例11:

 function __construct(&$oMain, &$aProfile)
 {
     $this->_oMain =& $oMain;
     $this->_oTemplate = $oMain->_oTemplate;
     $this->_oConfig = $oMain->_oConfig;
     $this->_oDb = $oMain->_oDb;
     $this->_aProfile =& $aProfile;
     parent::__construct('bx_events_my');
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:9,代码来源:BxEventsPageMy.php

示例12:

 function __construct(&$oModule, $aLocation)
 {
     $this->_oMain =& $oModule;
     $this->_oTemplate = $oModule->_oTemplate;
     $this->_oConfig = $oModule->_oConfig;
     $this->_oDb = $oModule->_oDb;
     $this->_aLocation = $aLocation;
     parent::__construct('bx_wmap_edit');
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:9,代码来源:BxWmapPageEdit.php

示例13:

 function __construct(&$oMain)
 {
     $this->_oMain =& $oMain;
     $this->_oTemplate = $oMain->_oTemplate;
     $this->_oConfig = $oMain->_oConfig;
     $this->_oDb = $oMain->_oDb;
     parent::__construct('bx_avatar_main');
     $GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->_iProfileId);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:9,代码来源:BxAvaPageMain.php

示例14:

 function __construct($sName, &$oMain, &$aDataEntry)
 {
     parent::__construct($sName);
     $this->_oMain = $oMain;
     $this->_oTemplate = $oMain->_oTemplate;
     $this->_oDb = $oMain->_oDb;
     $this->_oConfig = $oMain->_oConfig;
     $this->aDataEntry =& $aDataEntry;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:9,代码来源:BxDolTwigPageView.php

示例15: strpos

 function __construct($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::__construct($sName);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:10,代码来源:BxDolTwigPageMain.php


注:本文中的BxDolPageView::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。