Function RevisionEngineFiles->enabled

Definitions

sources/revisions_engine_files.php

  • Find whether revisions are enabled for the current user.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$check_privilege boolean No No required parameter N/A N/A Whether to check privileges

Returns

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

Preview

Code (PHP)

/**
 * Find whether revisions are enabled for the current user.
 *
 * @param  boolean $check_privilege Whether to check privileges
 * @return boolean Whether revisions are enabled
 */

public function enabled(bool $check_privilege) : bool