protected function _getTabListRecursive(&$items, &$result, $parent_id, $indent = 0)
{
foreach ($items as $item) {
if ((int) $item[$this->parentAttribute] == (int) $parent_id && !isset($result[$item[$this->primaryKeyAttribute]])) {
$result[$item[$this->primaryKeyAttribute]] = str_repeat('- ', $indent) . $item[$this->titleAttribute];
$this->_getTabListRecursive($items, $result, $item[$this->primaryKeyAttribute], $indent + 1);
}
}
}