\WikiPage_Controller
Synopsis
class WikiPage_Controller
extends Page_Controller
implements
PermissionProvider
{
- // members
- private static array $allowed_actions = ;
- protected Form $form;
- // methods
- public void init()
- public array providePermissions()
- public void edit()
- public Form EditForm()
- public Form CreatePageForm()
- public void cancel()
- public void revert()
- public void delete()
- public void addpage()
- protected WikiPage savePage()
- public save()
- public void done()
- public void publish()
- public String Content()
- public Form Form()
- public Form StatusForm()
- public void updatelock()
- protected array getEditingLocks()
- public void startediting()
- public String linkselector()
- public unknown_type LinkingType()
- public Form LinkSelectForm()
- public string objectdetails()
- public void livepreview()
- public void imagepicker()
- public void linkpicker()
- public void linklist()
- public void imageupload()
Hierarchy
Extends
- Page_Controller
Implements
- PermissionProvider
Members
Methods
protected
- getEditingLocks() — Lock the page for editing
- savePage()
public
- Content() — We only want to output content if we're not in edit mode at all
- CreatePageForm() — Returns the form used to create new pages. If the current form is not set (ie the user is NOT currently editing), then we just return null.
- EditForm() — Creates the form used for editing the page's content
- Form() — Return the form to the user if it exists, otherwise some information about who is currently editing
- LinkSelectForm()
- LinkingType() — What kind of linking is the link selection form doing
- StatusForm() — Gets the status form that is used by users to trigger the editing mode if they have the relevant access to it.
- addpage() — Creates an entirely new page as a child of the current page, or 'after' a selected page.
- cancel() — basic action that the user can use to just quit editing
- delete() — Deletes the current page and returns the user to the parent of the now deleted page.
- done() — Complete editing and publish the data
- edit() — Action handler for editing this wiki page
- imagepicker()
- imageupload()
- init()
- linklist()
- linkpicker()
- linkselector() — Show the link selector
- livepreview()
- objectdetails() — Retrieves information about a selected image for the frontend image insertion tool - hacky for now, ideally need to pull through the backend ImageForm
- providePermissions() — Define some permissions used for editing wiki pages
- publish() — Complete editing and publish the data
- revert() — Option for the user to revert the changes made since it was last published
- save() — Save the submitted data
- startediting() — Called to start editing this page
- updatelock() — Updates the lock timeout for the given object