DragRequestData
class DragRequestData (View source)
Constants
OPERATION_MOVE |
Drag operation: move page(s). |
OPERATION_ALIAS |
Drag operation: alias page(s). |
OPERATION_COPY |
Drag operation: copy page(s). |
OPERATION_COPYALL |
Drag operation: copy page(s) and their sub-pages. |
OPERATION_COPYVERSION |
Drag operation: copy most recent version of a page to another page. |
Properties
protected Application | $app | ||
protected Request | $request | ||
protected string | $dragMode | ||
protected Page | $destinationPage | ||
protected Page|null | $destinationSibling | ||
protected Page[] | $originalPages | ||
protected bool|null | $isSomeOriginalPageWithChildren | ||
protected bool|null | $isSomeOriginalPageAnAlias | ||
protected bool|null | $isSaveOldPagePath | ||
protected bool|null | $isCopyChildrenOnly | ||
protected array | $operationErrors | Array keys are the OPERATION_... constant values, array values are the reasons why the operation can't be performed (or empty string if they can be performed). |
Methods
No description
No description
No description
No description
Get a Page instance if and only if there's just one original page.
No description
No description
Check if an operation can be performed.
Check if at least one operation can be performed.
Get the reason why an operation can't be performed.
No description
No description
No description
No description
No description
Get the reason why the move operation can't be performed.
Get the reason why the alias operation can't be performed.
Get the reason why the copy operation can't be performed.
Get the reason why the copy-all operation can't be performed (NOTE: this DOES NOT include the checks performed in the whyCantCopy() method).
Get the reason why the copy-version operation can't be performed.
Details
__construct(Application $app, Request $request)
No description
string
getDragMode()
No description
Page
getDestinationPage()
No description
Page|null
getDestinationSibling()
No description
Page[]
getOriginalPages()
No description
Page|null
getSingleOriginalPage()
Get a Page instance if and only if there's just one original page.
bool
isSaveOldPagePath()
No description
bool
isCopyChildrenOnly()
No description
bool
canDo(string $operation)
Check if an operation can be performed.
bool
canDoAnyOf(array $operations)
Check if at least one operation can be performed.
string
whyCantDo(string $operation)
Get the reason why an operation can't be performed.
protected bool
isSomeOriginalPageWithChildren()
No description
protected bool
isSomeOriginalPageAnAlias()
No description
protected
initializeDragMode()
No description
protected
initializeDestinationPages()
No description
protected
initializeOriginalPages()
No description
protected string
whyCantMove()
Get the reason why the move operation can't be performed.
protected string
whyCantAlias()
Get the reason why the alias operation can't be performed.
protected string
whyCantCopy()
Get the reason why the copy operation can't be performed.
protected string
whyCantCopyAll()
Get the reason why the copy-all operation can't be performed (NOTE: this DOES NOT include the checks performed in the whyCantCopy() method).
protected string
whyCantCopyVersion()
Get the reason why the copy-version operation can't be performed.