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

Class: BirthdayDateTextInput

Source Location: /forms/items/BirthdayDateTextInput.class.php

Class Overview

ABSTObject
   |
   --ABSTHTMLTag
      |
      --ABSTHTMLFormItem
         |
         --ABSTHTMLTextInput
            |
            --HTMLTextInput
               |
               --BirthdayDateTextInput

A class to generate text input fields to fill in Dates.


Author(s):

Version:

  • 0.1.81

Copyright:

  • Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods


Inherited Variables

Inherited Methods

Class: HTMLTextInput

HTMLTextInput::HTMLTextInput()
Constructor
HTMLTextInput::get()
Returns a generated string based on the attributes of this object.
HTMLTextInput::getClone()
Makes a clone of this object an returns a reference to this clone.
HTMLTextInput::getPHPSource()
Generates the sourcecode to build this object and returns it.
HTMLTextInput::setStandardText()
Sets the text that should be shown if the textfields value is empty.

Class: ABSTHTMLTextInput

ABSTHTMLTextInput::ABSTHTMLTextInput()
Constructor
ABSTHTMLTextInput::get()
Returns a generated string based on the attributes of this object.
ABSTHTMLTextInput::getCheckOrder()
Returns an if-order of a javascript to check whether this item is NOT filled
ABSTHTMLTextInput::getMaxChars()
Returns the value of this item's "maxLength"-attribute.
ABSTHTMLTextInput::getPHPSource()
Generates the sourcecode to build this object and returns it.
ABSTHTMLTextInput::getSize()
Returns the value of this item's "size"-attribute.
ABSTHTMLTextInput::setMaxChars()
Stores the value of this item's "maxLength"-attribute.
ABSTHTMLTextInput::setSize()
Stores the value of this item's "size"-attribute.
ABSTHTMLTextInput::__constructor()
Constructor

Class: ABSTHTMLFormItem

ABSTHTMLFormItem::addValue()
Concats the given string to the value of this item's "value"-attribute.
ABSTHTMLFormItem::disable()
Disables this item. This method is an alias for the method setDisabled().
ABSTHTMLFormItem::enable()
Enables this item. This method is an alias for the method setDisabled().
ABSTHTMLFormItem::getCheckOrder()
Blind method cause other objects will invoke it.
ABSTHTMLFormItem::getLabel()
Returns the label to the extended extended underlying form component as string.
ABSTHTMLFormItem::getValidationOrder()
Blind method cause other objects will invoke it.
ABSTHTMLFormItem::getValue()
Returns the value of this item's "value"-attribute.
ABSTHTMLFormItem::HTMLFormItem()
Constructor
ABSTHTMLFormItem::setDisabled()
Disables this item.
ABSTHTMLFormItem::setEnabled()
Enables this item.
ABSTHTMLFormItem::setLabel()
Stores the given label object to the extended underlying form component.
ABSTHTMLFormItem::setManipulateable()
Makes sure that this item is manipulateable by the user.
ABSTHTMLFormItem::setNotManipulateable()
Makes sure that this item is not manipulateable by the user, but carrys the value trough the form.
ABSTHTMLFormItem::setParentForm()
Stores a reference to the form-object that contains this item-object.
ABSTHTMLFormItem::setValue()
Stores the value of this item's "value"-attribute.

Class: ABSTHTMLTag

ABSTHTMLTag::getId()
Returns the value of this tag's "id"-attribute.
ABSTHTMLTag::getName()
Returns the value of this tag's "name"-attribute.
ABSTHTMLTag::HTMLTag()
The Constructor let the script die, cause this is an abstract class!
ABSTHTMLTag::idExists()
Stores all used ids and makes sure that every id in the document is unique. It should called in every get method of classes in the packages forms and html.
ABSTHTMLTag::setAttributes()
This method allows to set the attributes of the tag that are not handled by other methods.
ABSTHTMLTag::setFreeStyle()
Set the value of style definitions that are not handled by implemented methods.
ABSTHTMLTag::setId()
Stores the value of this item's "id"-attribute.
ABSTHTMLTag::setName()
Stores the value of this tag's "name"-attribute.
ABSTHTMLTag::setNoFormat()
Stores that the HTML-elements should not format by "\r\n" in the source.
ABSTHTMLTag::setOnBlur()
Sets the value of the blur-attribute of this html-tag.
ABSTHTMLTag::setOnClick()
Sets the value of the click-attribute of this html-tag.
ABSTHTMLTag::setOnFocus()
Sets the value of the focus-attribute of this html-tag.
ABSTHTMLTag::setOnMouseMove()
Sets the value of the mousemove-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOut()
Sets the value of the mouseout-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOver()
Sets the value of the mouseover-attribute of this html-tag.
ABSTHTMLTag::setOnMouseUp()
Sets the value of the mouseup-attribute of this html-tag.
ABSTHTMLTag::setStyle()
Set the value of the class-attribute of this tag.

