original_string: public function get_tabs_array(array $inactive=array(), $return=false) {
          $tabs = array();
          $rows = array();
          $selected = null;
          $activated = array();
          foreach ($this->children as $node) {
              $tabs[] = new tabobject($node->key, $node->action, $node->get_content(), $node->get_title());
              if ($node->contains_active_node()) {
                  if ($node->children->count() > 0) {
                      $activated[] = $node->key;
                      foreach ($node->children as $child) {
                          if ($child->contains_active_node()) {
                              $selected = $child->key;
                          }
                          $rows[] = new tabobject($child->key, $child->action, $child->get_content(), $child->get_title());
                      }
                  } else {
                      $selected = $node->key;
                  }
              }
          }
          return array(array($tabs, $rows), $selected, $inactive, $activated, $return);
      }
code: public function get_tabs_array(array $inactive=array(), $return=false) {
          $tabs = array();
          $rows = array();
          $selected = null;
          $activated = array();
          foreach ($this->children as $node) {
              $tabs[] = new tabobject($node->key, $node->action, $node->get_content(), $node->get_title());
              if ($node->contains_active_node()) {
                  if ($node->children->count() > 0) {
                      $activated[] = $node->key;
                      foreach ($node->children as $child) {
                          if ($child->contains_active_node()) {
                              $selected = $child->key;
                          }
                          $rows[] = new tabobject($child->key, $child->action, $child->get_content(), $child->get_title());
                      }
                  } else {
                      $selected = $node->key;
                  }
              }
          }
          return array(array($tabs, $rows), $selected, $inactive, $activated, $return);
      }
code_tokens: public function get_tabs_array ( array $ inactive = array ( ) , $ return = false ) { $ tabs = array ( ) ; $ rows = array ( ) ; $ selected = null ; $ activated = array ( ) ; foreach ( $ this -> children as $ node ) { $ tabs [ ] = new tabobject ( $ node -> key , $ node -> action , $ node -> get_content ( ) , $ node -> get_title ( ) ) ; if ( $ node -> contains_active_node ( ) ) { if ( $ node -> children -> count ( ) > 0 ) { $ activated [ ] = $ node -> key ; foreach ( $ node -> children as $ child ) { if ( $ child -> contains_active_node ( ) ) { $ selected = $ child -> key ; } $ rows [ ] = new tabobject ( $ child -> key , $ child -> action , $ child -> get_content ( ) , $ child -> get_title ( ) ) ; } } else { $ selected = $ node -> key ; } } } return array ( array ( $ tabs , $ rows ) , $ selected , $ inactive , $ activated , $ return ) ; }
docstring: Creates a tab representation of this nodes children that can be used
  with print_tabs to produce the tabs on a page.
  
  call_user_func_array('print_tabs', $node->get_tabs_array());
  
  @param array $inactive
  @param bool $return
  @return array Array (tabs, selected, inactive, activated, return)
docstring_tokens: Creates a tab representation of this nodes children that can be used with print_tabs to produce the tabs on a page .