src/Charcoal/Admin/Property/Input/SelectizeInput.php
public function setData(array $data)
    {
        // Push selectize options back at the end of the data container.
        if (isset($data['selectizeOptions'])) {
            $selectizeOptions = $data['selectizeOptions'];
            unset($data['selectizeOptions']);
            $data['selectizeOptions'] = $selectizeOptions;
        }

        parent::setData($data);

        return $this;
    }
public function setData(array $data)
    {
        // Push selectize options back at the end of the data container.
        if (isset($data['selectizeOptions'])) {
            $selectizeOptions = $data['selectizeOptions'];
            unset($data['selectizeOptions']);
            $data['selectizeOptions'] = $selectizeOptions;
        }

        parent::setData($data);

        return $this;
    }
public function setData ( array $ data ) { // Push selectize options back at the end of the data container. if ( isset ( $ data [ 'selectizeOptions' ] ) ) { $ selectizeOptions = $ data [ 'selectizeOptions' ] ; unset ( $ data [ 'selectizeOptions' ] ) ; $ data [ 'selectizeOptions' ] = $ selectizeOptions ; } parent :: setData ( $ data ) ; return $ this ; }
This function takes an array and fill the model object with its value.

This method either calls a setter for each key (`set_{$key}()`) or sets a public member.

For example, calling with `setData(['properties'=>$properties])` would call
`setProperties($properties)`, becasue `setProperties()` exists.

But calling with `setData(['foobar'=>$foo])` would set the `$foobar` member
on the metadata object, because the method `set_foobar()` does not exist.

@param array $data The input data.
@return self
This function takes an array and fill the model object with its value .