SelectParam($params, 'name,field'); /** @var kDBList $object */ $object = $this->getObject($params); $root_phrase = $this->Application->Phrase(($this->Application->isAdmin ? 'la_' : 'lu_') . 'rootcategory_name'); $cached_navbar = preg_replace('/^(Content&\|&|Content)/i', '', $object->GetDBField($field)); $value = str_replace('&|&', ' > ', $cached_navbar); $ret = $root_phrase . ($value ? ' > ' : '') . $value; if ($object->GetDBField('PrimaryCat')) { $label = $params['primary_title']; $ret .= ' (' . $this->Application->Phrase($label) . ')'; } return $ret; } function GetMainID($params) { $object = $this->getObject($params); $table_info = $object->getLinkedInfo(); return $table_info['ParentId']; } }