XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_ThemeSelect Class Reference
Inheritance diagram for Legacy_ThemeSelect:
XCube_ActionFilter

Public Member Functions

 __construct (&$controller)
 Constructor.
 
 preBlockFilter ()
 [Abstract] Executes the logic, when the controller executes preBlockFilter().
 
 doChangeTheme (&$principal, &$controller, &$context)
 
 callbackCheckLoginSuccess (&$xoopsUser)
 
 _isSelectableTheme ($theme_name)
 
- Public Member Functions inherited from XCube_ActionFilter
 preFilter ()
 [Abstract] Executes the logic, when the controller executes preFilter().
 
 postFilter ()
 [Abstract] Executes the logic, when the controller executes postFilter().
 

Data Fields

 $mIsSelectableTheme = null
 
- Data Fields inherited from XCube_ActionFilter
 $mController
 [READ ONLY] XCube_Controller
 
 $mRoot
 [READ ONLY] XCube_Root
 

Detailed Description

Theme select mechanism is that base knows the method to change themes without RenderSystem. So this class uses delegate to check whether the specified theme is selectable. Functions should be added to this delegate in constructor, because the delegate is called in preBlockFilter().

Definition at line 21 of file ThemeSelect.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( & $controller)

Constructor.

Parameters
$controllerXCube_Controller

Reimplemented from XCube_ActionFilter.

Definition at line 28 of file ThemeSelect.class.php.

Member Function Documentation

◆ _isSelectableTheme()

_isSelectableTheme ( $theme_name)

Definition at line 79 of file ThemeSelect.class.php.

◆ callbackCheckLoginSuccess()

callbackCheckLoginSuccess ( & $xoopsUser)

Definition at line 67 of file ThemeSelect.class.php.

◆ doChangeTheme()

doChangeTheme ( & $principal,
& $controller,
& $context )

Because this process needs sessions, this functions is added to SiteLogin event.

Parameters
$principal
$controller
$context

Definition at line 53 of file ThemeSelect.class.php.

◆ preBlockFilter()

preBlockFilter ( )

[Abstract] Executes the logic, when the controller executes preBlockFilter().

Remarks
Each controller has different timing when it calls preBlockFilter().

Reimplemented from XCube_ActionFilter.

Definition at line 40 of file ThemeSelect.class.php.

Field Documentation

◆ $mIsSelectableTheme

$mIsSelectableTheme = null

Definition at line 26 of file ThemeSelect.class.php.


The documentation for this class was generated from the following file: