Function RevisionEngineDatabase->has_revisions

Definitions

sources/revisions_engine_database.php

  • Find if there are revisions of something.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_types array No No required parameter N/A N/A Allowed resource types
$resource_id ?string No No Null N/A N/A Resource ID (null: no filter)
$category_id ?string No No Null N/A N/A Category ID (null: no filter)
$member_id ?MEMBER No No Null N/A N/A Member ID (null: no filter)

Returns

  • Whether there are revisions
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if there are revisions of something.
 *
 * @param  array $resource_types Allowed resource types
 * @param  ?string $resource_id Resource ID (null: no filter)
 * @param  ?string $category_id Category ID (null: no filter)
 * @param  ?MEMBER $member_id Member ID (null: no filter)
 * @return boolean Whether there are revisions
 */

public function has_revisions(array $resource_types, ?string $resource_id = null, ?string $category_id = null, ?int $member_id = null) : bool