original_string: 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)'));
              }
          }
      }
code: 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)'));
              }
          }
      }
code_tokens: 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)' ) ) ; } } }
docstring: Add organization select to the elements array
  
  @param array $elements
  @param array $data
  @param string $elementId
docstring_tokens: Add organization select to the elements array