Static Public Member Functions | |
static | getComponent ($id) |
Retrieves a component based on its ID. | |
static | getDefaultTheme () |
Retrieves the current default theme for new objects. | |
static | setDefaultTheme ($theme, $updateAll=false) |
Sets the default theme for all new objects. |
This class cannot be instantiated, and generally contains methods that are used internally by the toolkit. Only a few are interesting to end developers, and a few more are needed when extending the toolkit. Please heed the comments about not using certain functions, and only use those which are documented.
static Toolkit::getComponent | ( | $ | id | ) | [static] |
Retrieves a component based on its ID.
All toolkit objects have a (hopefully) unique ID. You can retrieve any TK object by calling this static function, provided you know its ID.
$id | [string]: object id to look for |
static Toolkit::getDefaultTheme | ( | ) | [static] |
Retrieves the current default theme for new objects.
static Toolkit::setDefaultTheme | ( | $ | theme, | |
$ | updateAll = false | |||
) | [static] |
Sets the default theme for all new objects.
It can also be made to update the theme of existing objects
$theme | [TKTheme]: new theme | |
$updateAll | [boolean]: whether to update existing objects to the new theme |