63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
<?php
|
|
/**
|
|
* @brief MemberACPManagement: {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\core\MemberACPManagement;
|
|
|
|
/* To prevent PHP errors (extending class does not exist) revealing path */
|
|
|
|
use Callback;
|
|
use IPS\Extensions\MemberACPManagementAbstract;
|
|
use IPS\Helpers\Table\Table;
|
|
|
|
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
|
{
|
|
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Member Management: {class}
|
|
*/
|
|
class {class} extends MemberACPManagementAbstract
|
|
{
|
|
/**
|
|
* Additional columns allowed in the member export.
|
|
* Return an array where the key is the column name
|
|
* and the value is a language string
|
|
*
|
|
* @return array<string,string>
|
|
*/
|
|
public function exportColumns() : array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Additional columns to show in the ACP member list
|
|
* Return an array where the key is the column name
|
|
* and the value is an optional callback method for @see Table::$parsers
|
|
*
|
|
* @return array<string,?Callback>
|
|
*/
|
|
public function acpColumns() : array
|
|
{
|
|
/* Example:
|
|
return array(
|
|
'column1' => null,
|
|
'column2' => function( $val, $row )
|
|
{
|
|
return '';
|
|
}
|
|
);*/
|
|
|
|
return [];
|
|
}
|
|
} |