DecimalAttributeForm Class Reference

Inheritance diagram for DecimalAttributeForm:
MaxLengthAttributeForm AttributeForm ConfigurableMetadataModel

Public Member Functions

 __construct (RedBeanModel $model=null, $attributeName=null)
 rules ()
 attributeLabels ()
 getAttributeTypeName ()
 getModelAttributePartialRule ()

Static Public Member Functions

static getAttributeTypeDisplayName ()
static getAttributeTypeDisplayDescription ()

Data Fields

 $precisionLength = 2

Detailed Description

Definition at line 37 of file DecimalAttributeForm.php.


Member Function Documentation

getModelAttributePartialRule (  ) 

Returns a partial rule for the attribute being edited by this form. For a rule array('attributeName', 'type', 'type' => 'thetypename'); the method must return array('type', 'type' => 'thetypename') appropriate to its data. For a rule array('attributeName', 'boolean'); the method must return array('boolean'), for example for a checkbox. If the method is not overridden or returns an empty array no rule will be be added to model metadata in regards to the type of the attribute.

Reimplemented from AttributeForm.

Definition at line 93 of file DecimalAttributeForm.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Apr 24 07:10:25 2017