Esempio n. 1
0
 public function DeleteCommentByTargetId($nTargetId, $sTarget)
 {
     $aComments = parent::GetCommentByTargetId($nTargetId, $sTarget);
     parent::DeleteCommentByTargetId($nTargetId, $sTarget);
     parent::DeleteCommentOnlineByTargetId($nTargetId, $sTarget);
     if ($aComments) {
         $this->ClearStreamByComment($aComments);
     }
 }
Esempio n. 2
0
 public function DeleteCommentByTargetId($nTargetId, $sTarget)
 {
     $aComments = parent::GetCommentByTargetId($nTargetId, $sTarget);
     parent::DeleteCommentByTargetId($nTargetId, $sTarget);
     parent::DeleteCommentOnlineByTargetId($nTargetId, $sTarget);
     if ($aComments) {
         if (version_compare(LS_VERSION, '0.5', '>=')) {
             $this->ClearStreamByComment($aComments);
         }
     }
 }