public function set_data($data) {
        if (!isset($data['sharing'])) {
            // Set the default value here. mforms doesn't handle defaults very nicely.
            $data['sharing'] = cache_administration_helper::get_definition_sharing_options(cache_definition::SHARING_DEFAULT);
        }
        parent::set_data($data);
    }
public function set_data($data) {
        if (!isset($data['sharing'])) {
            // Set the default value here. mforms doesn't handle defaults very nicely.
            $data['sharing'] = cache_administration_helper::get_definition_sharing_options(cache_definition::SHARING_DEFAULT);
        }
        parent::set_data($data);
    }
public function set_data ( $ data ) { if ( ! isset ( $ data [ 'sharing' ] ) ) { // Set the default value here. mforms doesn't handle defaults very nicely. $ data [ 'sharing' ] = cache_administration_helper :: get_definition_sharing_options ( cache_definition :: SHARING_DEFAULT ) ; } parent :: set_data ( $ data ) ; }
Sets the data for this form.

@param array $data
Sets the data for this form .