public function __construct($title) { Page::__construct(''); $ObjectTitle = Db_BannerTrans::getTitle($this->Id, $this->LangId); //============ FOR OBJECTS ======================================================= $this->TPL->assign('object_path', $this->object_path); $this->BreadCrumb[1]['link'] = $this->PageUrl; $this->BreadCrumb[1]['title'] = $this->_T($this->title); switch ($this->Action) { case 'edit': $this->BreadCrumb[2]['title'] = $ObjectTitle; $this->BreadCrumb[2]['link'] = $this->PageUrl . '?action=view&id=' . $this->Id; $this->BreadCrumb[3]['title'] = $this->_T('edit'); break; case 'add': $this->BreadCrumb[2]['title'] = $this->_T('add'); break; case 'view': $this->BreadCrumb[2]['title'] = $ObjectTitle; break; default: } }