Function FieldsSearchHook->_handle_date_check_runtime

Definitions

sources/database_search.php

  • Do a date range check for a known timestamp.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

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)
$compare TIME No No required parameter N/A N/A Timestamp to compare to

Returns

  • Whether the date matches the requirements of $cutoff
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Do a date range check for a known timestamp.
 *
 * @param  mixed $cutoff Cutoff date (TIME or a pair representing the range or null)
 * @param  TIME $compare Timestamp to compare to
 * @return boolean Whether the date matches the requirements of $cutoff
 */

protected function _handle_date_check_runtime($cutoff, int $compare) : bool