StringValidatorHelper Class Reference

Static Public Member Functions

static getMaxLengthByModelAndAttributeName (RedBeanModel $model, $attributeName)
static getMinLengthByModelAndAttributeName (RedBeanModel $model, $attributeName)

Detailed Description

Helper class for working with string attributes and getting information about the attribute rules.

Definition at line 40 of file StringValidatorHelper.php.


Member Function Documentation

static getMaxLengthByModelAndAttributeName ( RedBeanModel model,
attributeName 
) [static]

Given a model and attributeName, get the max length for that attribute as defined by the metadata rules.

Parameters:
object $model RedBeanModel
string $attributeName

Definition at line 47 of file StringValidatorHelper.php.

static getMinLengthByModelAndAttributeName ( RedBeanModel model,
attributeName 
) [static]

Given a model and attributeName, get the min length for that attribute as defined by the metadata rules.

Parameters:
object $model RedBeanModel
string $attributeName

Definition at line 71 of file StringValidatorHelper.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Oct 19 07:10:30 2017