Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -13,7 +13,11 @@
|
||||
namespace IPS\Extensions;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\Helpers\Menu\Buttons;
|
||||
use IPS\Helpers\Menu\MenuItem;
|
||||
use IPS\Member\Club;
|
||||
use IPS\Member\Club\Page as ClubPage;
|
||||
use IPS\Node\Model;
|
||||
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
@@ -31,5 +35,34 @@ abstract class ClubAbstract
|
||||
* @param Model|null $container Container
|
||||
* @return array
|
||||
*/
|
||||
abstract public function tabs( Club $club, ?Model $container = NULL ): array;
|
||||
public function tabs( Club $club, ?Model $container = NULL ): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array of menu elements to add to the club menu
|
||||
*
|
||||
* @param Club $club
|
||||
* @param Model|ClubPage|null $container
|
||||
* @return array<string,MenuItem>
|
||||
*/
|
||||
public function menu( Club $club, Model|ClubPage|null $container = null ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array of menu elements to add to the buttons list
|
||||
* in the club header. The menu will be rendered as individual buttons and not
|
||||
* as a dropdown menu.
|
||||
*
|
||||
* @see Buttons::button()
|
||||
* @param Club $club
|
||||
* @return array
|
||||
*/
|
||||
public function buttons( Club $club ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user