PlainForm Class Reference
[Data validation layer]

Common Primitive-handling. More...

Inheritance diagram for PlainForm:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 clean ()
 
Returns:
Form

 addAlias ($primitiveName, $alias)
 
Exceptions:
MissingElementException 

 primitiveExists ($name)
 add (BasePrimitive $prm, $alias=null)
 
Exceptions:
WrongArgumentException 

 drop ($name)
 
Exceptions:
MissingElementException 

get ($name)
 
Exceptions:
MissingElementException 

 getValue ($name)
 getRawValue ($name)
 getActualValue ($name)
 getSafeValue ($name)
 getChoiceValue ($name)
 getActualChoiceValue ($name)
 getDisplayValue ($name)
 getPrimitiveNames ()
 getPrimitiveList ()

Protected Attributes

 $aliases = array()
 $primitives = array()


Detailed Description

Common Primitive-handling.

Definition at line 18 of file PlainForm.class.php.


Member Function Documentation

PlainForm::clean (  ) 

Returns:
Form

Definition at line 26 of file PlainForm.class.php.

PlainForm::addAlias ( primitiveName,
alias 
)

Exceptions:
MissingElementException 

Returns:
Form

Definition at line 38 of file PlainForm.class.php.

Referenced by add().

PlainForm::primitiveExists ( name  ) 

Definition at line 50 of file PlainForm.class.php.

PlainForm::add ( BasePrimitive prm,
alias = null 
)

Exceptions:
WrongArgumentException 

Returns:
Form

Definition at line 63 of file PlainForm.class.php.

References addAlias(), and Assert::isFalse().

Here is the call graph for this function:

PlainForm::drop ( name  ) 

Exceptions:
MissingElementException 

Returns:
Form

Definition at line 84 of file PlainForm.class.php.

& PlainForm::get ( name  ) 

Exceptions:
MissingElementException 

Returns:
BasePrimitive

Definition at line 100 of file PlainForm.class.php.

PlainForm::getValue ( name  ) 

Definition at line 110 of file PlainForm.class.php.

Referenced by Form::toFormValue(), and FormField::toValue().

PlainForm::getRawValue ( name  ) 

Definition at line 115 of file PlainForm.class.php.

PlainForm::getActualValue ( name  ) 

Definition at line 120 of file PlainForm.class.php.

PlainForm::getSafeValue ( name  ) 

Definition at line 125 of file PlainForm.class.php.

PlainForm::getChoiceValue ( name  ) 

Definition at line 130 of file PlainForm.class.php.

References Assert::isTrue().

Here is the call graph for this function:

PlainForm::getActualChoiceValue ( name  ) 

Definition at line 137 of file PlainForm.class.php.

References Assert::isTrue().

Here is the call graph for this function:

PlainForm::getDisplayValue ( name  ) 

Definition at line 144 of file PlainForm.class.php.

PlainForm::getPrimitiveNames (  ) 

Definition at line 154 of file PlainForm.class.php.

PlainForm::getPrimitiveList (  ) 

Definition at line 159 of file PlainForm.class.php.

Referenced by FormUtils::object2form().


Member Data Documentation

PlainForm::$aliases = array() [protected]

Definition at line 20 of file PlainForm.class.php.

PlainForm::$primitives = array() [protected]

Definition at line 21 of file PlainForm.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:07 2007 for onPHP by  doxygen 1.5.4