SilverCart\Admin\Controllers\ProductImageAdmin
Provides a form to upload multiple images for different products at once.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class ProductImageAdmin
extends LeftAndMain
{
- // members
- private static string $menuCode = 'products';
- private static integer $menuSortIndex = 11;
- private static string $url_segment = 'silvercart-product-images';
- private static string $menu_title = 'Product Images';
- // methods
- public Form getEditForm()
- protected array getUploadedFiles()
- // Inherited methods from LeftAndMain
- protected void init()
- protected void beforeUpdateInit()
- protected void beforeUpdateEditForm()
- public string SectionTitle()
- public boolean canView()
Hierarchy
Members
private
- $url_segment
—
string
The URL segment
Methods
protected
- getUploadedFiles() — Returns a list of not yet handled product image uploads.
public
- getEditForm() — Returns the edit form for this admin.
Inherited from SilverCart\Admin\Controllers\LeftAndMain
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
- SectionTitle() — title in the top bar of the CMS
- canView() — Workaround to hide this class in CMS menu.