Function Hook_commandr_scheduled_publish_post->run

Definitions

sources/hooks/systems/commandr_scheduled/publish_post.php

  • Run Commandr 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
$options array No No required parameter N/A N/A The options with which the command was called
$id string No No required parameter N/A N/A Unspecified identifier for the resource behind this scheduled event
$parameters array No No required parameter N/A N/A The json_decoded parameters passed with run_scheduled_action
&$commandr_fs object Yes No required parameter N/A N/A A reference to the Commandr filesystem object

Returns

  • Array of stdcommand, stdhtml, stdout, and stderr responses
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Run Commandr hook.
 *
 * @param  array $options The options with which the command was called
 * @param  string $id Unspecified identifier for the resource behind this scheduled event
 * @param  array $parameters The json_decoded parameters passed with run_scheduled_action
 * @param  object $commandr_fs A reference to the Commandr filesystem object
 * @return array Array of stdcommand, stdhtml, stdout, and stderr responses
 */

public function run(array $options, string $id, array $parameters, object &$commandr_fs) : array