IntegerAttributeForm Class Reference

Inheritance diagram for IntegerAttributeForm:
MinMaxValueAttributeForm MaxLengthAttributeForm AttributeForm ConfigurableMetadataModel

Public Member Functions

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

Static Public Member Functions

static getAttributeTypeDisplayName ()
static getAttributeTypeDisplayDescription ()

Detailed Description

Definition at line 37 of file IntegerAttributeForm.php.

Constructor & Destructor Documentation

__construct ( RedBeanModel model = null,
attributeName = null 

Setting maxLength to null so the auto-schema generator does not get confused and add a length rule which is unnecessary. That extra rule confuses the column to think it is a varchar.

RedBeanModel $model
null $attributeName

Reimplemented from MinMaxValueAttributeForm.

Definition at line 45 of file IntegerAttributeForm.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 73 of file IntegerAttributeForm.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Nov 16 07:10:57 2019