コード例 #1
0
	public function spam($commentOn, $comment, $feedback)
	{
		$comment->spamStatus = PropertySpamStatus::SPAM;
		$comment->save();
		MollomMessage::feedback($comment->spamSessionID, $feedback);
		$this->notice(t('Comment marked as spam'));
		$this->redirectOnSuccess($commentOn);
	}
コード例 #2
0
ファイル: mollom.Test.php プロジェクト: nathansamson/CoOrg
	public function testFeedbackProblem()
	{
		CoOrg::config()->set('mollom/serverlist', array('outdated'));
		
		$this->assertTrue(MollomMessage::feedback('some-sess-id', 'profanity'));
	}