Method MasterObject()->handle_attribute()
- Method
handle_attribute
optionalboolhandle_attribute(mixedvalue,stringattribute)- Description
This function is called in runtime check_types mode (-rt), when encountering a soft cast to an attributed type.
- Parameter
value Value that is about to receive the attribute.
- Parameter
attribute Type attribute to validate.
- Returns
Returns one of:
1If the attribute is valid for the value.
0If the attribute is not valid for the value.
UNDEFINEDIf the attribute is unsupported.
The default master implements validation of the
"utf8"attribute.