Function __global->get_privacy_where_clause

Definitions

sources/content_privacy.php

  • Get the SQL extension clauses for implementing privacy.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$content_type ID_TEXT required parameter N/A N/A The content type
$table_alias ID_TEXT required parameter N/A N/A The table alias in the main query
$viewing_member_id ?MEMBER Null N/A N/A Viewing member to check privacy against (null: current member)
$additional_or string Blank (empty string) N/A N/A Additional OR clause for letting the user through
$submitter ?MEMBER Null N/A N/A Member owning the content (null: do dynamically in query via content hook). Usually pass as null

Return

  • A tuple: extra JOIN clause, extra WHERE clause, table clause (rarely used), direct table WHERE clause (rarely used)
  • Type: array
  • Set: N/A
  • Range: N/A