UncleCheese\BetterButtons\Extensions\GridFieldBetterButtonsItemRequest

Decorates {@link GridDetailForm_ItemRequest} to use new form actions and buttons.

Synopsis

class GridFieldBetterButtonsItemRequest extends DataExtension {
}

Hierarchy

Extends

  • SilverStripe\ORM\DataExtension

Tasks

Line Task
349 Save this item into the given relationship
431+ This had to be directly copied from {@link GridFieldDetailForm_ItemRequest}
447+ This had to be directly copied from {@link GridFieldDetailForm_ItemRequest}
449 Coupling with CMS
477+ GridFieldDetailForm_ItemRequest::doSave is too monolithic, making overloading impossible. Most
525+ This method is very inefficient.
540+ This method is very inefficient.
544 Search in the paginated list only somehow (grab the limit + offset and search from there?)

Members

private

  • $allowed_actions — array

Methods

protected

public

  • addnew() — Redirecting to the current URL doesn't do anything, so this is just a dummy action that gives the request somewhere to go in order to force a reload, and then just redirects back to the original link.
  • cancel() — Goes back to list view
  • customaction() — Handles all custom action from DataObjects and hands them off to a sub-controller.
  • doNew() — Creates a new record. If you're already creating a new record, this forces the URL to change. Hacky UI workaround.
  • doPublishAndAdd() — Publishes the record and goes to make a new record
  • doPublishAndClose() — Publishes the record and closes the detail form
  • doSaveAndAdd() — Saves the form and forwards to a blank form to continue creating
  • doSaveAndNext() — Saves the record and goes to the next one
  • doSaveAndPrev() — Saves the record and goes to the previous one
  • doSaveAndQuit() — Saves the form and goes back to list view
  • getNextRecordID() — Gets the ID of the next record in the list.
  • getPreviousRecordID() — Gets the ID of the previous record in the list.
  • nestedform() — Handles all custom action from DataObjects and hands them off to a sub-controller.
  • publish()
  • recordIsDeletedFromStage() — Determines if the current record is deleted from stage
  • recordIsPublished() — Determines if the current record is published
  • rollback()
  • save() — Allows us to have our own configurable save button
  • unPublish() — Unpublishes the record
  • updateItemEditForm() — Updates the detail form to include new form actions and buttons