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


PHP BxDolModule::__construct方法代码示例

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


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

示例1: getLoggedId

 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     $GLOBALS['aModule'] = $aModule;
     $this->_iProfileId = getLoggedId();
     $this->_sProto = bx_proto();
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:7,代码来源:BxGSearchModule.php

示例2: getLoggedId

 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     $this->_iProfileId = getLoggedId();
     $this->_aParts = $this->_oDb->getParts();
     $this->_oDb->_aParts =& $this->_aParts;
     $this->_sProto = bx_proto();
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:8,代码来源:BxWmapModule.php

示例3: isLogged

 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->iUserId = isLogged() && isAdmin() ? getLoggedId() : 0;
     $this->_oConfig->init($this->_oDb);
     $this->_oTemplate->init($this, $this->_oDb);
     $this->_aCssMatch = $this->_oDb->getUnits();
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:11,代码来源:BxSctrModule.php

示例4: defineMembershipActions

 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_oConfig->init($this->_oDb);
     $this->_oTemplate->init($this);
     $this->_iOwnerId = 0;
     //--- Define Membership Actions ---//
     defineMembershipActions(array('timeline repost', 'timeline post comment', 'timeline delete comment'), 'ACTION_ID_');
 }
开发者ID:boonex,项目名称:dolphin.pro,代码行数:12,代码来源:BxWallModule.php

示例5: getLoggedId

 /**
  * Class constructor ;
  *
  * @param   : $aModule (array) - contain some information about this module;
  *                  [ id ]           - (integer) module's  id ;
  *                  [ title ]        - (string)  module's  title ;
  *                  [ vendor ]       - (string)  module's  vendor ;
  *                  [ path ]         - (string)  path to this module ;
  *                  [ uri ]          - (string)  this module's URI ;
  *                  [ class_prefix ] - (string)  this module's php classes file prefix ;
  *                  [ db_prefix ]    - (string)  this module's Db tables prefix ;
  *                  [ date ]         - (string)  this module's date installation ;
  */
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     // prepare the location link ;
     $this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
     $this->sModuleName = 'bx_' . $aModule['uri'];
     $this->aModuleInfo = $aModule;
     $this->iMemberId = getLoggedId();
     $this->_aObjects = $this->_oDb->getShoutboxObjects();
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:23,代码来源:BxShoutBoxModule.php

