The action handler method
string getSuccessReturnURL(
array
$record
)
|
|
Get the URL to redirect to after successfully saving a record.
Parameters:
|
array |
$record: |
Saved record |
API Tags:
| Return: | Location to redirect to |
| Access: | private |
void goBack(
Array
$record
)
|
|
Go back to the add page
Parameters:
|
Array |
$record: |
The record with reject info |
void handleAddError(
array
$record
)
|
|
Handle error in preAdd/addDb.
Parameters:
void handleSave(
[string
$attrRefreshUrl = '']
)
|
|
Handle save of dialog.
Parameters:
|
string |
$attrRefreshUrl: |
the attribute refresh url if not specified the entire page is refreshed |
The handler for the dialog partial call.
void setDialogSaveUrl(
string
$url
)
|
|
Override the dialog save url
Parameters:
|
string |
$url: |
dialog save URL |
bool storeRecord(
&$record, array
$record
)
|
|
Store a record, either in the database or in the session
Parameters:
|
array |
$record: |
Record to store |
|
|
&$record: |
|
API Tags:
| Return: | Successfull save? |
| Access: | private |
bool storeRecordInDb(
&$record, array
$record
)
|
|
Store a record in the database
Parameters:
|
array |
$record: |
Record to store in the database |
|
|
&$record: |
|
API Tags:
| Return: | Successfull save? |
| Access: | private |
bool storeRecordInSession(
&$record, array
$record
)
|
|
Store a record in the session
Parameters:
|
array |
$record: |
Record to store in the session |
|
|
&$record: |
|
API Tags:
| Return: | Successfull save? |
| Access: | private |
void validate(
Array
&$record
)
|
|
Validate record.
Parameters:
|
Array |
&$record: |
The record to validate |
Get the number of levels to skip
API Tags:
| Return: | The number of levels to skip |