Function __global->in_memory_search_match

Definitions

sources/database_search.php

  • Perform a database-style in-memory boolean search on single item.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filter array No No required parameter N/A N/A A map of POST data in search-form style. May contain 'only_titles' and 'content' (the critical one!)
$title string No No required parameter N/A N/A The title to try and match
$post ?string No No Null N/A N/A The post to try and match (null: not used)

Returns

  • Whether we have a match
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Perform a database-style in-memory boolean search on single item.
 *
 * @param  array $filter A map of POST data in search-form style. May contain 'only_titles' and 'content' (the critical one!)
 * @param  string $title The title to try and match
 * @param  ?string $post The post to try and match (null: not used)
 * @return boolean Whether we have a match
 */

function in_memory_search_match(array $filter, string $title, ?string $post = null) : bool