XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Data Fields | |
$_mAdminModeFlag = false | |
$_mStrategy = null | |
$mDialogMode = false | |
$mCheckLogin = null | |
$mLogout = null | |
$mCreateLanguageManager = null | |
$mSetBlockCachePolicy = null | |
$mActiveModules = null | |
$mSetModuleCachePolicy = null | |
$mGetLanguageName = null | |
$mSetupDebugger = null | |
$mDebugger | |
$_mNotifyRedirectToUser = null | |
$mLogger = null | |
![]() | |
$mRoot | |
$_mBlockChain = [] | |
$_mFilterChain = [] | |
$_mLoadedFilterNames = [] | |
$mDB | |
$mLocale | |
$mLanguage | |
$mSetupUser = null | |
$mExecute = null | |
$mSetupTextFilter = null | |
Protected Member Functions | |
_loadInterfaceFiles () | |
This class is a virtual controller that ensures compatibility with XOOPS 2.0.x.
[NOTICE] XOOPS 2.0.x can switch to public mode and control panel mode. This controller emulates its process by using STATE. But, we may lose flexible setup with this implementation. Now, we are investigating the influence.
[TODO] XCube_Controller keeps a process that set up instances of some legacy classes, yet. We should move its process to this controller.
Definition at line 50 of file Legacy_Controller.class.php.
__construct | ( | ) |
Reimplemented from XCube_Controller.
Definition at line 116 of file Legacy_Controller.class.php.
& _createContext | ( | ) |
Creates the context object to initial the root object, and returns it.
Reimplemented from XCube_Controller.
Definition at line 1412 of file Legacy_Controller.class.php.
& _createDelegateManager | ( | ) |
Reimplemented from XCube_Controller.
Definition at line 996 of file Legacy_Controller.class.php.
& _createLanguageManager | ( | $language | ) |
Factory for the language manager
At first, this member function delegates to get an instance of LanguageManager. If it can't get it, do the following process:
@exemple 1) Try creating an instance of 'Legacy_LanguageManager_' . ucfirst($language) 2) If the class doesn't exist, try loading 'LanguageManager.class.php' in the specified language. 3) Re-try creating the instance.
If it can't create any instances, create an instance of Legacy_LanguageManager as default.
@access protected
string | $language |
Definition at line 704 of file Legacy_Controller.class.php.
& _createServiceManager | ( | ) |
Reimplemented from XCube_Controller.
Definition at line 1016 of file Legacy_Controller.class.php.
_executeViewTheme | ( | & | $resultRenderTarget | ) |
$resultRenderTarget object The render target of content's result.
$resultRenderTarget |
Get the render-system through theme object.
<
Definition at line 947 of file Legacy_Controller.class.php.
_getLocalTimezone | ( | ) |
Definition at line 272 of file Legacy_Controller.class.php.
|
protected |
Definition at line 846 of file Legacy_Controller.class.php.
_parseUrl | ( | ) |
Definition at line 468 of file Legacy_Controller.class.php.
_processBlock | ( | ) |
@MEMO Process of Block Fetch objects from $this->mBlockChain render the result of the object with html data, and set the result to the member property.
In this member function, the cache mechanism must be important. If the object has its own cache settings, this function loads the data from the cache instead of calling the business logic of the block.
@access protected
@MEMO Create render-target for blocks We use reset() to re-cycle this object in the foreach loop.
Reimplemented from XCube_Controller.
Definition at line 383 of file Legacy_Controller.class.php.
_processHostAbstractLayer | ( | ) |
IIS
Definition at line 555 of file Legacy_Controller.class.php.
_processModule | ( | ) |
Notify that the current user is accessing a non-activated module controller
Definition at line 524 of file Legacy_Controller.class.php.
_processModulePreload | ( | $dirname | ) |
Definition at line 798 of file Legacy_Controller.class.php.
_processPreBlockFilter | ( | ) |
Calls the preBlockFilter() member function of action filters which have been loaded to the list of the controller.
@access protected
Reimplemented from XCube_Controller.
Definition at line 792 of file Legacy_Controller.class.php.
_setupBlock | ( | ) |
!FIXME.
Reimplemented from XCube_Controller.
Definition at line 366 of file Legacy_Controller.class.php.
_setupConfig | ( | ) |
This member function is overridden. Loads site configuration information, and sets them as a member property.
Reimplemented from XCube_Controller.
Definition at line 741 of file Legacy_Controller.class.php.
_setupDB | ( | ) |
Create the instance of DataBase class, and set it to member property. @access protected
Reimplemented from XCube_Controller.
Definition at line 624 of file Legacy_Controller.class.php.
_setupDebugger | ( | ) |
Set debugger object to member property.
Definition at line 775 of file Legacy_Controller.class.php.
_setupEnvironment | ( | ) |
This member function is overridden. Set up the controller and the environment.
Reimplemented from XCube_Controller.
Definition at line 324 of file Legacy_Controller.class.php.
_setupErrorHandler | ( | ) |
Definition at line 616 of file Legacy_Controller.class.php.
_setupFilterChain | ( | ) |
@NOTICE We only set up the filters that we have decided to register. It's not flexible. It's not the fixed style.
@MEMO For testing, you can use the autoload plugin by writing a parameter in site_custom.ini.php
site_custom.ini.php: [Legacy] AutoPreload = 1
Reimplemented from XCube_Controller.
Definition at line 361 of file Legacy_Controller.class.php.
_setupLanguage | ( | ) |
Create an instance of Legacy_LanguageManager by the specified language, and set it to member properties.
@Notice Now, this member function sets a string to the member property without language manager.
Reimplemented from XCube_Controller.
Definition at line 655 of file Legacy_Controller.class.php.
_setupLogger | ( | ) |
Definition at line 258 of file Legacy_Controller.class.php.
_setupScript | ( | ) |
Definition at line 764 of file Legacy_Controller.class.php.
_setupSession | ( | ) |
This member function is overridden. Set up the session manager, then start the session.
@access protected
Reimplemented from XCube_Controller.
Definition at line 834 of file Legacy_Controller.class.php.
_setupUser | ( | ) |
Sets a main object to the root object. In other words, it restores the main object of the session or similar.
Reimplemented from XCube_Controller.
Definition at line 601 of file Legacy_Controller.class.php.
cacheRenderTarget | ( | $filepath, | |
& | $renderTarget ) |
Save the content of $renderTarget to $filepath.
string | $filepath | a file path of the cache file. |
$renderTarget |
Definition at line 1386 of file Legacy_Controller.class.php.
checkLogin | ( | ) |
Check the login request through the delegates and set XoopsObject to member property if the connection is successful.
@access public
Definition at line 1035 of file Legacy_Controller.class.php.
executeCommon | ( | ) |
@access public
Reimplemented from XCube_Controller.
Definition at line 186 of file Legacy_Controller.class.php.
executeCommonSubset | ( | bool | $connectdb = true | ) |
Subset of executeCommon() Method It will be used when process starts with $xoopsOption['nocommon'] and This process requires connecting XOOPS Database or LEGACY constant values But it won't do any other initial settings (e.g. Session start, Permission handling)
@access public
bool | $connectdb | set false if you don't want to connect XOOPS Database |
Definition at line 248 of file Legacy_Controller.class.php.
executeHeader | ( | ) |
Usually this member function is called after executeCommon(). But, some bases don't call this. Therefore, the page controller type base does not have to write the necessary code here. For example, this is good to call blocks.
@Todo Now, It's done to run admin panel.
We changed a render-system class in a pure drawing system. Therefore, a controller should not be required for compatibility.
cache check
Checks whether the cache file exists.
Checks whether the active cache file exists. If it's OK, load cache and do display.
Reimplemented from XCube_Controller.
Definition at line 855 of file Legacy_Controller.class.php.
executeRedirect | ( | $url, | |
$time = 1, | |||
$message = null, | |||
$addRedirect = true ) |
This member function works to redirect as well as redirect_header(). But, this member function handles raw values which hasn't been converted by htmlspecialchars(). Therefore, if user calls this function with the wrong value, some problems may be raised. If you can't understand the difference, do not use this function but redirect_header().
string | $url | redirect URL. Don't use user's variables or request. |
int | $time | waiting time (sec) |
string | null | $message | This string doesn't include tags. |
Definition at line 1201 of file Legacy_Controller.class.php.
executeView | ( | ) |
Executes the view logic. This member function is overridden.
@access public
Cache Control
Reimplemented from XCube_Controller.
Definition at line 904 of file Legacy_Controller.class.php.
existActiveCacheFile | ( | $filepath, | |
$cachetime ) |
Gets a value indicating wheter a cache file keeps life time. If $cachetime is 0 or the specific cache file doesn't exist, gets false.
string | $filepath | a file path of the specific cache file. |
int | $cachetime | cache active duration. (Sec) |
Definition at line 1367 of file Legacy_Controller.class.php.
getDialogMode | ( | ) |
getHelpViewUrl | ( | & | $module | ) |
Gets URL of help viewer by this controller.
XoopsModule | $module |
Definition at line 1444 of file Legacy_Controller.class.php.
& getLogger | ( | ) |
Definition at line 267 of file Legacy_Controller.class.php.
getPreferenceEditUrl | ( | & | $module | ) |
Gets URL of preference editor by this controller.
XoopsModule | $module |
Definition at line 1429 of file Legacy_Controller.class.php.
& getVirtualCurrentModule | ( | ) |
Return current module object. But, it's decided by the rules of the state. Note that Preferences, Help and some other views return the specified module by dirname. This is useful for controlling a theme.
Definition at line 1181 of file Legacy_Controller.class.php.
isEnableCacheFeature | ( | ) |
Gets a value indicating whether the controller can use a cache mechanism.
Definition at line 1354 of file Legacy_Controller.class.php.
loadCache | ( | $filepath | ) |
Loads $filepath and gets the content of the file.
$filepath |
Definition at line 1403 of file Legacy_Controller.class.php.
logout | ( | ) |
The current user logout.
@access public
Definition at line 1096 of file Legacy_Controller.class.php.
prepare | ( | & | $root | ) |
This member function is overridden. The subclass implements the initialization process that sets up the final root object.
XCube_Root | $root |
Reimplemented from XCube_Controller.
Definition at line 149 of file Legacy_Controller.class.php.
setDialogMode | ( | $flag | ) |
Set bool flag to dialog mode flag. If you set true, executeView() will use Legacy_DialogRenderTarget class as render target.
bool | $flag |
Definition at line 1159 of file Legacy_Controller.class.php.
setStrategy | ( | & | $strategy | ) |
âš CAUTION âš This method has a very specific task. After executeCommon, this method changes the state and resets the property. It depends on the steps of XCube_Controller.
Legacy_AbstractControllerStrategy | $strategy |
Definition at line 1139 of file Legacy_Controller.class.php.
setupModuleContext | ( | $dirname = null | ) |
Definition at line 490 of file Legacy_Controller.class.php.
switchStateCompulsory | ( | & | $strategy | ) |
$strategy |
Definition at line 1126 of file Legacy_Controller.class.php.
$_mAdminModeFlag = false |
Definition at line 52 of file Legacy_Controller.class.php.
$_mNotifyRedirectToUser = null |
Definition at line 109 of file Legacy_Controller.class.php.
$_mStrategy = null |
Definition at line 54 of file Legacy_Controller.class.php.
$mActiveModules = null |
Definition at line 81 of file Legacy_Controller.class.php.
$mCheckLogin = null |
Definition at line 61 of file Legacy_Controller.class.php.
$mCreateLanguageManager = null |
Definition at line 71 of file Legacy_Controller.class.php.
$mDebugger |
Definition at line 101 of file Legacy_Controller.class.php.
$mDialogMode = false |
Definition at line 56 of file Legacy_Controller.class.php.
$mGetLanguageName = null |
Definition at line 91 of file Legacy_Controller.class.php.
$mLogger = null |
Definition at line 114 of file Legacy_Controller.class.php.
$mLogout = null |
Definition at line 66 of file Legacy_Controller.class.php.
$mSetBlockCachePolicy = null |
Definition at line 76 of file Legacy_Controller.class.php.
$mSetModuleCachePolicy = null |
Definition at line 86 of file Legacy_Controller.class.php.
$mSetupDebugger = null |
Definition at line 96 of file Legacy_Controller.class.php.