original_string: protected function getName()
    {
      if($this->currObj instanceof Channel && $this->currObj->isSpacer())
      {
        return $this->currObj["channel_name"]->section("]", 1, 99)->toString();
      }
      elseif($this->currObj instanceof Client)
      {
        $before = array();
        $behind = array();
  
        foreach($this->currObj->memberOf() as $group)
        {
          if($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEFORE)
          {
            $before[] = "[" . $group["name"] . "]";
          }
          elseif($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEHIND)
          {
            $behind[] = "[" . $group["name"] . "]";
          }
        }
  
        return trim(implode("", $before) . " " . $this->currObj . " " . implode("", $behind));
      }
  
      return $this->currObj->toString();
    }
code: protected function getName()
    {
      if($this->currObj instanceof Channel && $this->currObj->isSpacer())
      {
        return $this->currObj["channel_name"]->section("]", 1, 99)->toString();
      }
      elseif($this->currObj instanceof Client)
      {
        $before = array();
        $behind = array();
  
        foreach($this->currObj->memberOf() as $group)
        {
          if($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEFORE)
          {
            $before[] = "[" . $group["name"] . "]";
          }
          elseif($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEHIND)
          {
            $behind[] = "[" . $group["name"] . "]";
          }
        }
  
        return trim(implode("", $before) . " " . $this->currObj . " " . implode("", $behind));
      }
  
      return $this->currObj->toString();
    }
code_tokens: protected function getName ( ) { if ( $ this -> currObj instanceof Channel && $ this -> currObj -> isSpacer ( ) ) { return $ this -> currObj [ "channel_name" ] -> section ( "]" , 1 , 99 ) -> toString ( ) ; } elseif ( $ this -> currObj instanceof Client ) { $ before = array ( ) ; $ behind = array ( ) ; foreach ( $ this -> currObj -> memberOf ( ) as $ group ) { if ( $ group -> getProperty ( "namemode" ) == TeamSpeak3 :: GROUP_NAMEMODE_BEFORE ) { $ before [ ] = "[" . $ group [ "name" ] . "]" ; } elseif ( $ group -> getProperty ( "namemode" ) == TeamSpeak3 :: GROUP_NAMEMODE_BEHIND ) { $ behind [ ] = "[" . $ group [ "name" ] . "]" ; } } return trim ( implode ( "" , $ before ) . " " . $ this -> currObj . " " . implode ( "" , $ behind ) ) ; } return $ this -> currObj -> toString ( ) ; }
docstring: Returns a string for the current corpus element which contains the display name
  for the current TeamSpeak_Node_Abstract object.
  
  @return string
docstring_tokens: Returns a string for the current corpus element which contains the display name for the current TeamSpeak_Node_Abstract object .