Colymba\BulkManager\BulkAction\EditHandler

Bulk action handler for editing records.

Synopsis

class EditHandler extends Handler {
}

Hierarchy

Members

private

  • $allowed_actions — array
    RequestHandler allowed actions.
  • $url_handlers — array
    RequestHandler url => action map.
  • $url_segment — string
    URL segment used to call this handler If none given, @BulkManager will fallback to the Unqualified class name

protected

  • $buttonClasses — string
    Extra classes to add to the bulk action button for this handler Can also be used to set the button font-icon e.g. font-icon-trash
  • $buttonClasses — string
    Extra classes to add to the bulk action button for this handler Can also be used to set the button font-icon e.g. font-icon-trash
  • $componentColymba\BulkManager\BulkAction\GridFieldBulkManager
    GridFieldBulkManager instance.
  • $destructive — boolean
    Set to true is this handler will destroy any data.
  • $destructive — boolean
    Set to true is this handler will destroy any data.
  • $gridFieldColymba\BulkManager\BulkAction\GridField
    Related GridField instance.
  • $icon — string
    Front-end icon path for this handler's action.
  • $icon — string
    Front-end icon path for this handler's action.
  • $label — string
    Front-end label for this handler's action
  • $label — string
    Front-end label for this handler's action
  • $xhr — boolean
    Whether this handler should be called via an XHR from the front-end
  • $xhr — boolean
    Whether this handler should be called via an XHR from the front-end

Methods

private

  • filterRecordEditingFields() — Filters a records editable fields based on component's config and escape each field with unique name.
  • getRecordEditingFields() — Returns a record's populated form fields with all filtering done ready to be included in the main form.

protected

public

  • bulkEditForm() — Return a form for all the selected DataObjects with their respective editable fields.
  • doSave() — Handles bulkEditForm submission and parses and saves each records data.
  • getI18nLabel() — Return i18n localized front-end label
  • index() — Creates and return the bulk editing interface.
  • recordEditForm() — Return's a form with only one record's fields Used for bulkEditForm subForm requests via ajax.

Inherited from Colymba\BulkManager\BulkAction\Handler

public