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

Class: YearField

Source Location: /fields.php

Class Overview

Field
   |
   --YearField

Year field


Author(s):

  • Dumitru Postoronca

Variables

Methods


Inherited Variables

Inherited Methods

Class: Field

Field::getHtml()
Renders the object in HTML code
Field::out()
Outputs the field in XHTML format

Class Details

[line 290]
Year field

Year field




Tags:

author:  Dumitru Postoronca


[ Top ]


Class Variables

$_options = array(
        'start'    => 1960,
        'end'      => 2010
    )

[line 298]

Associative array of field options

Associative array of field options



Type:   array


[ Top ]



Class Methods


constructor YearField [line 312]

YearField YearField( string $name, [string $label = 'Year: '], [string $selected = null], [array $input_attrib = array()], [array $label_attrib = array()])

Constructor

Constructor




Parameters:

string   $name   Name of the field
string   $label   Label of the field
string   $selected   Selected value
array   $input_attrib   Associative array of XHTML attributes for the input tag
array   $label_attrib   Associative array of XHTML attributes for the label tag

[ Top ]

method setOptions [line 336]

void setOptions( array $options)

Modifies the default options for YearField

Modifies the default options for YearField




Parameters:

array   $options   Associative array of options

[ Top ]


Documentation generated on Fri, 16 Dec 2005 13:16:39 +0200 by phpDocumentor 1.3.0RC4