public static function getComponentPropertyValues($component)
    {
        $result = [];

        $result['oc.alias'] = $component->alias;

        $properties = $component->defineProperties();
        foreach ($properties as $name => $params) {
            $result[$name] = $component->property($name);
        }

        return json_encode($result);
    }
public static function getComponentPropertyValues($component)
    {
        $result = [];

        $result['oc.alias'] = $component->alias;

        $properties = $component->defineProperties();
        foreach ($properties as $name => $params) {
            $result[$name] = $component->property($name);
        }

        return json_encode($result);
    }
public static function getComponentPropertyValues ( $ component ) { $ result = [ ] ; $ result [ 'oc.alias' ] = $ component -> alias ; $ properties = $ component -> defineProperties ( ) ; foreach ( $ properties as $ name => $ params ) { $ result [ $ name ] = $ component -> property ( $ name ) ; } return json_encode ( $ result ) ; }
Returns a component property values.
@param mixed $component The component object
@return mixed
Returns a component property values .