public function secureFields(array $data)
    {
        $data = $this->_normalizeData($data);

        $fields = [];
        foreach ($this->_selects as $select) {
            if ($data[$select] === false || $data[$select] === null) {
                continue;
            }

            $fields[] = $data['name'] . '[' . $select . ']';
        }

        return $fields;
    }
public function secureFields(array $data)
    {
        $data = $this->_normalizeData($data);

        $fields = [];
        foreach ($this->_selects as $select) {
            if ($data[$select] === false || $data[$select] === null) {
                continue;
            }

            $fields[] = $data['name'] . '[' . $select . ']';
        }

        return $fields;
    }
public function secureFields ( array $ data ) { $ data = $ this -> _normalizeData ( $ data ) ; $ fields = [ ] ; foreach ( $ this -> _selects as $ select ) { if ( $ data [ $ select ] === false || $ data [ $ select ] === null ) { continue ; } $ fields [ ] = $ data [ 'name' ] . '[' . $ select . ']' ; } return $ fields ; }
Returns a list of fields that need to be secured for this widget.

When the hour picker is in 24hr mode (null or format=24) the meridian
picker will be omitted.

@param array $data The data to render.
@return array Array of fields to secure.
Returns a list of fields that need to be secured for this widget .