original_string: public function get_all_groups() {
          if ($this->_groups === null) {
              $this->_groups = groups_get_all_groups($this->course->id);
              foreach ($this->_groups as $gid=>$group) {
                  $this->_groups[$gid]->name = format_string($group->name);
              }
          }
          return $this->_groups;
      }
code: public function get_all_groups() {
          if ($this->_groups === null) {
              $this->_groups = groups_get_all_groups($this->course->id);
              foreach ($this->_groups as $gid=>$group) {
                  $this->_groups[$gid]->name = format_string($group->name);
              }
          }
          return $this->_groups;
      }
code_tokens: public function get_all_groups ( ) { if ( $ this -> _groups === null ) { $ this -> _groups = groups_get_all_groups ( $ this -> course -> id ) ; foreach ( $ this -> _groups as $ gid => $ group ) { $ this -> _groups [ $ gid ] -> name = format_string ( $ group -> name ) ; } } return $ this -> _groups ; }
docstring: Gets all of the groups for this course.
  
  @return array
docstring_tokens: Gets all of the groups for this course .