Class: ABSTObject

ABSTObject::printComplexData()
Prints out the more complex data by the given array.
ABSTObject::printPrimitiveData()
Prints out the primitive data by the given arrays.
ABSTObject::printStructure()
Prints out the Structure of this Object.
ABSTObject::same()
Checks whether the passed object reference points to this object.
ABSTObject::sameReferences()
Compares two references whether they points to the same object

Class Details

[line 72]
A class to generate text input fields to fill in Dates.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.1.81
copyright:  

Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$day =  0

[line 94]

Stores the interpreted day



Tags:

access:  private

Type:   integer


[ Top ]

$first_output =  true

[line 118]

Stores whether this object has been output already.



Tags:

access:  private

Type:   integer


[ Top ]

$month =  0

[line 102]

Stores the interpreted month



Tags:

access:  private

Type:   integer


[ Top ]

$template_date_format =  ""

[line 86]

The template for how to interpret the date.

The standardvalue follows ISO 8601.

Valid chars are:

  • y for year
  • m for month
  • d for day




Tags:

access:  private

Type:   string


[ Top ]

$year =  0

[line 110]

Stores the interpreted year



Tags:

access:  private

Type:   integer


[ Top ]



Class Methods


constructor BirthdayDateTextInput [line 139]

BirthdayDateTextInput BirthdayDateTextInput( [string $name = ""], [string $value = ""], [integer $size = 0], [string $str_date_template = ""])

Constructor



Tags:

version:  1.12
since:  0.1.0
access:  public


Parameters:

string   $name   The value of the "name"-attribute of the text input field.
string   $value   The value of the "value"-attribute of the text input field.
integer   $size   The value of the "size"-attribute of the text input field.
string   $str_date_template   Sets the template how to display date in the text input. The rules follow the parameter rules of the date()-function.

[ Top ]

method get [line 587]

string get( )

Returns a generated string based on the attributes of this object.



Tags:

version:  1.15
since:  0.1.0
access:  public


Overrides HTMLTextInput::get() (Returns a generated string based on the attributes of this object.)

[ Top ]

method getClone [line 315]

object getClone( [string $new_name = ""], [string $selected_value = ""], [string $size = 0])

Makes a clone of this object an returns a reference to this clone.



Tags:

version:  1.0
since:  0.1.2
access:  public


Overrides HTMLTextInput::getClone() (Makes a clone of this object an returns a reference to this clone.)

Parameters:

string   $new_name  
string   $selected_value  
string   $size  

[ Top ]

method getISODate [line 256]

string getISODate( )

Returns the value of this item in ISO format.



Tags:

return:  The value of this input in ISO format.
version:  1.0
since:  0.1.75
access:  public


[ Top ]

method getJSFunctionsToCheckDate [line 342]

string getJSFunctionsToCheckDate( )

Returns a javascript functions to validate the correctness of a date.



Tags:

version:  1.1
since:  0.1.0
access:  public


[ Top ]

method getPHPSource [line 522]

string getPHPSource( )

Generates the sourcecode to build this object and returns it.



Tags:

version:  1.0
since:  0.1.4
access:  public


Overrides HTMLTextInput::getPHPSource() (Generates the sourcecode to build this object and returns it.)

[ Top ]

method getValidationOrder [line 501]

string getValidationOrder( )

Returns a javascript to check if the given value is valid for this kind of input.



Tags:

version:  1.0
since:  0.1.0
access:  public


Overrides ABSTHTMLFormItem::getValidationOrder() (Blind method cause other objects will invoke it.)

[ Top ]

method interpretDate [line 166]

array interpretDate( [string $str_date = ""], [string $str_template = ""], [boolean $store_format = false])

Interprets a given date on the basis of a template.



Tags:

return:  The date interpreted in an array in index order: year, month, day
version:  1.0
since:  1.78
access:  public


Parameters:

string   $str_date  
string   $str_template  
boolean   $store_format  

[ Top ]

method setDateTemplate [line 555]

void setDateTemplate( [string $str_date = ""])

Sets the template how to display date in the text input. The rules follow the parameter rules of the date()-function.



Tags:

version:  1.12
since:  0.1.77
access:  public


Parameters:

string   $str_date  

[ Top ]

method setMaxChars [line 297]

void setMaxChars( )

A overwritten method to forbid to set the maximal capacity of this special kind of input.



Tags:

version:  1.0
since:  0.1.7
access:  public


Overrides ABSTHTMLTextInput::setMaxChars() (Stores the value of this item's "maxLength"-attribute.)

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:10:20 +0200 by phpDocumentor 1.4.1