A generic
implementation. It should be sufficient just to extend it to create new fully fledged Themes.
A
is a combination of two things: first, it stores a variety of reusable
and second, it offers a mechanism for printing an HTML web page.
- StyleCollections
has a set of style collections that correspond to each component type.
has a single component (could be container) that will be printed when
is called.
Located in /harmoni/core/GUIManager/Theme.class.php (line 29)
ThemeInterface | --Theme
Class | Description |
---|---|
MenuThemeAbstract |
This MenuTheme abstract class implements solely the and
|
GenericTheme | A very basic theme based on simple borders and colored blocks. |
NiksTheme | A very basic theme based on simple borders and colored blocks. |
SimpleLinesTheme | A very basic theme based on simple borders and colored blocks. |
SimpleTheme | A simple theme with rounded boxes. |
SimpleTheme1 | A very basic theme based on simple borders and colored blocks. |
The component of this Theme.
This array will store the post-HTML strings for the different component types. The first dimension is the component type. The second dimension is the index.
This array will store the pre-HTML strings for the different component types. The first dimension is the component type. The second dimension is the index.
An array storing style collections for the different component types. The first dimension is the component type. The second dimension is the index. The third dimension is the selector of the style collection.
The description of this Theme.
The display name of this Theme.
An array storing global style collections. It is one-dimensional. The key is the selector of the style collection. The element is the style collection itself.
The page title.
This array stores the names of the methods that will be run after importing of registered
.
- StyleProperties
The constructor.
Attaches to the Theme a style collection that will have a global effect on the page look and feel. For example, this could be a style collection affecting the
HTML element.
- body
HTML element.
- body
Registers the specified style collection with the given component type.
.
This method is like
but exports all registered stlye properties at the same time. The output is an array whose elements are the inividual export data as returned by
- exportRegisteredSP
.
- exportRegisteredSP
but exports all registered stlye properties at the same time. The output is an array whose elements are the inividual export data as returned by
- exportRegisteredSP
.
- exportRegisteredSP
This methods exports the content of a registered style property object. The output is implementation specific. The only requirement is that if the output of this method is passed as an input to
, then the contents of the
- importRegisteredSP()
should not change.
as returned by
.
, then the contents of the
- importRegisteredSP()
should not change.
Returns all registered mutable style properties in an array whose indexes are the ids of the style properties (as returned by
).
- registerSP()
).
- registerSP()
Answers the class for constructing Style Collections for this theme
Returns the component of this
.
.
Returns all CSS code: The CSS code for the Theme, the various component types, the theme component and all sub-components (if any). Theme styles should come first, followed by individual component's styles to allow the latter to take precedence.
Returns the description of this Theme.
Returns the display name of this Theme.
Answers the Style Collection that has global effects.
Returns the HTML string that needs to be printed after successful rendering of components of the given type and index. Note: use of the PreHTML and PostHTML get/set methods is discouraged - use styles instead: see
and
- addStyleForComponentType()
.
- getStylesForComponentType()
and
- addStyleForComponentType()
.
- getStylesForComponentType()
Returns the HTML string that needs to be printed before an attempt is made to render components of the given type and index. Note: use of the PreHTML and PostHTML get/set methods is discouraged - use styles instead: see
and
- addStyleForComponentType()
.
- getStylesForComponentType()
and
- addStyleForComponentType()
.
- getStylesForComponentType()
Returns a
previously registered by
for the given id.
- registerSP()
.
previously registered by
for the given id.
- registerSP()
Returns the StyleCollection with the given selector
This method returns all style collections for the given component type and the given numeric index.
Each
has a set of style collections that correspond to a combination of a component type and a numeric index. For example, the user can define two style collections for components of type BLOCK and index 1 and a totally different set of three style collections for componets of type MENU and index 2.
method in the Theme constructor.
- setStyleForComponentType()
Imports the contents of a registered mutable
.
The input to this method should be an output obtained from calling
on the same
.
as returned by
.
as exported by
.
.
Prints the HTML page.
Adds the given StyleProperty to the internally maintained list of mutable
(updateable) style properties and assigns it an id. This method and the
method enable the user to quickly change the values of key Theme settings. For example, let us assume that Bob has created his own theme and he has added a global style collection for the main content block. Bob would like to allow the user to change the width property of that collection. In order to do so, Bob needs to call
and pass the WidthSP object accordingly. This WidthSP object must be the same object that had been added to the aforementioned global style collection. The user now can call
with the id that was returned by
and access/modify the
object.
removes the style collection from the theme, and the DB is called for
Sets the component of this
.
.
method - sets the Theme component to the wrapper component and adds the argument to the latter.
- setComponent
Sets the level of customization for the theme
Sets the description of this Theme.
Sets the display name of this Theme.
Sets the HTML string that needs to be printed after successful rendering of components of the given type and index. Note: use of the PreHTML and PostHTML get/set methods is discouraged - use styles instead: see
and
- addStyleForComponentType()
.
- getStylesForComponentType()
.
and
- addStyleForComponentType()
.
- getStylesForComponentType()
Sets the HTML string that needs to be printed before an attempt is made to render components of the given type and index. Note: use of the PreHTML and PostHTML get/set methods is discouraged - use styles instead: see
and
- addStyleForComponentType()
.
- getStylesForComponentType()
.
and
- addStyleForComponentType()
.
- getStylesForComponentType()
A private function that returns all style collections for the given component and any subcomponents it might have.
Inherited From ThemeInterface
ThemeInterface::addGlobalStyle()
ThemeInterface::addStyleForComponentType()
ThemeInterface::exportAllRegisteredSPs()
ThemeInterface::exportRegisteredSP()
ThemeInterface::getAllRegisteredSPs()
ThemeInterface::getComponent()
ThemeInterface::getCSS()
ThemeInterface::getDescription()
ThemeInterface::getDisplayName()
ThemeInterface::getGlobalStyle()
ThemeInterface::getPostHTMLForComponentType()
ThemeInterface::getPreHTMLForComponentType()
ThemeInterface::getRegisteredSP()
ThemeInterface::getStylesForComponentType()
ThemeInterface::importRegisteredSP()
ThemeInterface::printPage()
ThemeInterface::registerSP()
ThemeInterface::setComponent()
ThemeInterface::setDescription()
ThemeInterface::setDisplayName()
ThemeInterface::setPostHTMLForComponentType()
ThemeInterface::setPreHTMLForComponentType()
Documentation generated on Wed, 19 Sep 2007 10:27:18 -0400 by phpDocumentor 1.3.0RC3