XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
[Abstract] Represents modules and used for Legacy_Controller More...
Public Member Functions | |
__construct (&$module, $loadConfig=true) | |
constructor | |
setAttribute ($key, $value) | |
Sets $value with $key to attributes. | |
hasAttribute ($key) | |
Gets a value indicating whether the value specified by $key exists. | |
getAttribute ($key) | |
Gets a value of attributes with $key. | |
setXoopsModule (&$xoopsModule) | |
Binds an instance of XoopsModule to the property. | |
& | getXoopsModule () |
Gets the binded XoopsModule instance. | |
setModuleConfig ($config) | |
Binds array of xoops module config to the property. | |
getModuleConfig (string $key=null) | |
Gets a value form xoops module config with $key. | |
& | getCacheInfo () |
Gets the cache information instance. | |
_createCacheInfo () | |
Creates a cache information instance and returns it. | |
& | getRenderTarget () |
Gets the render target instance. | |
_createRenderTarget () | |
Creates a render target instance and returns it. | |
getRenderSystemName () | |
Gets a name of the dependency render system. | |
& | getRenderSystem () |
Gets the dependency render system. | |
isActive () | |
Gets a value indicating whether this modules is an active. | |
isEnableCache () | |
Gets a value indicating whether the current module has a option of configurations to use the cache system. | |
& | createCacheInfo () |
Initializes a cache information object, and returns it. | |
startup () | |
[Abstract] This method is called by the controller strategy, if this module is the current module. | |
doActionSearch (&$searchArgs) | |
[Abstract] This method is called back by the action search feature in the control panel. | |
doLegacyGlobalSearch ($queries, $andor, $max_hit, $start, $uid) | |
This method is called back by the xoops global search feature. | |
hasAdminIndex () | |
Gets a value indicating whether this module has the page controller in the control panel side. | |
getAdminIndex () | |
[Abstract] Gets an absolute URL indicating the top page of this module for the control panel side. | |
getAdminMenu () | |
Gets an array having menus for the side menu of the control panel. | |
Data Fields | |
$mAttributes = [] | |
[READ ONLY] Map Array - std::map<string, mixed> - used freely for this module. | |
$mXoopsModule = null | |
[READ ONLY] XoopsModule | |
$mModuleConfig = [] | |
[READ ONLY] Map Array - std::map<string, string> | |
$mCacheInfo = null | |
Legacy_AbstractCacheInformation - The cached instance. | |
$mRender = null | |
XCube_RenderTarget - The render target instance for this module. | |
[Abstract] Represents modules and used for Legacy_Controller
This is an abstract class which has interfaces to connect with the controller about the module process. Legacy controller makes an interface of this class and uses its methods to call module programs.
So modules may define their sub-classes implementing this interface. The instance is attached to the Legacy_Context after initializing, so modules can define members for module's features and can access them. But, most interfaces defined by this class should be called by only Legacy_Controller.
Definition at line 31 of file Legacy_Module.class.php.
__construct | ( | & | $module, |
$loadConfig = true ) |
constructor
XoopsModule | $module | |
bool | $loadConfig |
Definition at line 76 of file Legacy_Module.class.php.
_createCacheInfo | ( | ) |
Creates a cache information instance and returns it.
Definition at line 194 of file Legacy_Module.class.php.
_createRenderTarget | ( | ) |
Creates a render target instance and returns it.
Definition at line 225 of file Legacy_Module.class.php.
& createCacheInfo | ( | ) |
Initializes a cache information object, and returns it.
Definition at line 302 of file Legacy_Module.class.php.
doActionSearch | ( | & | $searchArgs | ) |
[Abstract] This method is called back by the action search feature in the control panel.
Legacy_ActionSearchArgs | $searchArgs |
Reimplemented in Legacy_ModuleAdapter.
Definition at line 329 of file Legacy_Module.class.php.
doLegacyGlobalSearch | ( | $queries, | |
$andor, | |||
$max_hit, | |||
$start, | |||
$uid ) |
This method is called back by the xoops global search feature.
$queries | |
$andor | |
$max_hit | |
$start | |
$uid |
Reimplemented in Legacy_ModuleAdapter.
Definition at line 342 of file Legacy_Module.class.php.
getAdminIndex | ( | ) |
[Abstract] Gets an absolute URL indicating the top page of this module for the control panel side.
Reimplemented in Legacy_ModuleAdapter, and Message_Module.
Definition at line 372 of file Legacy_Module.class.php.
getAdminMenu | ( | ) |
Gets an array having menus for the side menu of the control panel.
Reimplemented in Legacy_Module, Legacy_ModuleAdapter, LegacyRender_Module, Message_Module, and User_Module.
Definition at line 383 of file Legacy_Module.class.php.
getAttribute | ( | $key | ) |
Gets a value of attributes with $key.
string | $key |
Definition at line 118 of file Legacy_Module.class.php.
& getCacheInfo | ( | ) |
Gets the cache information instance.
Definition at line 176 of file Legacy_Module.class.php.
getModuleConfig | ( | string | $key = null | ) |
Gets a value form xoops module config with $key.
string | null | $key |
Definition at line 161 of file Legacy_Module.class.php.
& getRenderSystem | ( | ) |
Gets the dependency render system.
Definition at line 257 of file Legacy_Module.class.php.
getRenderSystemName | ( | ) |
Gets a name of the dependency render system.
Definition at line 244 of file Legacy_Module.class.php.
& getRenderTarget | ( | ) |
Gets the render target instance.
Definition at line 207 of file Legacy_Module.class.php.
& getXoopsModule | ( | ) |
Gets the binded XoopsModule instance.
Definition at line 139 of file Legacy_Module.class.php.
hasAdminIndex | ( | ) |
Gets a value indicating whether this module has the page controller in the control panel side.
Reimplemented in Legacy_ModuleAdapter, and Message_Module.
Definition at line 358 of file Legacy_Module.class.php.
hasAttribute | ( | $key | ) |
Gets a value indicating whether the value specified by $key exists.
string | $key |
Definition at line 107 of file Legacy_Module.class.php.
isActive | ( | ) |
Gets a value indicating whether this modules is an active.
Definition at line 270 of file Legacy_Module.class.php.
isEnableCache | ( | ) |
Gets a value indicating whether the current module has a option of configurations to use the cache system.
Definition at line 286 of file Legacy_Module.class.php.
setAttribute | ( | $key, | |
$value ) |
Sets $value with $key to attributes.
string | $key | |
mixed | $value |
Definition at line 96 of file Legacy_Module.class.php.
setModuleConfig | ( | $config | ) |
Binds array of xoops module config to the property.
$config | Array - std::map<string, mixed> |
Definition at line 150 of file Legacy_Module.class.php.
setXoopsModule | ( | & | $xoopsModule | ) |
Binds an instance of XoopsModule to the property.
XoopsModule | $xoopsModule |
Definition at line 129 of file Legacy_Module.class.php.
startup | ( | ) |
[Abstract] This method is called by the controller strategy, if this module is the current module.
Reimplemented in Profile_Module.
Definition at line 317 of file Legacy_Module.class.php.
$mAttributes = [] |
[READ ONLY] Map Array - std::map<string, mixed> - used freely for this module.
Definition at line 39 of file Legacy_Module.class.php.
$mCacheInfo = null |
Legacy_AbstractCacheInformation - The cached instance.
Definition at line 58 of file Legacy_Module.class.php.
$mModuleConfig = [] |
[READ ONLY] Map Array - std::map<string, string>
Definition at line 51 of file Legacy_Module.class.php.
$mRender = null |
XCube_RenderTarget - The render target instance for this module.
Definition at line 65 of file Legacy_Module.class.php.
$mXoopsModule = null |
[READ ONLY] XoopsModule
Definition at line 45 of file Legacy_Module.class.php.