function _generateId() {
        if ($this->getAttribute('id')) {
            return;
        }

        $id = $this->getName();
        $id = 'id_' . str_replace(array('qf_', '[', ']'), array('', '_', ''), $id);
        $id = clean_param($id, PARAM_ALPHANUMEXT);
        $this->updateAttributes(array('id' => $id));
    }
function _generateId() {
        if ($this->getAttribute('id')) {
            return;
        }

        $id = $this->getName();
        $id = 'id_' . str_replace(array('qf_', '[', ']'), array('', '_', ''), $id);
        $id = clean_param($id, PARAM_ALPHANUMEXT);
        $this->updateAttributes(array('id' => $id));
    }
function _generateId ( ) { if ( $ this -> getAttribute ( 'id' ) ) { return ; } $ id = $ this -> getName ( ) ; $ id = 'id_' . str_replace ( array ( 'qf_' , '[' , ']' ) , array ( '' , '_' , '' ) , $ id ) ; $ id = clean_param ( $ id , PARAM_ALPHANUMEXT ) ; $ this -> updateAttributes ( array ( 'id' => $ id ) ) ; }
Automatically generates and assigns an 'id' attribute for the element.

Currently used to ensure that labels work on radio buttons and
checkboxes. Per idea of Alexander Radivanovich.

@access private
@return void
Automatically generates and assigns an id attribute for the element .