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

@@ -0,0 +1,76 @@
<?php
/**
* @brief {class}
* @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 {date}
*/
namespace IPS\{app}\extensions\nexus\PackageType;
/* To prevent PHP errors (extending class does not exist) revealing path */
use IPS\nexus\Invoice;
use IPS\nexus\Package;
use IPS\nexus\Purchase;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* {class}
*/
class {class} extends Package
{
/**
* @brief Database Table
*/
protected static string $packageDatabaseTable = '{table}';
/**
* @brief Which columns belong to the local table
*/
protected static array $packageDatabaseColumns = array();
/**
* @brief Icon
*/
public static string $icon = '';
/**
* @brief Title
*/
public static string $title = '';
/**
* ACP Fields
*
* @param Package $package The package
* @param bool $custom If TRUE, is for a custom package
* @param bool $customEdit If TRUE, is editing a custom package
* @return array
*/
public static function acpFormFields( Package $package, bool $custom=FALSE, bool $customEdit=FALSE ): array
{
return [];
}
/**
* On Purchase Generated
*
* @param Purchase $purchase The purchase
* @param Invoice $invoice The invoice
* @return void
*/
public function onPurchaseGenerated( Purchase $purchase, Invoice $invoice ): void
{
/** Handle any custom data stored in @see static::$packageDatabaseTable **/
}
}