original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Sets the data for this form.
  
  @param array $data
docstring_tokens: Sets the data for this form .