Function Database_Static_xml->_execute_expression

Definitions

sources/database/xml.php

  • Execute an expression.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$expr array No No required parameter N/A N/A The expression
$bindings array No No required parameter N/A N/A Bindings available in the execution scope
$query string No No required parameter N/A N/A Query that was executed
$db array No No required parameter N/A N/A Database connection
$fail_ok boolean No No required parameter N/A N/A Whether to not output an error on some kind of run-time failure (parse errors and clear programming errors are always fatal)
$full_set ?array No No Null N/A N/A The full record set within a HAVING scope (null: not in a HAVING scope)
&$cuts_to_single_row boolean Yes No False N/A N/A Whether this is an aggregate function that reduces the results to a single row (returned by reference)

Returns

  • The result (null: error/NULL)
  • Type: ?mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Execute an expression.
 *
 * @param  array $expr The expression
 * @param  array $bindings Bindings available in the execution scope
 * @param  string $query Query that was executed
 * @param  array $db Database connection
 * @param  boolean $fail_ok Whether to not output an error on some kind of run-time failure (parse errors and clear programming errors are always fatal)
 * @param  ?array $full_set The full record set within a HAVING scope (null: not in a HAVING scope)
 * @param  boolean $cuts_to_single_row Whether this is an aggregate function that reduces the results to a single row (returned by reference)
 * @return ?mixed The result (null: error/NULL)
 */

protected function _execute_expression(array $expr, array $bindings, string $query, array $db, bool $fail_ok, ?array $full_set = null, bool &$cuts_to_single_row = false)