original_string: public function get_defaultsetting() {
          global $CFG;
  
          if (during_initial_install()) {
              return null;
          }
          $result = array();
          foreach($this->types as $archetype) {
              if ($caproles = get_archetype_roles($archetype)) {
                  foreach ($caproles as $caprole) {
                      $result[$caprole->id] = 1;
                  }
              }
          }
          return $result;
      }
code: public function get_defaultsetting() {
          global $CFG;
  
          if (during_initial_install()) {
              return null;
          }
          $result = array();
          foreach($this->types as $archetype) {
              if ($caproles = get_archetype_roles($archetype)) {
                  foreach ($caproles as $caprole) {
                      $result[$caprole->id] = 1;
                  }
              }
          }
          return $result;
      }
code_tokens: public function get_defaultsetting ( ) { global $ CFG ; if ( during_initial_install ( ) ) { return null ; } $ result = array ( ) ; foreach ( $ this -> types as $ archetype ) { if ( $ caproles = get_archetype_roles ( $ archetype ) ) { foreach ( $ caproles as $ caprole ) { $ result [ $ caprole -> id ] = 1 ; } } } return $ result ; }
docstring: Return the default setting for this control
  
  @return array Array of default settings
docstring_tokens: Return the default setting for this control