original_string: protected function renderItems()
      {
          $items = array();
          if (!empty($this->leftItems)) {
              $tItems = array();
              foreach ($this->leftItems as $item) {
                  $tItems[] = $this->renderItem($item);
              }
              $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_LEFT)) . implode(
                      "\n",
                      $tItems
                  ) . \CHtml::closeTag(
                      'ul'
                  );
          }
          if (!empty($this->rightItems)) {
              $tItems = array();
              foreach ($this->rightItems as $item) {
                  $tItems[] = $this->renderItem($item);
              }
              $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_RIGHT)) . implode(
                      "\n",
                      $tItems
                  ) . \CHtml::closeTag(
                      'ul'
                  );
          }
  
          return \CHtml::tag('section', array('class' => 'top-bar-section'), implode("\n", $items), true);
      }
code: protected function renderItems()
      {
          $items = array();
          if (!empty($this->leftItems)) {
              $tItems = array();
              foreach ($this->leftItems as $item) {
                  $tItems[] = $this->renderItem($item);
              }
              $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_LEFT)) . implode(
                      "\n",
                      $tItems
                  ) . \CHtml::closeTag(
                      'ul'
                  );
          }
          if (!empty($this->rightItems)) {
              $tItems = array();
              foreach ($this->rightItems as $item) {
                  $tItems[] = $this->renderItem($item);
              }
              $items[] = \CHtml::openTag('ul', array('class' => Enum::POS_RIGHT)) . implode(
                      "\n",
                      $tItems
                  ) . \CHtml::closeTag(
                      'ul'
                  );
          }
  
          return \CHtml::tag('section', array('class' => 'top-bar-section'), implode("\n", $items), true);
      }
code_tokens: protected function renderItems ( ) { $ items = array ( ) ; if ( ! empty ( $ this -> leftItems ) ) { $ tItems = array ( ) ; foreach ( $ this -> leftItems as $ item ) { $ tItems [ ] = $ this -> renderItem ( $ item ) ; } $ items [ ] = \ CHtml :: openTag ( 'ul' , array ( 'class' => Enum :: POS_LEFT ) ) . implode ( "\n" , $ tItems ) . \ CHtml :: closeTag ( 'ul' ) ; } if ( ! empty ( $ this -> rightItems ) ) { $ tItems = array ( ) ; foreach ( $ this -> rightItems as $ item ) { $ tItems [ ] = $ this -> renderItem ( $ item ) ; } $ items [ ] = \ CHtml :: openTag ( 'ul' , array ( 'class' => Enum :: POS_RIGHT ) ) . implode ( "\n" , $ tItems ) . \ CHtml :: closeTag ( 'ul' ) ; } return \ CHtml :: tag ( 'section' , array ( 'class' => 'top-bar-section' ) , implode ( "\n" , $ items ) , true ) ; }
docstring: Renders widget's items.
  @return string
docstring_tokens: Renders widget s items .