Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

@@ -12,16 +12,20 @@
namespace IPS\{app}\extensions\core\Uninstall;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Extensions\UninstallAbstract;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* Uninstall callback
*/
class _{class}
class {class} extends UninstallAbstract
{
/**
* Code to execute before the application has been uninstalled
@@ -29,7 +33,7 @@ class _{class}
* @param string $application Application directory
* @return void
*/
public function preUninstall( $application )
public function preUninstall( string $application ) : void
{
}
@@ -39,7 +43,7 @@ class _{class}
* @param string $application Application directory
* @return void
*/
public function postUninstall( $application )
public function postUninstall( string $application ) : void
{
}
@@ -47,10 +51,9 @@ class _{class}
* Code to execute when other applications or plugins are uninstalled
*
* @param string $application Application directory
* @param int $plugin Plugin ID
* @return void
*/
public function onOtherUninstall( $application=NULL, $plugin=NULL )
public function onOtherUninstall( string $application ) : void
{
}
}