本文整理汇总了PHP中BxDolModule::BxDolModule方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolModule::BxDolModule方法的具体用法?PHP BxDolModule::BxDolModule怎么用?PHP BxDolModule::BxDolModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolModule
的用法示例。
在下文中一共展示了BxDolModule::BxDolModule方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BxWmapModule
function BxWmapModule(&$aModule)
{
parent::BxDolModule($aModule);
$this->_iProfileId = getLoggedId();
$this->_aParts = $this->_oDb->getParts();
$this->_oDb->_aParts =& $this->_aParts;
}
示例2: BxGSearchModule
function BxGSearchModule(&$aModule)
{
parent::BxDolModule($aModule);
$GLOBALS['aModule'] = $aModule;
$this->_iProfileId = getLoggedId();
$GLOBALS['oBxGSearchModule'] =& $this;
}
示例3: BxGSearchModule
function BxGSearchModule(&$aModule)
{
parent::BxDolModule($aModule);
$GLOBALS['aModule'] = $aModule;
$this->_iProfileId = $GLOBALS['logged']['member'] || $GLOBALS['logged']['admin'] ? $_COOKIE['memberID'] : 0;
$GLOBALS['oBxGSearchModule'] =& $this;
}
示例4: BxProfileCustomizeModule
/**
* Constructor
*/
function BxProfileCustomizeModule($aModule)
{
parent::BxDolModule($aModule);
$this->iUserId = getLoggedId();
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this, $this->_oDb);
$this->_aCssMatch = $this->_oDb->getUnits();
}
示例5: BxShoutBoxModule
/**
* 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 BxShoutBoxModule(&$aModule)
{
parent::BxDolModule($aModule);
// prepare the location link ;
$this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
$this->aModuleInfo = $aModule;
$this->iMemberId = getLoggedId();
}
示例6: BxDataMigrationModule
/**
* 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 BxDataMigrationModule(&$aModule)
{
parent::BxDolModule($aModule);
// prepare the location link ;
$this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
$this->aModuleInfo = $aModule;
$this->aMigrationModules = array('profiles' => array('is_module' => false, 'module_name' => 'profiles', 'module_class' => '', 'migration_class' => 'BxDataMigrationProfiles', 'dependencies' => array()), 'poll' => array('is_module' => true, 'module_name' => 'poll', 'module_class' => 'BxPollModule', 'migration_class' => 'BxDataMigrationPoll', 'dependencies' => array('profiles')), 'events' => array('is_module' => true, 'module_name' => 'events', 'module_class' => 'BxEventsModule', 'migration_class' => 'BxDataMigrationEvents', 'dependencies' => array('profiles', 'photos')), 'blogs' => array('is_module' => true, 'module_name' => 'blogs', 'module_class' => 'BxBlogsModule', 'migration_class' => 'BxDataMigrationBlogs', 'dependencies' => array('profiles')), 'ads' => array('is_module' => true, 'module_name' => 'ads', 'module_class' => 'BxAdsModule', 'migration_class' => 'BxDataMigrationAds', 'dependencies' => array('profiles')), 'news' => array('is_module' => true, 'module_name' => 'news', 'module_class' => 'BxNewsModule', 'migration_class' => 'BxDataMigrationNews', 'dependencies' => array('profiles')), 'articles' => array('is_module' => true, 'module_name' => 'articles', 'module_class' => 'BxArlModule', 'migration_class' => 'BxDataMigrationArticles', 'dependencies' => array('profiles')), 'feedback' => array('is_module' => true, 'module_name' => 'feedback', 'module_class' => 'BxFdbModule', 'migration_class' => 'BxDataMigrationFeedback', 'dependencies' => array('profiles')), 'sounds' => array('is_module' => true, 'module_name' => 'sounds', 'module_class' => 'BxSoundsModule', 'migration_class' => 'BxDataMigrationSounds', 'dependencies' => array('profiles')), 'photos' => array('is_module' => true, 'module_name' => 'photos', 'module_class' => 'BxPhotosModule', 'migration_class' => 'BxDataMigrationPhotos', 'dependencies' => array('profiles')), 'videos' => array('is_module' => true, 'module_name' => 'videos', 'module_class' => 'BxVideosModule', 'migration_class' => 'BxDataMigrationVideos', 'dependencies' => array('profiles')), 'forum' => array('is_module' => true, 'module_name' => 'forum', 'module_class' => 'Orca Forum', 'migration_class' => 'BxDataMigrationForum', 'dependencies' => array('profiles')), 'acl_levels' => array('is_module' => false, 'module_name' => 'acl_levels', 'module_class' => '', 'migration_class' => 'BxDataMigrationMembership', 'dependencies' => array('profiles')), 'custom_profile_fields' => array('is_module' => false, 'module_name' => 'custom_profile_fields', 'module_class' => '', 'migration_class' => 'BxDataMigrationProfilesCustomFields', 'dependencies' => array('profiles')), 'groups' => array('is_module' => true, 'module_name' => 'groups', 'module_class' => 'BxGroupsModule', 'migration_class' => 'BxDataMigrationGroups', 'dependencies' => array('profiles', 'photos')));
}
示例7: BxProfileCustomizeModule
/**
* Constructor
*/
function BxProfileCustomizeModule($aModule)
{
parent::BxDolModule($aModule);
$this->iUserId = $GLOBALS['logged']['member'] || $GLOBALS['logged']['admin'] ? $_COOKIE['memberID'] : 0;
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this, $this->_oDb);
$this->_aCssMatch = $this->_oDb->getUnits();
}
示例8: BxSctrModule
/**
* Constructor
*/
function BxSctrModule($aModule)
{
parent::BxDolModule($aModule);
$this->iUserId = isLogged() && isAdmin() ? getLoggedId() : 0;
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this, $this->_oDb);
$this->_aCssMatch = $this->_oDb->getUnits();
}
示例9: BxWallModule
/**
* Constructor
*/
function BxWallModule($aModule)
{
parent::BxDolModule($aModule);
$this->_oConfig->init($this->_oDb);
$this->_oTemplate->init($this);
$this->_iOwnerId = 0;
//--- Define Membership Actions ---//
defineMembershipActions(array('timeline post comment', 'timeline delete comment'), 'ACTION_ID_');
}
示例10: BxWmapModule
function BxWmapModule(&$aModule)
{
parent::BxDolModule($aModule);
$this->_iProfileId = getLoggedId();
$this->_aParts = $this->_oDb->getParts();
$this->_oDb->_aParts =& $this->_aParts;
if (0 == strncmp('https', BX_DOL_URL_ROOT, 5)) {
$this->_sProto = 'https';
}
}
示例11: BxGSearchModule
function BxGSearchModule(&$aModule)
{
parent::BxDolModule($aModule);
$GLOBALS['aModule'] = $aModule;
$this->_iProfileId = getLoggedId();
$GLOBALS['oBxGSearchModule'] =& $this;
if (0 == strncmp('https', BX_DOL_URL_ROOT, 5)) {
$this->_sProto = 'https';
}
}
示例12: BxSimpleMessengerModule
/**
* 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 BxSimpleMessengerModule($aModule)
{
parent::BxDolModule($aModule);
$this->sHomeUrl = $this->_oConfig->_sHomeUrl;
$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);
}
示例13: BxDolTextModule
function BxDolTextModule($aModule)
{
parent::BxDolModule($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;
}
示例14: BxOAuthModule
function BxOAuthModule(&$aModule)
{
parent::BxDolModule($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' => $GLOBALS['db']['user'], 'password' => $GLOBALS['db']['passwd'], 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'")), $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));
}
示例15: BxSimpleMessengerModule
/**
* 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 BxSimpleMessengerModule($aModule)
{
parent::BxDolModule($aModule);
$this->sHomeUrl = $this->_oConfig->_sHomeUrl;
$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, 'procces_smiles' => $this->_oConfig->bProccesSmiles, '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->aSmiles = array(':arrow:' => 'icon_arrow.gif', ':D' => 'icon_biggrin.gif', ':-D' => 'icon_biggrin.gif', ':grin:' => 'icon_biggrin.gif', ':?' => 'icon_confused.gif', ':-?' => 'icon_confused.gif', '???:' => 'icon_confused.gif', '8)' => 'icon_cool.gif', '8-)' => 'icon_cool.gif', ':cool:' => 'icon_cool.gif', ':cry:' => 'icon_cry.gif', ':shock:' => 'icon_eek.gif', ':evil:' => 'icon_evil.gif', ':!:' => 'icon_exclaim.gif', ':idea:' => 'icon_idea.gif', ':lol:' => 'icon_lol.gif', ':x' => 'icon_mad.gif', ':-x' => 'icon_mad.gif', ':mad:' => 'icon_mad.gif', ':mrgreen' => 'icon_mrgreen.gif', ':|' => 'icon_neutral.gif', ':-|' => 'icon_neutral.gif', ':neutral' => 'icon_neutral.gif', ':?:' => 'icon_question.gif', ':P' => 'icon_razz.gif', ':-P' => 'icon_razz.gif', ':razz:' => 'icon_razz.gif', ':oops:' => 'icon_redface.gif', ':roll:' => 'icon_rolleyes.gif', ':(' => 'icon_sad.gif', ':-(' => 'icon_sad.gif', ':sad:' => 'icon_sad.gif', ':)' => 'icon_smile.gif', ':-)' => 'icon_smile.gif', ':smile:' => 'icon_smile.gif', ':o' => 'icon_surprised.gif', ':-o' => 'icon_surprised.gif', ':eek:' => 'icon_surprised.gif', ':twisted' => 'icon_twisted.gif', ':wink:' => 'icon_wink.gif', ';)' => 'icon_wink.gif', ';-)' => 'icon_wink.gif');
$this->oPrivacy = new BxSimpleMessengerPrivacy($this);
}