original_string: protected function _getOrganizationsList()
      {
          $html = new \MUtil_Html_Sequence();
          $sql = '
              SELECT *
              FROM gems__organizations
              WHERE gor_active=1 AND gor_url IS NOT NULL AND gor_task IS NOT NULL
              ORDER BY gor_name';
  
          // $organizations = array();
          // $organizations = array(key($organizations) => reset($organizations));
          $organizations = $this->db->fetchAll($sql);
          $orgCount = count($organizations);
  
  
          switch ($orgCount) {
              case 0:
                  return $html->pInfo(sprintf($this->_('%s is still under development.'), $this->project->getName()));
  
              case 1:
                  $organization = reset($organizations);
  
                  $p = $html->pInfo(sprintf($this->_('%s is run by: '), $this->project->getName()));
                  $p->a($organization['gor_url'], $organization['gor_name']);
                  $p->append('.');
  
                  $html->pInfo()->sprintf(
                          $this->_('Please contact the %s if you have any questions regarding %s.'),
                          $organization['gor_name'],
                          $this->project->getName()
                          );
  
                  return $html;
  
              default:
  
                  $p = $html->pInfo(sprintf(
                          $this->_('%s is a collaboration of these organizations:'),
                          $this->project->getName()
                          ));
  
                  $data = \MUtil_Lazy::repeat($organizations);
                  $ul = $p->ul($data, array('class' => 'indent'));
                  $li = $ul->li();
                  $li->a($data->gor_url->call($this, '_'), $data->gor_name, array('rel' => 'external'));
                  $li->append(' (');
                  $li->append($data->gor_task->call(array($this, '_')));
                  $li->append(')');
  
                  $html->pInfo()->sprintf(
                          $this->_('You can contact any of these organizations if you have questions regarding %s.'),
                          $this->project->getName()
                          );
  
                  return $html;
          }
      }
code: protected function _getOrganizationsList()
      {
          $html = new \MUtil_Html_Sequence();
          $sql = '
              SELECT *
              FROM gems__organizations
              WHERE gor_active=1 AND gor_url IS NOT NULL AND gor_task IS NOT NULL
              ORDER BY gor_name';
  
          // $organizations = array();
          // $organizations = array(key($organizations) => reset($organizations));
          $organizations = $this->db->fetchAll($sql);
          $orgCount = count($organizations);
  
  
          switch ($orgCount) {
              case 0:
                  return $html->pInfo(sprintf($this->_('%s is still under development.'), $this->project->getName()));
  
              case 1:
                  $organization = reset($organizations);
  
                  $p = $html->pInfo(sprintf($this->_('%s is run by: '), $this->project->getName()));
                  $p->a($organization['gor_url'], $organization['gor_name']);
                  $p->append('.');
  
                  $html->pInfo()->sprintf(
                          $this->_('Please contact the %s if you have any questions regarding %s.'),
                          $organization['gor_name'],
                          $this->project->getName()
                          );
  
                  return $html;
  
              default:
  
                  $p = $html->pInfo(sprintf(
                          $this->_('%s is a collaboration of these organizations:'),
                          $this->project->getName()
                          ));
  
                  $data = \MUtil_Lazy::repeat($organizations);
                  $ul = $p->ul($data, array('class' => 'indent'));
                  $li = $ul->li();
                  $li->a($data->gor_url->call($this, '_'), $data->gor_name, array('rel' => 'external'));
                  $li->append(' (');
                  $li->append($data->gor_task->call(array($this, '_')));
                  $li->append(')');
  
                  $html->pInfo()->sprintf(
                          $this->_('You can contact any of these organizations if you have questions regarding %s.'),
                          $this->project->getName()
                          );
  
                  return $html;
          }
      }
code_tokens: protected function _getOrganizationsList ( ) { $ html = new \ MUtil_Html_Sequence ( ) ; $ sql = '
              SELECT *
              FROM gems__organizations
              WHERE gor_active=1 AND gor_url IS NOT NULL AND gor_task IS NOT NULL
              ORDER BY gor_name' ; // $organizations = array();
   // $organizations = array(key($organizations) => reset($organizations));
   $ organizations = $ this -> db -> fetchAll ( $ sql ) ; $ orgCount = count ( $ organizations ) ; switch ( $ orgCount ) { case 0 : return $ html -> pInfo ( sprintf ( $ this -> _ ( '%s is still under development.' ) , $ this -> project -> getName ( ) ) ) ; case 1 : $ organization = reset ( $ organizations ) ; $ p = $ html -> pInfo ( sprintf ( $ this -> _ ( '%s is run by: ' ) , $ this -> project -> getName ( ) ) ) ; $ p -> a ( $ organization [ 'gor_url' ] , $ organization [ 'gor_name' ] ) ; $ p -> append ( '.' ) ; $ html -> pInfo ( ) -> sprintf ( $ this -> _ ( 'Please contact the %s if you have any questions regarding %s.' ) , $ organization [ 'gor_name' ] , $ this -> project -> getName ( ) ) ; return $ html ; default : $ p = $ html -> pInfo ( sprintf ( $ this -> _ ( '%s is a collaboration of these organizations:' ) , $ this -> project -> getName ( ) ) ) ; $ data = \ MUtil_Lazy :: repeat ( $ organizations ) ; $ ul = $ p -> ul ( $ data , array ( 'class' => 'indent' ) ) ; $ li = $ ul -> li ( ) ; $ li -> a ( $ data -> gor_url -> call ( $ this , '_' ) , $ data -> gor_name , array ( 'rel' => 'external' ) ) ; $ li -> append ( ' (' ) ; $ li -> append ( $ data -> gor_task -> call ( array ( $ this , '_' ) ) ) ; $ li -> append ( ')' ) ; $ html -> pInfo ( ) -> sprintf ( $ this -> _ ( 'You can contact any of these organizations if you have questions regarding %s.' ) , $ this -> project -> getName ( ) ) ; return $ html ; } }
docstring: A list of all participating organizations.
  
  @return \MUtil_Html_HtmlElement
docstring_tokens: A list of all participating organizations .