$object->setscore

(unknown)

$object->setscore -- Set the score of a record

Description

boolean $object->setscore (int score)

Minimum version: Midgard 1.4 (Bifrost)

Sets the score of a record.

Returns TRUE on success, FALSE on failure.


<?php
  $topic = mgd_get_topic(123); // topic with id 123 must exist.
  $topic->setscore($topic->score + 1);
?>

Method available for: article and topic objects.