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.

protected

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.
  • 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

protected

  • getToplevelController() — Traverse up nested requests until we reach the first that's not a GridFieldDetailForm or GridFieldDetailForm_ItemRequest.

public

  • getRecordIDList() — Returns the list of record IDs selected in the front-end.
  • getRecords() — Returns a DataList of the records selected in the front-end.