Function __global->actualise_rating

Definitions

sources/feedback.php

  • Actually adds a rating to the specified resource.It performs full checking of inputs, and will log a hackattack if the rating is not between 1 and 10.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$allow_rating boolean required parameter N/A N/A Whether this resource allows rating (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
$feedback_type ID_TEXT required parameter N/A N/A The type (downloads, etc) that this rating is for
$content_id ID_TEXT required parameter N/A N/A The ID of the type that this rating is for
$content_url mixed required parameter N/A N/A The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
$content_title ?string required parameter N/A N/A The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)