protected function addTrackSelect(array &$elements, $data, $elementId = 'gto_id_track')
    {
        // Store for use in addFillerSelect
        $this->trackFieldId = $elementId;
        
        $orgs   = $this->currentUser->getRespondentOrganizations();
        $tracks = $this->util->getTrackData()->getTracksForOrgs($orgs);

        if (count($tracks) > 1) {
            $elements[$elementId] = $this->_createSelectElement($elementId, $tracks, $this->_('(select a track)'));
            $elements[$elementId]->setAttrib('onchange', 'this.form.submit();');
        }
    }
protected function addTrackSelect(array &$elements, $data, $elementId = 'gto_id_track')
    {
        // Store for use in addFillerSelect
        $this->trackFieldId = $elementId;
        
        $orgs   = $this->currentUser->getRespondentOrganizations();
        $tracks = $this->util->getTrackData()->getTracksForOrgs($orgs);

        if (count($tracks) > 1) {
            $elements[$elementId] = $this->_createSelectElement($elementId, $tracks, $this->_('(select a track)'));
            $elements[$elementId]->setAttrib('onchange', 'this.form.submit();');
        }
    }
protected function addTrackSelect ( array & $ elements , $ data , $ elementId = 'gto_id_track' ) { // Store for use in addFillerSelect $ this -> trackFieldId = $ elementId ; $ orgs = $ this -> currentUser -> getRespondentOrganizations ( ) ; $ tracks = $ this -> util -> getTrackData ( ) -> getTracksForOrgs ( $ orgs ) ; if ( count ( $ tracks ) > 1 ) { $ elements [ $ elementId ] = $ this -> _createSelectElement ( $ elementId , $ tracks , $ this -> _ ( '(select a track)' ) ) ; $ elements [ $ elementId ] -> setAttrib ( 'onchange' , 'this.form.submit();' ) ; } }
Add track select to the elements array

@param array $elements
@param array $data
@param string $elementId
Add track select to the elements array