From b4e71584ec48dab26f5bac050108fc747f74344c Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Sat, 15 Mar 2025 01:55:08 -0300 Subject: [PATCH] use new interface --- resources/interfaces/clear_cache.php | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 resources/interfaces/clear_cache.php diff --git a/resources/interfaces/clear_cache.php b/resources/interfaces/clear_cache.php new file mode 100644 index 0000000000..da3837db6b --- /dev/null +++ b/resources/interfaces/clear_cache.php @@ -0,0 +1,39 @@ + + * Portions created by the Initial Developer are Copyright (C) 2008-2025 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Mark J Crane + * Tim Fry + */ + +/** + * Any class that implements the clear_cache interface will automatically be called when the cache button is pressed + * @author Tim Fry + */ +interface clear_cache { + /** + * The clear_cache method is called automatically for any class that implements the clear_cache interface. + * The function declared here ensures that all clear_cache methods have the same number of parameters being passed, which in this case, is no parameters. + */ + public static function clear_cache(); +}