PHP Class AttributeRender

Show file Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
renderField ( $attribute, null $value = null, null $name = null, array $htmlOptions = [] ) : mixed | null | string
renderValue ( Attribute $attribute, $value, $template = '<p>{item}</p>' ) : string

Method Details

renderField() public static method

public static renderField ( $attribute, null $value = null, null $name = null, array $htmlOptions = [] ) : mixed | null | string
$attribute
$value null
$name null
$htmlOptions array
return mixed | null | string

renderValue() public static method

public static renderValue ( Attribute $attribute, $value, $template = '<p>{item}</p>' ) : string
$attribute Attribute
$value
return string