Version 5.0.0 beta 10

This commit is contained in:
Neo committed 2025-12-19 17:53:48 -08:00
1 parent 56979f8ee8
commit 264eeb97e0
325 files changed
+6442 -1849

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ namespace IPS\Events;
use IPS\Application;
use IPS\Data\Store;
use IPS\Events\ListenerType\ClubListenerType;
use IPS\Events\ListenerType\ContentListenerType;
use IPS\Events\ListenerType\InvoiceListenerType;
use IPS\Events\ListenerType\NodeListenerType;
@@ -134,7 +135,8 @@ class ListenerType
public static function listenerTypes() : array
{
return array(
'ContentListenerType' => ContentListenerType::class,
'ContentListenerType' => ContentListenerType::class,
'ClubListenerType' => ClubListenerType::class,
'InvoiceListenerType' => InvoiceListenerType::class,
'MemberListenerType' => MemberListenerType::class,
'NodeListenerType' => NodeListenerType::class,
@@ -0,0 +1,36 @@
<?php
/**
* @brief ClubType
* @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 01/09/2024
*/
namespace IPS\Events\ListenerType;
use IPS\Events\ListenerType;
use IPS\Member\Club;
/**
* @method onCreate( Club $club ) : void
* @method onEdit( ?Club $club ) : void
* @method onDelete( Club $club ) : void
*/
class ClubListenerType extends ListenerType
{
/**
* Defines the classes that are supported by each Listener Type
* When a new Listener Type is created, we must specify which
* classes are valid (e.g. \IPS\Content, \IPS\Member).
*
* @var array
*/
protected static array $supportedBaseClasses = array(
Club::class
);
}
@@ -26,7 +26,6 @@ if (!defined('\IPS\SUITE_UNIQUE_KEY')) {
}
/**
* @method onLoad( ContentClass $object ) : void
* @method onBeforeCreateOrEdit( ContentClass $object, array $values, bool $new = FALSE ) : void
* @method onCreateOrEdit( ContentClass $object, array $values, bool $new = FALSE ) : void
* @method onDelete( ContentClass $object ) : void
@@ -23,7 +23,6 @@ if (!defined('\IPS\SUITE_UNIQUE_KEY')) {
}
/**
* @method onLoad( Model $node ) : void
* @method onDelete( Model $node ) : void
*/
class NodeListenerType extends ListenerType