59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
<?php
|
|
/**
|
|
* @brief Moderator Control Panel Extension: {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\ModCp;
|
|
|
|
use IPS\Extensions\ModCpAbstract;
|
|
use function defined;
|
|
|
|
/* To prevent PHP errors (extending class does not exist) revealing path */
|
|
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
|
{
|
|
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* @brief Moderator Control Panel Extension: {class}
|
|
*/
|
|
class {class} extends ModCpAbstract
|
|
{
|
|
/**
|
|
* Returns the primary tab key for the navigation bar
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getTab() : ?string
|
|
{
|
|
return '{tabKey}';
|
|
}
|
|
|
|
/**
|
|
* What do I manage?
|
|
* Acceptable responses are: content, members, or other
|
|
*
|
|
* @return string
|
|
*/
|
|
public function manageType() : string
|
|
{
|
|
return '{manageType}';
|
|
}
|
|
|
|
/**
|
|
* Manage
|
|
*
|
|
* @return void
|
|
*/
|
|
public function manage() : void
|
|
{
|
|
|
|
}
|
|
} |