Function __global->execute_themewizard_css_colour_expression

Definitions

sources/themewizard.php

  • Execute CSS colour expression.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$expression mixed No No required parameter N/A N/A Expression tree (array) OR leaf (string)
$colours array No No required parameter N/A N/A Known colours at this point

Returns

  • RRGGBB colour or possibly just a number (null: answer cannot be computed)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Execute CSS colour expression.
 *
 * @param  mixed $expression Expression tree (array) OR leaf (string)
 * @param  array $colours Known colours at this point
 * @return ?string RRGGBB colour or possibly just a number (null: answer cannot be computed)
 */

function execute_themewizard_css_colour_expression($expression, array $colours) : ?string