public function setFromPOST(array $settings = array())
    {
        $settings['location'] = (isset($settings['location']) ? $settings['location'] : 'main');
        $settings['required'] = (isset($settings['required']) && $settings['required'] === 'yes' ? 'yes' : 'no');
        $settings['show_column'] = (isset($settings['show_column']) && $settings['show_column'] === 'yes' ? 'yes' : 'no');

        $this->setArray($settings);
    }
public function setFromPOST(array $settings = array())
    {
        $settings['location'] = (isset($settings['location']) ? $settings['location'] : 'main');
        $settings['required'] = (isset($settings['required']) && $settings['required'] === 'yes' ? 'yes' : 'no');
        $settings['show_column'] = (isset($settings['show_column']) && $settings['show_column'] === 'yes' ? 'yes' : 'no');

        $this->setArray($settings);
    }
public function setFromPOST ( array $ settings = array ( ) ) { $ settings [ 'location' ] = ( isset ( $ settings [ 'location' ] ) ? $ settings [ 'location' ] : 'main' ) ; $ settings [ 'required' ] = ( isset ( $ settings [ 'required' ] ) && $ settings [ 'required' ] === 'yes' ? 'yes' : 'no' ) ; $ settings [ 'show_column' ] = ( isset ( $ settings [ 'show_column' ] ) && $ settings [ 'show_column' ] === 'yes' ? 'yes' : 'no' ) ; $ this -> setArray ( $ settings ) ; }
Fill the input data array with default values for known keys provided
these settings are not already set. The input array is then used to set
the values of the corresponding settings for this field. This function
is called when a section is saved.

@param array $settings
the data array to initialize if necessary.
Fill the input data array with default values for known keys provided these settings are not already set . The input array is then used to set the values of the corresponding settings for this field . This function is called when a section is saved .