phpDocumentor Naos_Form
[ class tree: Naos_Form ] [ index: Naos_Form ] [ all elements ]

Class: Naos_Form_ValueTransformReceive

Source Location: /Form/ValueTransformReceive.php

Class Naos_Form_ValueTransformReceive

Class Overview

Naos_Form_ValueTransformReceive provides for every

input element type a conversion function, which operates on the value attributes. These functions are called after a value of an input element is received but before it is processed and stored in the form class.

The input elements refers to the text attribute in general, therefore the received value should be named accordingly.

Located in /Form/ValueTransformReceive.php [line 30]



		
				Author(s):
		
Information Tags:
Copyright:  Copyright (c) 2008 Jupiter GmbH
License:  http://www.naos-framework.com/website.naos.framework/en/license

Methods

[ Top ]
Method Summary
static array|null   checkbox()   Receive value: Input element "checkbox"
static array|null   date()   Receive value: Input element "date"
static array|null   datetime()   Receive value: Input element "datetime"
static array|null   decimal()   Receive value: Input element "decimal"
static array|null   email()   Receive value: Input element "email"
static array|null   file()   Receive value: Input element "file"
static array|null   hidden()   Receive value: Input element "hidden"
static array|null   jsondata()   Receive value: Input element "jsondata"
static array|null   password()   Receive value: Input element "password"
static array|null   radio()   Receive value: Input element "radio"
static array|null   select()   Receive value: Input element "select"
static array|null   submit()   Receive value: Input element "submit"
static array|null   text()   Receive value: Input element "text"
static array|null   textarea()   Receive value: Input element "textarea"
static array|null   time()   Receive value: Input element "time"

[ Top ]
Methods
static method checkbox  [line 238]

  static array|null checkbox( $value, $hasValue  )

Receive value: Input element "checkbox"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method date  [line 91]

  static array|null date( $value, $hasValue  )

Receive value: Input element "date"

This function generates a isodate attribute from the received value according to the locale of the application state.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method datetime  [line 153]

  static array|null datetime( $value, $hasValue  )

Receive value: Input element "datetime"

This function generates a isodatetime attribute from the received value according to the locale of the application state.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method decimal  [line 212]

  static array|null decimal( $value, $hasValue  )

Receive value: Input element "decimal"

This function generates a decimal attribute from the received value according to the locale of the application state.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method email  [line 188]

  static array|null email( $value, $hasValue  )

Receive value: Input element "email"

This function set the email attribute if the received value contains a valid email address.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method file  [line 332]

  static array|null file( $value, $hasValue  )

Receive value: Input element "file"

TODO: fix!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method hidden  [line 291]

  static array|null hidden( $value, $hasValue  )

Receive value: Input element "hidden"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method jsondata  [line 306]

  static array|null jsondata( $value, $hasValue  )

Receive value: Input element "jsondata"

Prepares JSON data.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method password  [line 69]

  static array|null password( $value, $hasValue  )

Receive value: Input element "password"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method radio  [line 257]

  static array|null radio( $value, $hasValue  )

Receive value: Input element "radio"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method select  [line 276]

  static array|null select( $value, $hasValue  )

Receive value: Input element "select"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method submit  [line 343]

  static array|null submit( $value, $hasValue  )

Receive value: Input element "submit"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method text  [line 39]

  static array|null text( $value, $hasValue  )

Receive value: Input element "text"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method textarea  [line 54]

  static array|null textarea( $value, $hasValue  )

Receive value: Input element "textarea"

Only the text attribute is required!

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]
static method time  [line 122]

  static array|null time( $value, $hasValue  )

Receive value: Input element "time"

This function generates a isotime attribute from the received value according to the locale of the application state.

Parameters:
   $value: 
   $hasValue: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Sat, 13 Sep 2008 01:41:02 -0400 by phpDocumentor 1.4.0