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,28 +12,33 @@
namespace IPS\{app}\extensions\core\ContactUs;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Extensions\ContactUsAbstract;
use IPS\Helpers\Form;
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;
}
/**
* Contact Us extension
*/
class _{class}
class {class} extends ContactUsAbstract
{
/**
* Process Form
*
* @param \IPS\Helpers\Form $form The form
* @param Form $form The form
* @param array $formFields Additional Configuration Formfields
* @param array $options Type Radio Form Options
* @param array $toggles Type Radio Form Toggles
* @param array $disabled Type Radio Form Disabled Options
* @return void
*/
public function process( &$form, &$formFields, &$options, &$toggles, &$disabled )
public function process( Form &$form, array &$formFields, array &$options, array &$toggles, array &$disabled ) : void
{
}
@@ -41,10 +46,10 @@ class _{class}
/**
* Allows extensions to do something before the form is shown... e.g. add your own custom fields, or redirect the page
*
* @param \IPS\Helpers\Form $form The form
* @param Form $form The form
* @return void
*/
public function runBeforeFormOutput( &$form )
public function runBeforeFormOutput( Form $form ) : void
{
}
@@ -53,9 +58,9 @@ class _{class}
* Handle the Form
*
* @param array $values Values from form
* @return void
* @return bool
*/
public function handleForm( array $values )
public function handleForm( array $values ) : bool
{
return FALSE;
}