Function RevisionEngineDatabase->ui_revisions_controller

Definitions

sources/revisions_engine_database.php

  • Browse revisions to undo one.More details are shown in the actionlog, which is linked from here.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_type string No No required parameter N/A N/A Resource type
$resource_id string No No required parameter N/A N/A Resource ID
&$text string Yes No required parameter N/A N/A Current resource text (may be altered by reference)
&$revision_loaded ?boolean Yes No required parameter N/A N/A Whether a revision was loaded, passed by reference (null: initial value)

Returns

  • UI
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Browse revisions to undo one.More details are shown in the actionlog, which is linked from here.
 *
 * @param  string $resource_type Resource type
 * @param  string $resource_id Resource ID
 * @param  string $text Current resource text (may be altered by reference)
 * @param  ?boolean $revision_loaded Whether a revision was loaded, passed by reference (null: initial value)
 * @return Tempcode UI
 */

public function ui_revisions_controller(string $resource_type, string $resource_id, string &$text, ?bool &$revision_loaded) : object