_oProfile = BxDolProfile::getInstance($iProfileId); $this->_aProfileInfo = $this->_oProfile ? $this->_oProfile->getInfo() : false; } if (!$this->_aProfileInfo || !$this->_oProfile) return; // select view profile submenu $oMenuSubmenu = BxDolMenu::getObjectInstance('sys_site_submenu'); if ($oMenuSubmenu) { $oMenuSubmenu->setObjectSubmenu('bx_persons_view_submenu', array ( 'title' => $this->_oProfile->getDisplayName(), 'link' => $this->_oProfile->getUrl(), 'icon' => $this->_oProfile->getIcon(), )); } // add replaceable markers $this->addMarkers($this->_aProfileInfo); // every profile field can be used as marker $this->addMarkers(array('profile_id' => $this->_oProfile->id())); // profile id field is also suported $this->addMarkers(array('display_name' => $this->_oProfile->getDisplayName())); // profile display name is also suported } } /** @} */