示例6: array

 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     $aConfig = array('client_table' => 'bx_oauth_clients', 'access_token_table' => 'bx_oauth_access_tokens', 'refresh_token_table' => 'bx_oauth_refresh_tokens', 'code_table' => 'bx_oauth_authorization_codes', 'user_table' => 'Profiles', 'jwt_table' => '', 'jti_table' => '', 'scope_table' => 'bx_oauth_scopes', 'public_key_table' => '');
     $this->_oStorage = new OAuth2\Storage\Pdo(array('dsn' => $this->_buildDSN(), 'username' => BX_DATABASE_USER, 'password' => BX_DATABASE_PASS, 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'")), $aConfig);
     $this->_oServer = new OAuth2\Server($this->_oStorage, array('require_exact_redirect_uri' => false, 'refresh_token_lifetime' => 7776000));
     // Add the "Client Credentials" grant type (it is the simplest of the grant types)
     $this->_oServer->addGrantType(new OAuth2\GrantType\ClientCredentials($this->_oStorage));
     // Add the "Authorization Code" grant type (this is where the oauth magic happens)
     $this->_oServer->addGrantType(new OAuth2\GrantType\AuthorizationCode($this->_oStorage));
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:11,代码来源:BxOAuthModule.php

示例7: getLoggedId

 /**
  * Class constructor ;
  *
  * @param   : $aModule (array) - contain some information about this module;
  *                  [ id ]           - (integer) module's  id ;
  *                  [ title ]        - (string)  module's  title ;
  *                  [ vendor ]       - (string)  module's  vendor ;
  *                  [ path ]         - (string)  path to this module ;
  *                  [ uri ]          - (string)  this module's URI ;
  *                  [ class_prefix ] - (string)  this module's php classes file prefix ;
  *                  [ db_prefix ]    - (string)  this module's Db tables prefix ;
  *                  [ date ]         - (string)  this module's date installation ;
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->sHomeUrl = $this->_oConfig->_sHomeUrl;
     $this->sModuleName = 'bx_' . $aModule['uri'];
     $this->aModuleInfo = $aModule;
     $this->iLoggedMemberId = getLoggedId();
     $this->aCoreSettings = array('update_time' => $this->_oConfig->iUpdateTime, 'number_visible_messages' => $this->_oConfig->iVisibleMessages, 'limit_returning_messages' => $this->_oConfig->iCountRetMessages, 'number_of_allowed_chat_boxes' => $this->_oConfig->iCountAllowedChatBoxes, 'output_block' => $this->_oConfig->sOutputBlock, 'page_receiver' => BX_DOL_URL_ROOT . 'modules/?r=' . $this->aModuleInfo['uri'] . '/get_operation', 'history_block_prefix' => $this->_oConfig->sOutputBlockPrefix, 'save_chat_history' => $this->_oConfig->bSaveChatHistory, 'language_keys' => array('empty_message' => _t('_simple_messenger_empty_message')), 'blink_counter' => $this->_oConfig->iBlinkCounter, 'message_date_format' => $this->_oConfig->sMessageDateFormat);
     $this->sMemberMenuPosition = isset($_COOKIE['menu_position']) ? $_COOKIE['menu_position'] : getParam('ext_nav_menu_top_position');
     $this->oPrivacy = new BxSimpleMessengerPrivacy($this);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:24,代码来源:BxSimpleMessengerModule.php

示例8: array

 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     $aConfig = array('client_table' => 'bx_oauth_clients', 'access_token_table' => 'bx_oauth_access_tokens', 'refresh_token_table' => 'bx_oauth_refresh_tokens', 'code_table' => 'bx_oauth_authorization_codes', 'user_table' => 'Profiles', 'jwt_table' => '', 'jti_table' => '', 'scope_table' => 'bx_oauth_scopes', 'public_key_table' => '');
     $this->_oStorage = new OAuth2\Storage\Pdo(BxDolDb::getInstance()->getLink(), $aConfig);
     $this->_oServer = new OAuth2\Server($this->_oStorage, array('require_exact_redirect_uri' => false));
     // Add the "Client Credentials" grant type (it is the simplest of the grant types)
     $this->_oServer->addGrantType(new OAuth2\GrantType\ClientCredentials($this->_oStorage));
     // Add the "Authorization Code" grant type (this is where the oauth magic happens)
     $this->_oServer->addGrantType(new OAuth2\GrantType\AuthorizationCode($this->_oStorage));
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:11,代码来源:BxOAuthModule.php

示例9:

 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_oConfig->init($this->_oDb);
     $this->_oTemplate->init($this);
     $sClassPrefix = $this->_oConfig->getClassPrefix();
     $sClassName = $sClassPrefix . 'Privacy';
     $this->_oPrivacy = class_exists($sClassName) ? new $sClassName($this) : null;
     $sClassName = $sClassPrefix . 'Data';
     $this->_oTextData = class_exists($sClassName) ? new $sClassName($this) : null;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:11,代码来源:BxDolTextModule.php

示例10: foreach

 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     //--- Define Membership Actions ---//
     $aActions = $this->_oDb->getMembershipActions();
     foreach ($aActions as $aAction) {
         $sName = 'ACTION_ID_' . strtoupper(str_replace(' ', '_', $aAction['name']));
         if (!defined($sName)) {
             define($sName, $aAction['id']);
         }
     }
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:15,代码来源:BxChatModule.php

示例11: array

 /**
  * Constructor
  */
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     $this->_iProfileId = $this->_oDb->iViewer;
     $this->_oTemplate->init($this->_oDb);
     $this->aPageTmpl = array('name_index' => 1, 'header' => $GLOBALS['site']['title'], 'header_text' => '');
     $sClassName = $this->_oConfig->getClassPrefix() . 'Privacy';
     bx_import('Privacy', $aModule);
     $this->oPrivacy = new $sClassName();
     $this->oAlbumPrivacy = new $sClassName('sys_albums');
     $this->oAlbums = new BxDolAlbums($this->_oConfig->getMainPrefix(), $this->_iProfileId);
     $this->aSectionsAdmin = array('approved' => array('exclude_btns' => array('activate')), 'disapproved' => array('exclude_btns' => array('deactivate', 'featured', 'unfeatured')), 'pending' => array('exclude_btns' => array('activate', 'deactivate', 'featured', 'unfeatured')));
 }
开发者ID:boonex,项目名称:dolphin.pro,代码行数:16,代码来源:BxDolFilesModule.php

示例12: array

 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->aTools = array(array('name' => BX_DEV_TOOLS_SETTINGS, 'title' => '', 'icon' => 'cogs'), array('name' => BX_DEV_TOOLS_FORMS, 'title' => '', 'icon' => 'bx-dev-mi-forms.png'), array('name' => BX_DEV_TOOLS_NAVIGATION, 'title' => '', 'icon' => 'bx-dev-mi-navigation.png'), array('name' => BX_DEV_TOOLS_PAGES, 'title' => '', 'icon' => 'bx-dev-mi-pages.png'), array('name' => BX_DEV_TOOLS_POLYGLOT, 'title' => '', 'icon' => 'bx-dev-mi-polyglot.png'));
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:5,代码来源:BxDevModule.php

示例13:

 function __construct($aModule)
 {
     parent::__construct($aModule);
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:4,代码来源:BxDolConnectModule.php

示例14:

 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_oConfig->init($this->_oDb);
 }
开发者ID:blas-dmx,项目名称:trident,代码行数:8,代码来源:BxInvModule.php

示例15: array

 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->_oConfig->init($this->_oDb);
     $this->_iUserId = $this->getUserId();
     $this->_sGeneralPrefix = $this->_oConfig->getGeneralPrefix();
     $this->_sLangsPrefix = $this->_oConfig->getLangsPrefix();
     $this->_sEmailTemplatesPrefix = $this->_oConfig->getEmailTemplatesPrefix();
     $this->_sSessionKeyPending = $this->_sGeneralPrefix . 'pending_id';
     $this->_sRequestKeyPending = $this->_sGeneralPrefix . 'pending_id';
     $sClassPrefix = $this->_oConfig->getClassPrefix();
     bx_import('Cart', $aModule);
     $sClassName = $sClassPrefix . 'Cart';
     $this->_oCart = new $sClassName($this->_oDb, $this->_oConfig, $this->_oTemplate);
     bx_import('Details', $aModule);
     $sClassName = $sClassPrefix . 'Details';
     $this->_oDetails = new $sClassName($this->_oDb, $this->_oConfig);
     bx_import('Orders', $aModule);
     $sClassName = $sClassPrefix . 'Orders';
     $this->_oOrders = new $sClassName($this->_iUserId, $this->_oDb, $this->_oConfig, $this->_oTemplate);
     $this->_aOrderTypes = array(BX_PMT_ORDERS_TYPE_PENDING, BX_PMT_ORDERS_TYPE_PROCESSED, BX_PMT_ORDERS_TYPE_SUBSCRIPTION, BX_PMT_ORDERS_TYPE_HISTORY);
 }
开发者ID:toxalot,项目名称:dolphin.pro,代码行数:25,代码来源:BxPmtModule.php


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