src/Expose/Filter.php
public function load($data)
    {
        if (is_object($data)) {
            $data = get_object_vars($data);
        }
        foreach ($data as $index => $value) {
            if ($index == 'tags' && !is_array($value)) {
                if (isset($value->tag)) {
                    $value = (!is_array($value->tag)) ? array($value->tag) : $value->tag;
                }
            }
            $this->$index = $value;
        }
    }
public function load($data)
    {
        if (is_object($data)) {
            $data = get_object_vars($data);
        }
        foreach ($data as $index => $value) {
            if ($index == 'tags' && !is_array($value)) {
                if (isset($value->tag)) {
                    $value = (!is_array($value->tag)) ? array($value->tag) : $value->tag;
                }
            }
            $this->$index = $value;
        }
    }
public function load ( $ data ) { if ( is_object ( $ data ) ) { $ data = get_object_vars ( $ data ) ; } foreach ( $ data as $ index => $ value ) { if ( $ index == 'tags' && ! is_array ( $ value ) ) { if ( isset ( $ value -> tag ) ) { $ value = ( ! is_array ( $ value -> tag ) ) ? array ( $ value -> tag ) : $ value -> tag ; } } $ this -> $ index = $ value ; } }
Load the data into the filter object

@param array $data Filter data
Load the data into the filter object