|
|
@@ -14,6 +14,9 @@
|
|
|
*/
|
|
|
class BxBaseModProfileMenuViewActionsAll extends BxBaseModGeneralMenuViewActions
|
|
|
{
|
|
|
+ protected $_oProfile;
|
|
|
+ protected $_aProfileInfo;
|
|
|
+
|
|
|
public function __construct($aObject, $oTemplate = false)
|
|
|
{
|
|
|
parent::__construct($aObject, $oTemplate);
|
|
|
@@ -21,6 +24,22 @@ class BxBaseModProfileMenuViewActionsAll extends BxBaseModGeneralMenuViewActions
|
|
|
if(empty($this->_iContentId) && bx_get('profile_id') !== false)
|
|
|
$this->setContentId(BxDolProfile::getInstance(bx_process_input(bx_get('profile_id'), BX_DATA_INT))->getContentId());
|
|
|
}
|
|
|
+
|
|
|
+ public function setContentId($iContentId)
|
|
|
+ {
|
|
|
+ parent::setContentId($iContentId);
|
|
|
+
|
|
|
+ $this->_oProfile = BxDolProfile::getInstanceByContentAndType($this->_iContentId, $this->_sModule);
|
|
|
+ if(!$this->_oProfile)
|
|
|
+ return;
|
|
|
+
|
|
|
+ $this->_aProfileInfo = $this->_oProfile->getInfo();
|
|
|
+
|
|
|
+ $this->addMarkers($this->_aProfileInfo);
|
|
|
+ $this->addMarkers(array(
|
|
|
+ 'profile_id' => $this->_oProfile->id()
|
|
|
+ ));
|
|
|
+ }
|
|
|
|
|
|
protected function _getMenuItemProfileFriendAdd($aItem)
|
|
|
{
|