Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -6,6 +6,7 @@ namespace IPS\Output\UI;
|
||||
|
||||
|
||||
use IPS\Helpers\Form\FormAbstract;
|
||||
use IPS\Member\Club;
|
||||
use IPS\Node\Model;
|
||||
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
@@ -117,4 +118,45 @@ abstract class Node
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add elements to the Club Node form
|
||||
* This method returns all elements that will be added.
|
||||
* By default, all elements will be added in order at the end of the form.
|
||||
* To specify placement within the form, @see FormAbstract::setPosition().
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @return array<string,FormAbstract>
|
||||
*/
|
||||
public function clubFormElements( Model $node, Club $club ): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Any formatting necessary for custom fields added in clubFormElements
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @param array $values
|
||||
* @return array
|
||||
*/
|
||||
public function processClubForm( Model $node, Club $club, array $values ) : array
|
||||
{
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called after the club Node form is saved
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @param array $values
|
||||
* @return void
|
||||
*/
|
||||
public function clubFormPostSave( Model $node, Club $club, array $values ): void
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user