Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

+4
View File
@@ -18,10 +18,12 @@ use IPS\Application;
use IPS\Data\Store;
use IPS\Events\ListenerType\ClubListenerType;
use IPS\Events\ListenerType\ContentListenerType;
use IPS\Events\ListenerType\FileListenerType;
use IPS\Events\ListenerType\InvoiceListenerType;
use IPS\Events\ListenerType\NodeListenerType;
use IPS\Events\ListenerType\PackageListenerType;
use IPS\Events\ListenerType\MemberListenerType;
use IPS\Events\ListenerType\PollListenerType;
use OutOfRangeException;
if( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
@@ -140,7 +142,9 @@ class ListenerType
'InvoiceListenerType' => InvoiceListenerType::class,
'MemberListenerType' => MemberListenerType::class,
'NodeListenerType' => NodeListenerType::class,
'PollListenerType' => PollListenerType::class,
'PackageListenerType' => PackageListenerType::class,
'FileListenerType' => FileListenerType::class
);
}
}
@@ -0,0 +1,41 @@
<?php
/**
* @brief FileListenerType
* @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 4/3/2025
*/
namespace IPS\Events\ListenerType;
/* To prevent PHP errors (extending class does not exist) revealing path */
use IPS\Events\ListenerType;
use IPS\File as SystemFile;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* @method onDownload( SystemFile $file, object $content, array $extra ) : void
*/
class FileListenerType 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(
SystemFile::class
);
}
@@ -17,6 +17,10 @@ namespace IPS\Events\ListenerType;
use IPS\calendar\Event;
use IPS\Content as ContentClass;
use IPS\Content\Reaction;
use IPS\courses\Course;
use IPS\courses\Lesson;
use IPS\courses\Module;
use IPS\courses\Quiz;
use IPS\Events\ListenerType;
use IPS\Http\Url;
use IPS\Member as MemberClass;
@@ -48,6 +52,10 @@ if( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
* @method onUnreact( MemberClass $member, ContentClass $content ) : void
* @method onFollow( MemberClass $member, object $object, bool $isAnonymous ): void
* @method onUnfollow( MemberClass $member, object $object ) : void
* @method onCourseComplete( MemberClass $member, Course $course ) : void
* @method onModuleComplete( MemberClass $member, Module $module ) : void
* @method onLessonComplete( MemberClass $member, Lesson $lesson ) : void
* @method onQuizComplete( MemberClass $member, Quiz $quiz ) : void
*/
class MemberListenerType extends ListenerType
{
@@ -0,0 +1,46 @@
<?php
/**
* @brief PollListenerType
* @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 4/3/2025
*/
namespace IPS\Events\ListenerType;
/* To prevent PHP errors (extending class does not exist) revealing path */
use IPS\Events\ListenerType;
use IPS\Poll as PollClass;
use IPS\Poll\Vote as VoteClass;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* @method onCreateOrEdit( PollClass $poll ) : void
* @method onDelete( PollClass $poll ) : void
* @method onVote( PollClass $poll, VoteClass $vote ) : void
* @method onVoteRecount( PollClass $poll ) : void
* @method onStateChange( PollClass $poll, string $state ) : void
*/
class PollListenerType 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(
PollClass::class
);
}