Function __global->already_rated

Definitions

sources/feedback.php

  • Find whether you have rated the specified resource before.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$rating_for_types array required parameter N/A N/A List of feedback types (downloads, etc) that this rating is for. All need to be rated for it to return true.
$content_id ID_TEXT required parameter N/A N/A The ID of the type that this rating is for
$previous_ratings ?array Null N/A N/A A map (type to rating) of previous ratings by the user (null: not set yet); returned by reference

Return

  • Whether the resource has already been rated
  • Type: boolean
  • Set: N/A
  • Range: N/A