Contents
Description
The wsf_helper_get_object_property PHP function gets a property value from an object such as a form, group, section, field or submit object.
Usage
wsf_helper_get_object_property( $object, $parameter, $default_value );
Parameters
$object
ObjectThe object to get the parameter value from.$parameter
StringThe object parameter.$default_value
MixedThe default value returned if the object parameter cannot be found.
Return
$parameter_value
MixedThe parameter value.
Example
$form_label = wsf_helper_get_object_property( $form_object, 'label', __('No label') );