behaviors\AttributeTypecastBehavior typecastValue()

typecastValue() protected method

Casts the given value to the specified type.

protected mixed typecastValue ( $value, $type )
$value mixed

Value to be type-casted.

$type string|callable

Type name or typecast callable.

return mixed

Typecast result.

doc_Yii
2016-10-30 16:52:49
Comments
Leave a Comment

Please login to continue.