protected function _postSaveAfterTransaction() { if (!empty($this->_tagger)) { if ($this->isInsert()) { $this->_tagger->setContent($this->get('post_id'), true); } $this->_tagger->save(); } parent::_postSaveAfterTransaction(); }
protected function _postSaveAfterTransaction() { $response = parent::_postSaveAfterTransaction(); if ($this->get('message_state') == 'visible') { $contentData = array_merge(array('content_type' => 'post', 'content_id' => $this->get('post_id')), $this->getDiscussionData(), $this->getMergedData()); $forumInfo = $this->_Tinhte_XenTag_getForumInfo(); $contentPermissionConfig = array('content_type' => 'node', 'content_id' => $forumInfo['node_id'], 'permissions' => array('view', 'viewOthers', 'viewContent')); Tinhte_XenTag_Integration::sendNotificationToWatchUsersOnTagged('post', $this->get('post_id'), $contentData, $this, $contentPermissionConfig); } return $response; }