function LegacyRender_ActionFrame($admin) { $this->mAdminFlag = $admin; $this->mCreateAction = new XCube_Delegate(); $this->mCreateAction->register('LegacyRender_ActionFrame.CreateAction'); $this->mCreateAction->add(array(&$this, '_createAction')); }
function Legacy_Controller() { parent::XCube_Controller(); // // Setup member properties as member delegates. // $this->mSetupUser->register("Legacy_Controller.SetupUser"); $this->mCheckLogin = new XCube_Delegate(); $this->mCheckLogin->register("Site.CheckLogin"); $this->mLogout = new XCube_Delegate(); $this->mLogout->register("Site.Logout"); $this->mCreateLanguageManager = new XCube_Delegate(); $this->mCreateLanguageManager->register("Legacy_Controller.CreateLanguageManager"); $this->mGetLanguageName = new XCube_Delegate(); $this->mGetLanguageName->register("Legacy_Controller.GetLanguageName"); $this->mSetBlockCachePolicy = new XCube_Delegate(); $this->mSetModuleCachePolicy = new XCube_Delegate(); $this->mSetupDebugger = new XCube_Delegate(); $this->mSetupDebugger->add('Legacy_DebuggerManager::createInstance'); $this->mSetupTextFilter->add('Legacy_TextFilter::getInstance', XCUBE_DELEGATE_PRIORITY_FINAL - 1); $this->_mNotifyRedirectToUser = new XCube_Delegate(); if (get_magic_quotes_runtime()) { set_magic_quotes_runtime(0); // ^^; } }
/** * @public * @brief Constructor * @todo * This method keeps a deprecated delegate. */ function Legacy_TextFilter() { $this->mMakeClickableConvertTable = new XCube_Delegate(); $this->mMakeClickableConvertTable->register('Legacy_TextFilter.MakeClickableConvertTable'); $this->mMakeClickableConvertTable->add('Legacy_TextFilter::makeClickableConvertTable', XCUBE_DELEGATE_PRIORITY_2); $this->mMakeXCodeConvertTable = new XCube_Delegate(); $this->mMakeXCodeConvertTable->register('Legacy_TextFilter.MakeXCodeConvertTable'); $this->mMakeXCodeConvertTable->add('Legacy_TextFilter::makeXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2); $this->mMakeXCodeCheckImgPatterns = new XCube_Delegate(); $this->mMakeXCodeCheckImgPatterns->register('Legacy_TextFilter.MakeXCodeCheckImgPatterns'); $this->mMakeXCodeCheckImgPatterns->add('Legacy_TextFilter::makeXCodeCheckImgPatterns', XCUBE_DELEGATE_PRIORITY_2); $this->mMakePreXCodeConvertTable = new XCube_Delegate(); $this->mMakePreXCodeConvertTable->register('Legacy_TextFilter.MakePreXCodeConvertTable'); $this->mMakePreXCodeConvertTable->add('Legacy_TextFilter::makePreXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2); $this->mMakePostXCodeConvertTable = new XCube_Delegate(); $this->mMakePostXCodeConvertTable->register('Legacy_TextFilter.MakePostXCodeConvertTable'); $this->mMakePostXCodeConvertTable->add('Legacy_TextFilter::makePostXCodeConvertTable', XCUBE_DELEGATE_PRIORITY_2); //@deprecated //Todo: For keeping compatible with XC2.1 Beta3 $this->mMakeClickablePre = new XCube_Delegate(); $this->mMakeClickablePre->register('MyTextSanitizer.MakeClickablePre'); $this->mXCodePre = new XCube_Delegate(); $this->mXCodePre->register('MyTextSanitizer.XoopsCodePre'); }
/** * @public */ function preBlockFilter() { if (!$this->mRoot->mContext->hasAttribute('module.profile.HasSetAssetManager')) { $delegate =new XCube_Delegate(); $delegate->register('Module.profile.Event.GetAssetManager'); $delegate->add(array(&$this, 'getManager')); $this->mRoot->mContext->setAttribute('module.profile.HasSetAssetManager', true); } $file = XOOPS_MODULE_PATH.'/profile/class/DelegateFunctions.class.php'; $this->mRoot->mDelegateManager->add('Legacy_Profile.SaveProfile', 'Profile_Delegate::saveProfile', $file); $this->mRoot->mDelegateManager->add('Legacy_Profile.GetDefinition', 'Profile_Delegate::getDefinition', $file); $this->mRoot->mDelegateManager->add('Legacy_Profile.GetProfile', 'Profile_Delegate::getProfile', $file); $this->mRoot->mDelegateManager->add('Legacy_Profile.SetupActionForm', 'Profile_Delegate::setupActionForm', $file); $this->mRoot->mDelegateManager->add('Legacy_Profile.LoadActionForm', 'Profile_Delegate::loadActionForm', $file); $this->mRoot->mDelegateManager->add('Legacy.Event.UserDelete', 'Profile_AssetPreload::deleteProfile'); $this->mRoot->mDelegateManager->add('Legacy.Admin.Event.UserDelete', 'Profile_AssetPreload::deleteProfile'); }
function XCube_Controller() { $this->_mBlockChain = array(); $this->_mFilterChain = array(); $this->_mLoadedFilterNames = array(); $this->mSetupUser = new XCube_Delegate(); $this->mExecute = new XCube_Delegate(); $this->mSetupTextFilter = new XCube_Delegate(); $this->mSetupTextFilter->add('XCube_TextFilter::getInstance', XCUBE_DELEGATE_PRIORITY_FINAL); }
function Legacy_HelpAction($flag) { parent::Legacy_Action($flag); $this->mCreateHelpSmarty = new XCube_Delegate(); $this->mCreateHelpSmarty->add(array(&$this, '_createHelpSmarty')); $this->mCreateHelpSmarty->register('Legacy_HelpAction.CreateHelpSmarty'); }