Function Hook_task_create_index->run

Definitions

sources/hooks/systems/tasks/create_index.php

  • Run the task hook.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$db_id ID_TEXT No No required parameter FORUM_DB SITE_DB N/A The database connection identifier
$params array No No required parameter N/A N/A Parameters to pass to the create_index method

Returns

  • A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Run the task hook.
 *
 * @param  ID_TEXT $db_id The database connection identifier
 * @set FORUM_DB SITE_DB
 * @param  array $params Parameters to pass to the create_index method
 * @return ?array A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
 */

public function run(string $db_id, array $params) : ?array