|
@@ -305,6 +305,7 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
|
|
|
`RootStylePrefix` AS `root_style_prefix`,
|
|
`RootStylePrefix` AS `root_style_prefix`,
|
|
|
`BaseUrl` AS `base_url`,
|
|
`BaseUrl` AS `base_url`,
|
|
|
`ObjectVote` AS `object_vote`,
|
|
`ObjectVote` AS `object_vote`,
|
|
|
|
|
+ `ObjectReaction` AS `object_reaction`,
|
|
|
`ObjectScore` AS `object_score`,
|
|
`ObjectScore` AS `object_score`,
|
|
|
`ObjectReport` AS `object_report`,
|
|
`ObjectReport` AS `object_report`,
|
|
|
`TriggerTable` AS `trigger_table`,
|
|
`TriggerTable` AS `trigger_table`,
|
|
@@ -444,7 +445,7 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
|
|
|
public function getVoteObject($iId)
|
|
public function getVoteObject($iId)
|
|
|
{
|
|
{
|
|
|
if(empty($this->_aSystem['object_vote']))
|
|
if(empty($this->_aSystem['object_vote']))
|
|
|
- $this->_aSystem['object_vote'] = 'sys_cmts';
|
|
|
|
|
|
|
+ $this->_aSystem['object_vote'] = 'sys_cmts';
|
|
|
|
|
|
|
|
$oVote = BxDolVote::getObjectInstance($this->_aSystem['object_vote'], $iId, true, $this->_oTemplate);
|
|
$oVote = BxDolVote::getObjectInstance($this->_aSystem['object_vote'], $iId, true, $this->_oTemplate);
|
|
|
if(!$oVote || !$oVote->isEnabled())
|
|
if(!$oVote || !$oVote->isEnabled())
|
|
@@ -453,6 +454,18 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
|
|
|
return $oVote;
|
|
return $oVote;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function getReactionObject($iId)
|
|
|
|
|
+ {
|
|
|
|
|
+ if(empty($this->_aSystem['object_reaction']))
|
|
|
|
|
+ $this->_aSystem['object_reaction'] = 'sys_cmts_reactions';
|
|
|
|
|
+
|
|
|
|
|
+ $oReaction = BxDolVote::getObjectInstance($this->_aSystem['object_reaction'], $iId, true, $this->_oTemplate);
|
|
|
|
|
+ if(!$oReaction || !$oReaction->isEnabled())
|
|
|
|
|
+ return false;
|
|
|
|
|
+
|
|
|
|
|
+ return $oReaction;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function getScoreObject($iId)
|
|
public function getScoreObject($iId)
|
|
|
{
|
|
{
|
|
|
if(empty($this->_aSystem['object_score']))
|
|
if(empty($this->_aSystem['object_score']))
|