original_string: protected function guess_element_id($item, $element) {
          if (!$id = $element->getAttribute('id')) {
              $attributes = $element->getAttributes();
              $id = $attributes['id'] = 'feedback_item_' . $item->id;
              $element->setAttributes($attributes);
          }
          if ($element->getType() === 'group') {
              return 'fgroup_' . $id;
          }
          return 'fitem_' . $id;
      }
code: protected function guess_element_id($item, $element) {
          if (!$id = $element->getAttribute('id')) {
              $attributes = $element->getAttributes();
              $id = $attributes['id'] = 'feedback_item_' . $item->id;
              $element->setAttributes($attributes);
          }
          if ($element->getType() === 'group') {
              return 'fgroup_' . $id;
          }
          return 'fitem_' . $id;
      }
code_tokens: protected function guess_element_id ( $ item , $ element ) { if ( ! $ id = $ element -> getAttribute ( 'id' ) ) { $ attributes = $ element -> getAttributes ( ) ; $ id = $ attributes [ 'id' ] = 'feedback_item_' . $ item -> id ; $ element -> setAttributes ( $ attributes ) ; } if ( $ element -> getType ( ) === 'group' ) { return 'fgroup_' . $ id ; } return 'fitem_' . $ id ; }
docstring: Returns the CSS id attribute that will be assigned by moodleform later to this element
  @param stdClass $item
  @param HTML_QuickForm_element $element
docstring_tokens: Returns the CSS id attribute that will be assigned by moodleform later to this element