CPropertyValue
CPropertyValue
Package | system.utils |
---|---|
Inheritance | class CPropertyValue |
Since | 1.0 |
Source Code | framework/utils/CPropertyValue.php |
CPropertyValue is a helper class that provides static methods to convert component property values to specific types.
CPropertyValue is commonly used in component setter methods to ensure the new property value is of the specific type. For example, a boolean-typed property setter method would be as follows,
CPropertyValue is commonly used in component setter methods to ensure the new property value is of the specific type. For example, a boolean-typed property setter method would be as follows,
public function setPropertyName($value) { $value=CProp