Function __global->find_addon_effective_mtime

Definitions

sources/addons2.php

  • Find effective modification date of an addon.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$addon_name string No No required parameter N/A N/A The name of the addon
$newer_than_ok ?TIME No No Null N/A N/A Optimisation: If the date is newer than this then that's good enough for a comparison and we can not look harder (null: no optimisation)
$exclude_registry boolean No No False N/A N/A Do not consider addon registry hooks in the calculation

Returns

  • Modification time (null: could not find any files)
  • Type: ?TIME
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find effective modification date of an addon.
 *
 * @param  string $addon_name The name of the addon
 * @param  ?TIME $newer_than_ok Optimisation: If the date is newer than this then that's good enough for a comparison and we can not look harder (null: no optimisation)
 * @param  boolean $exclude_registry Do not consider addon registry hooks in the calculation
 * @return ?TIME Modification time (null: could not find any files)
 */

function find_addon_effective_mtime(string $addon_name, ?int $newer_than_ok = null, bool $exclude_registry = false) : ?int