Class StylableObject

Description

StylableObject This is a virtual class representing something which can have its look changed by applying styles and/or classnames to it.

Located in /html-defs.php (line 86)

RenderableObject
   |
   --StylableObject
Direct descendents
Class Description
 class HTMLObject An HTMLObject is any object which will be rendered in HTML according to the basic syntax defined for HTML.
 class menu A menu, which is a container for menu items. This class encapsulates what is essentially a list of links which can be displayed as a 'menu'. Orientation can be VERTICAL or HORIZONTAL. A 'wrap threshold' can be defined. If it's a vertical menu, this represents the max no.
Variable Summary
 mixed $class
 mixed $id
 mixed $style
Method Summary
 StylableObject StylableObject ([mixed $css = ""], string $class_style)
 void clearstyle ()
 void setclass (string $class)
 void setcss ([mixed $css = ""])
 void setid (string $id)
 void setstyle (string $style)
Variables
mixed $class (line 92)

The stylesheet class to apply to this object

mixed $id (line 88)

The ID tag to apply to this object

mixed $style (line 90)

The style to apply to this object

Methods
Constructor StylableObject (line 99)

Constructor Create a stylableobject. Sets basic field attributes.

StylableObject StylableObject ([mixed $css = ""], string $class_style)
  • string $class_style: Classname or Style setting to apply
clearstyle (line 121)

Clear all existing style settings. This leaves any class settings alone.

void clearstyle ()
setclass (line 115)

Set the class (from stylesheet) for the object

void setclass (string $class)
  • string $class: Class to apply to this object
setcss (line 144)

Set class or style for the object. A style is detected by the presence of the colon (:) character in the string.

NOTE: styles will be added to the existing style value in cumulative fashion.

void setcss ([mixed $css = ""])
setid (line 107)

Set the ID tag of the object

void setid (string $id)
  • string $id: The ID to set against this ibject
setstyle (line 129)

Append a style to ant exitsing style the object has.

void setstyle (string $style)
  • string $style: Style to append to existing.

Inherited Methods

Inherited From RenderableObject

 RenderableObject::RenderableObject()
 RenderableObject::html()
 RenderableObject::render()
 RenderableObject::wml()
 RenderableObject::wmlup()
 RenderableObject::xml()

Documentation generated by phpDocumentor 1.3.0RC3