Function FieldsSearchHook->_handle_date_check

Definitions

sources/database_search.php

  • Insert a date range check into a WHERE clause.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$cutoff mixed No No required parameter N/A N/A Cutoff date (TIME or a pair representing the range or null)
$field string No No required parameter N/A N/A The field name of the timestamp field in the database
&$where_clause string Yes No required parameter N/A N/A Additional where clause will be written into here

Preview

Code (PHP)

/**
 * Insert a date range check into a WHERE clause.
 *
 * @param  mixed $cutoff Cutoff date (TIME or a pair representing the range or null)
 * @param  string $field The field name of the timestamp field in the database
 * @param  string $where_clause Additional where clause will be written into here
 */

protected function _handle_date_check($cutoff, string $field, string &$where_clause)