protected function addOrgSelect(array &$elements, $data, $elementId = 'gto_id_organzation')
    {
        $orgs = $this->currentUser->getRespondentOrganizations();

        if (count($orgs) > 1) {
            if ($this->orgIsMultiCheckbox) {
                $elements[$elementId] = $this->_createMultiCheckBoxElements($elementId, $orgs, ' ');
            } else {
                $elements[$elementId] = $this->_createSelectElement($elementId, $orgs, $this->_('(all organizations)'));
            }
        }
    }
protected function addOrgSelect(array &$elements, $data, $elementId = 'gto_id_organzation')
    {
        $orgs = $this->currentUser->getRespondentOrganizations();

        if (count($orgs) > 1) {
            if ($this->orgIsMultiCheckbox) {
                $elements[$elementId] = $this->_createMultiCheckBoxElements($elementId, $orgs, ' ');
            } else {
                $elements[$elementId] = $this->_createSelectElement($elementId, $orgs, $this->_('(all organizations)'));
            }
        }
    }
protected function addOrgSelect ( array & $ elements , $ data , $ elementId = 'gto_id_organzation' ) { $ orgs = $ this -> currentUser -> getRespondentOrganizations ( ) ; if ( count ( $ orgs ) > 1 ) { if ( $ this -> orgIsMultiCheckbox ) { $ elements [ $ elementId ] = $ this -> _createMultiCheckBoxElements ( $ elementId , $ orgs , ' ' ) ; } else { $ elements [ $ elementId ] = $ this -> _createSelectElement ( $ elementId , $ orgs , $ this -> _ ( '(all organizations)' ) ) ; } } }
Add organization select to the elements array

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