Function Hook_privacy_base->is_owner

Definitions

sources/privacy.php

  • Determine if, given the provided criteria and content, we have high confidence this individual owns the content.You should run fill_in_missing_privacy_criteria before running this.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table_name ID_TEXT No No required parameter N/A N/A The name of the database table
$table_details array No No required parameter N/A N/A The details of the table from the privacy hook; can be modified for special behaviour
$row array No No required parameter N/A N/A The raw database row
$member_id ?MEMBER No No required parameter N/A N/A The given member ID in search criteria (null: not provided)
$username string No No required parameter N/A N/A The given username in search criteria (blank: not provided)

Returns

  • Whether we are confident this individual owns this content
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Determine if, given the provided criteria and content, we have high confidence this individual owns the content.You should run fill_in_missing_privacy_criteria before running this.
 *
 * @param  ID_TEXT $table_name The name of the database table
 * @param  array $table_details The details of the table from the privacy hook; can be modified for special behaviour
 * @param  array $row The raw database row
 * @param  ?MEMBER $member_id The given member ID in search criteria (null: not provided)
 * @param  string $username The given username in search criteria (blank: not provided)
 * @return boolean Whether we are confident this individual owns this content
 */

public function is_owner(string $table_name, array $table_details, array $row, ?int $member_id, string $username) : bool