FormLib
[ class tree: FormLib ] [ index: FormLib ] [ all elements ]

Class: Button

Source Location: /FormLib/Button.php

Class Overview


A simple submit button class.


Author(s):

  • Randy L. Pearson

Variables

Methods


Child classes:

ImageButton
An image button class with rollover effects.

Class Details

[line 16]
A simple submit button class.



Tags:

author:  Randy L. Pearson


[ Top ]


Class Variables

$properties =

[line 18]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 30]

Button __construct( string $name, string $label, [PropertyHolder $style = false], PropertyHolder $properties)

Constructor

Initializes a button object.




Tags:

access:  public


Overridden in child classes as:

ImageButton::__construct()
Constructor.

Parameters:

string   $name   Name of the button.
string   $label   Text for the button.
PropertyHolder   $properties   Extra properties to attach to button.
PropertyHolder   $style   Style information.

[ Top ]

method display [line 78]

void display( $formStyle)

Render the button as HTML.

Generates the HTML needed to display the button on a form. Assumes the button will be span 2 columns in a table.




Tags:

access:  public


Overridden in child classes as:

ImageButton::display()
Displays the button in 2 columns of a table row.

Parameters:

   $formStyle  

[ Top ]

method onClick [line 87]

void onClick( )



Tags:

access:  protected


[ Top ]

method __get [line 54]

void __get( string $name)

Property accessor.



Tags:

access:  public
since:  0.2 - Nov 7, 2006


Parameters:

string   $name   Name of the property to return.

[ Top ]

method __set [line 67]

void __set( string $name, any $value)

Property mutator.



Tags:

access:  public
since:  0.2 - Nov 7, 2006


Parameters:

string   $name   Name of the property to change.
any   $value   Value to assign to the property.

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:47:54 -0600 by phpDocumentor 1.3.1