SilverCart\Admin\Controllers\PaymentMethodAdmin
ModelAdmin for PaymentMethods.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class PaymentMethodAdmin
extends ModelAdmin
{
- // members
- private static string $menuCode = 'handling';
- private static integer $menuSortIndex = 10;
- private static string $url_segment = 'silvercart-payment-methods';
- private static string $menu_title = 'Payment Methods';
- private static string $sortable_field = 'Sort';
- private static array $managed_models = ;
- // Inherited members from ModelAdmin
- protected GridField $gridField;
- protected GridFieldConfig $gridFieldConfig;
- protected static bool $search_form_is_collapsed;
- // Inherited methods from ModelAdmin
- protected void init()
- protected void beforeUpdateInit()
- protected void beforeUpdateEditForm()
- public string SectionTitle()
- public Form getEditForm()
- public string SearchFormCollapseClass()
- public string handleBatchCallback()
- public GridField getGridFieldFor()
- public GridFieldConfig getGridFieldConfigFor()
- public bool canView()
Hierarchy
Members
private
- $managed_models
—
array
Managed models - $sortable_field
—
string
Name of DB field to make records sortable by. - $url_segment
—
string
The URL segment
protected
- $gridField
—
\SilverStripe\Forms\GridField\GridField
GridField of the edit form - $gridFieldConfig
—
SilverStripe\Forms\GridField\GridFieldConfig
GridFieldConfig of the edit form - $search_form_is_collapsed
—
SilverCart\Admin\Controllers\bool
If this is set to true the ModelAdmins SearchForm will be collapsed on load.
Methods
Inherited from SilverCart\Admin\Controllers\ModelAdmin
protected
- beforeUpdateEditForm() — Allows user code to hook into ModelAdmin::getEditForm() prior to updateEditForm being called on extensions.
- beforeUpdateInit() — Allows user code to hook into ModelAdmin::init() prior to updateInit being called on extensions.
- init() — Provides hook for decorators, so that they can overwrite css and other definitions.
public
- SearchFormCollapseClass() — Returns the CSS class to use for the SearchForms collapse state.
- SectionTitle() — title in the top bar of the CMS
- canView() — Workaround to hide this class in CMS menu.
- getEditForm() — Builds and returns the edit form.
- getGridFieldConfigFor() — Returns the GridFieldConfig of the given edit form
- getGridFieldFor() — Returns the GridField of the given edit form
- handleBatchCallback() — Handles a batch action