Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -14,8 +14,10 @@ namespace IPS\Extensions;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\Helpers\Badge;
|
||||
use IPS\Helpers\Menu\Buttons;
|
||||
use IPS\Helpers\Menu\MenuItem;
|
||||
use IPS\Member;
|
||||
use IPS\Member\Club;
|
||||
use IPS\Member\Club\Page as ClubPage;
|
||||
use IPS\Node\Model;
|
||||
@@ -32,10 +34,10 @@ abstract class ClubAbstract
|
||||
* Tabs
|
||||
*
|
||||
* @param Club $club The club
|
||||
* @param Model|null $container Container
|
||||
* @param Model|ClubPage|null $container Container
|
||||
* @return array
|
||||
*/
|
||||
public function tabs( Club $club, ?Model $container = NULL ): array
|
||||
public function tabs( Club $club, Model|ClubPage|null $container = NULL ): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -65,4 +67,51 @@ abstract class ClubAbstract
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array of badges to show on the club card and header
|
||||
*
|
||||
* @param Club $club
|
||||
* @return array<Badge>
|
||||
*/
|
||||
public function badges( Club $club ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/***
|
||||
* Return an array of form fields that will be added to the club creation form
|
||||
*
|
||||
* @param Club|null $club
|
||||
* @return array
|
||||
*/
|
||||
public function formElements( ?Club $club ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle any custom fields that were added in the formElements method
|
||||
* This is executed after the club has been saved
|
||||
*
|
||||
* @param Club $club
|
||||
* @param array $values
|
||||
* @param bool $new
|
||||
* @return void
|
||||
*/
|
||||
public function saveForm( Club $club, array $values, bool $new=false ) : void
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom filters for retrieving a list of clubs that are visible to a member
|
||||
*
|
||||
* @param Member|null $member
|
||||
* @return array
|
||||
*/
|
||||
public function clubsWhere( ?Member $member ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user