|
Handler for the 'delete' action of a node. It asks the user for confirmation and upon actual confirmation, deletes the record (and for any attribute that has AF_CASCADE_DELETE set, deletes any detail information (if any) by calling the attributes' delete() method. Located in /handlers/class.atkdeletehandler.inc [line 30] atkActionHandler | --atkDeleteHandlerAuthor(s):
|
| Inherited Properties | Inherited Methods |
|---|---|
|
Inherited From atkActionHandler |
Inherited From atkActionHandler
|
| void | action_delete() | The action handler. |
| bool | checkAttributes() | Checks with each of the attributes of the node whose record is about to be deleted |
| boolean | _checkAllowed() | Check if we are allowed to remove the given records. |
| bool | _checkLocked() | We check if the node is locked, if it is, we display the locked page, |
| void | _doDelete() | Given an confirmed delete, determine where the record needs to be deleted (session or dabase), delete it and redirect to the feedback url. |
| mixed | _doDeleteDb() | Delete the record in the database |
| bool | _doDeleteSession() | Delete the database in the session |
| void | _handleCancelAction() |
|
Checks with each of the attributes of the node whose record is about to be deleted
if they allow the deletion
| Return: | wether or not the attributes have allowed deletion |
|
Check if we are allowed to remove the given records.
| Return: | is delete action allowed? |
|
We check if the node is locked, if it is, we display the locked page,
if it's not but it uses the locking feature, we lock it
| Return: | wether or not we displayed the 'locked' page |
|
Given an confirmed delete, determine where the record needs to be deleted (session or dabase), delete it and redirect to the feedback url.
| Access: | protected |
|
Delete the record in the database
| Return: | Results, true or string with errormessage |
| Access: | protected |
|
Delete the database in the session
| Return: | Results, true or false |
| Access: | protected |