OOUI
Object-Oriented User Interface
|
Public Member Functions | |
getElementClasses (Element $element) | |
Get a list of classes to be applied to a widget. More... | |
updateElementClasses (Element $element) | |
Update CSS classes provided by the theme. More... | |
Static Public Member Functions | |
static | setSingleton (Theme $theme=null) |
static | singleton () |
Theme logic.
@abstract
OOUI\Theme::getElementClasses | ( | Element | $element | ) |
Get a list of classes to be applied to a widget.
The 'on' and 'off' lists combined MUST contain keys for all classes the theme adds or removes, otherwise state transitions will not work properly.
on
and off
lists Reimplemented in OOUI\WikimediaUITheme, and OOUI\BlankTheme.
|
static |
OOUI\Theme::updateElementClasses | ( | Element | $element | ) |