8 function post($sSystem,
$iId, $iCmtAuthorId, $iCmtParentId, $iMood, $sFileId)
15 $iCmtParentId = (int)$iCmtParentId;
23 $sText =
'<iframe width="100%" height="240" src="[ray_url]modules/video_comments/embed.php?id=' . $sFileId .
'" frameborder="0" allowfullscreen></iframe>';
25 $mixedOverrideResult =
null;
27 'override' => &$mixedOverrideResult,
29 'file_id' => &$sFileId,
31 'author' => &$iCmtAuthorId,
32 'parent_id' => &$iCmtParentId,
37 if (
null !== $mixedOverrideResult)
38 return $mixedOverrideResult;
40 $iCmtNewId = $oCmts->_oQuery->addComment (
$iId, $iCmtParentId, $iCmtAuthorId, $sText, $iMood);
42 if(
false === $iCmtNewId)
46 $oZ =
new ChWsbAlerts($sSystem,
'commentPost', $oCmts->getId(), $oCmts->_getAuthorId(), array(
'comment_id' => $iCmtNewId,
'comment_author_id' => $iCmtAuthorId));
49 $oCmts->_triggerComment();
59 $iId = (int)
getValue(
"SELECT `ID` FROM `" .
$sDBModule .
"Files` WHERE `Description`='" . $iCommentId .
"' LIMIT 1");