Version 5.0.0 beta 2

This commit is contained in:
Neo committed 2025-12-19 16:39:01 -08:00
1 parent 15c7beabc5
commit f61b0da85d
181 files changed
+3182 -1533

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<?php
/**
* @brief Polymorphic
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @subpackage
* @since Oct 2024
*/
namespace IPS\Widget;
/* To prevent PHP errors (extending class does not exist) revealing path */
use function defined;
use function header;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
interface Polymorphic
{
/**
* Get the base key. When the class name is dynamically generated, we need to use the base key to look in the database and find the actual base configuration
*
* @return string
*/
public static function getBaseKey() : string;
}