Function Database_Static_xml->_parsing_expects

Definitions

sources/database/xml.php

  • Expect a certain token next.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$at integer Yes No required parameter N/A N/A Our offset counter
$tokens array No No required parameter N/A N/A Tokens
$token string No No required parameter N/A N/A Token expected
$query string No No required parameter N/A N/A Query that was executed
$fail_ok boolean No No False 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)

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Expect a certain token next.
 *
 * @param  integer $at Our offset counter
 * @param  array $tokens Tokens
 * @param  string $token Token expected
 * @param  string $query Query that was executed
 * @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)
 * @return boolean Success status
 */

protected function _parsing_expects(int &$at, array $tokens, string $token, string $query, bool $fail_ok = false) : bool