All Data Structures Functions Variables Pages
Static Public Member Functions
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$modelRedBeanModel
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$modelRedBeanModel
string$attributeName

Definition at line 71 of file StringValidatorHelper.php.


The documentation for this class was generated from the following file:
Generated on Wed May 27 2020 07:11:07