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;
    }
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;
    }
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 ; }
Returns the CSS id attribute that will be assigned by moodleform later to this element
@param stdClass $item
@param HTML_QuickForm_element $element
Returns the CSS id attribute that will be assigned by moodleform later to this element