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

Class: FormSelectDateComponent

Source Location: /framework/template/components/form/select_date.inc.php

http://wact.sourceforge.net/index.php/FormSelectDateComponent

Class Overview

Component
   |
   --TagComponent
      |
      --FormComponent
         |
         --FormSelectDateComponent

Runtime form:selectdate API

Variables

Methods


Inherited Variables

Inherited Methods

Class: FormComponent

FormComponent::ensureDataSourceAvailable()
FormComponent::findLabel()
Finds the LabelComponent associated with a form field, allowing an error message to be displayed next to the field.
FormComponent::getDataSource()
Return the DataSource (typically this is called for you by controllers)
FormComponent::getErrorDataSet()
Returns the ErrorList if it exists or an EmptyErrorList if not (typically this is called for you by controllers)
FormComponent::hasErrors()
Determine whether the form has errors.
FormComponent::prepare()
Initializes the form DataSource (typically this is called for you by controllers)
FormComponent::preserveState()
Identify a property stored in the DataSource of the component, which should be passed as a hidden input field in the form post.
FormComponent::registerDataSource()
Registers a DataSource with this component (typically this is called for you by controllers)
FormComponent::renderState()
Renders the hidden fields for variables which should be preserved.
FormComponent::setErrors()
If errors occur, use this method to identify them to the FormComponent.
FormComponent::_getValue()
Get the named property from the form DataSource
FormComponent::_setValue()
Set a named property in the form DataSource

Class: TagComponent

TagComponent::getAttribute()
Returns the value of an attribute, given it's name
TagComponent::getCanonicalAttributeName()
returns the case-preserving, case-insensitive name of an attribute
TagComponent::getClientId()
Returns the value of the ID attribute
TagComponent::hasAttribute()
Check to see whether a named attribute exists
TagComponent::removeAttribute()
Remove an attribute from the list
TagComponent::renderAttributes()
Writes the contents of the attributes to the screen, using htmlspecialchars to convert entities in values.
TagComponent::setAttribute()
Sets an attribute

Class: Component

Component::addChild()
Adds a reference to a child component to this component, using it's ID attribute as the child array key
Component::findChild()
Returns a child component given it's ID.
Component::findChildByClass()
Returns the first child component matching the supplied WACT_TEMPLATE Component PHP class name
Component::findParentByClass()
Recursively searches through parents of this component searching for a given WACT_TEMPLATE component PHP class name
Component::getChild()
Same as find child, except raises error if child is not found
Component::getServerId()
Returns the ID of the component, as defined in the template tags ID attribute
Component::render()
Outputs the component, rendering any child components as well This method will only ever be called on components that support Dynamic rendering.
Component::setChildDataSource()
set the data source of a child component, or raise an error if the child is not found.

Class Details

Runtime form:selectdate API
access:  public
see:  http://wact.sourceforge.net/index.php/FormSelectDateComponent
todo:  EXPERIMENTAL

Class Variables


$asArray = false

Type:   mixed

$groupName =

Type:   mixed

$selectDay = null

Type:   mixed

$selectedTime = array()

Type:   mixed

$selectMonth = null

Type:   mixed

$selectYear = null

Type:   mixed

$setDefaultSelection = false

Type:   mixed

Class Methods


method getDay



SelectSingleComponent &getDay( )

API Tags:

return:  object
access:  protected

method getMonth



SelectSingleComponent &getMonth( )

API Tags:

return:  object
access:  protected

method getYear



SelectSingleComponent &getYear( )

API Tags:

return:  object
access:  protected

method isVisible

the compiler complains if not defined...

void isVisible( )

method parseTime



array parseTime( [mixed $time = null], CodeWriter 1)

API Tags:

access:  private

Parameters:

CodeWriter   1  
mixed   $time   int|string unix timestamp or ISO-8601 timestamp

method prepareDay

build SelectSimpleComponent object and set options for days

void prepareDay( )

method prepareMonth

build SelectSimpleComponent object and set options for months

void prepareMonth( )

method prepareYear

build SelectSimpleComponent object and set options for years

void prepareYear( )

method setAsArray



void setAsArray( )

method setGroupName



void setGroupName( string $name)

Parameters:

string   $name   'name' attribute of the form:selectdate tag

method setSelection

override default behaviour when onInitial() is called

void setSelection( [mixed $time = null])
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:49:52 -0800 by phpDocumentor 1.2.3