String addPage(
[array
$record = NULL]
)
|
|
Draws the form for adding new records.
The implementation delegates drawing of the form to the atkAddHandler.
Parameters:
|
array |
$record: |
The record |
API Tags:
| Return: | A box containing the add page. |
Function that is called when creating an adminPage.
The default implementation returns an empty string, but developers can override this function in their custom handlers or directly in the node class.
API Tags:
| Return: | A string that is displayed below the recordlist. |
Function that is called when creating an adminPage.
The default implementation returns an empty string, but developers can override this function in their custom handlers or directly in the node class.
API Tags:
| Return: | A string that is displayed above the recordlist. |
String adminPage(
[array
$actions = ""]
)
|
|
Admin page displays records and the actions that can be performed on them (edit, delete)
Parameters:
|
array |
$actions: |
The list of actions displayed next to each record. Nodes can implement a recordActions($record, &$actions, &$mraactions) method to add/remove record-specific actions. |
API Tags:
| Return: | A box containing the admin page (without the add form, which is added later. |
Get the add link to add to the admin header
API Tags:
| Return: | HTML code with link to the add action of the node (if allowed) |
Get the exportlink to add to the admin header
API Tags:
| Return: | HTML code with link to the export action of the node (if allowed) |
Get all links to add to the admin header
API Tags:
| Return: | String with the HTML code of the links (each link separated with |) |
Get the importlink to add to the admin header
API Tags:
| Return: | HTML code with link to the import action of the node (if allowed) |
Modify grid.
Parameters:
API Tags:
void partial_attribute(
string
$partial
)
|
|
Attribute handler.
Parameters:
|
string |
$partial: |
full partial |
string partial_datagrid(
)
|
|
Update the admin datagrid.
API Tags:
| Return: | new grid html |
| Access: | public |
If a search action has been defined and a search only returns one result the user will be automatically redirected to the search action.
Parameters:
API Tags:
| Return: | redirect active? |
| Access: | protected |
String renderAdminList(
[Array
$actions = ""]
)
|
|
Renders the recordlist for the admin mode
Parameters:
|
Array |
$actions: |
An array with the actions for the admin mode |
API Tags:
| Return: | The HTML for the admin recordlist |
Render the adminpage, including addpage if necessary
API Tags:
| Return: | with result of adminPage and addPage |
void setActionSessionStatus(
Integer
$sessionStatus
)
|
|
Sets the action session status for actions in the recordlist.
(Defaults to SESSION_NESTED).
Parameters:
|
Integer |
$sessionStatus: |
The sessionstatus (for example SESSION_REPLACE) |