static string getAjaxUpdateCall(
string
$url
)
|
|
Returns JavaScript code to update the contents of the current modal dialog using an Ajax request to the given URL.
Parameters:
|
string |
$url: |
url for the Ajax request |
API Tags:
| Return: | JavaScript call for updating the dialog contents |
| Access: | public |
static string getCloseCall(
)
|
|
Returns JavaScript code to close the current ATK dialog.
API Tags:
| Return: | JavaScript call for closing the current dialog |
| Access: | public |
static string getReloadCall(
)
|
|
Returns JavaScript code to reload the contents of the current modal dialog.
API Tags:
| Return: | JavaScript call for reloading the dialog contents |
| Access: | public |
static string getSaveAndCloseCall(
string
$url, [string
$formName = 'dialogform'], [array
$extraParams = array()], [boolean
$encode = true]
)
|
|
Returns JavaScript code to save the contents of the current active ATK dialog and close it immediately.
Parameters:
|
string |
$url: |
save URL |
|
string |
$formName: |
form name (will be serialized) |
|
array |
$extraParams: |
key/value array with URL parameters that need to be send the parameters will override form element with the same name! |
|
boolean |
$encode: |
encode using htmlentities (needed to use in links etc.) |
API Tags:
| Return: | JavaScript call for saving the current dialog and closing it immediately |
| Access: | public |
static string getSaveCall(
string
$url, [string
$formName = 'dialogform'], [array
$extraParams = array()], [boolean
$encode = true]
)
|
|
Returns JavaScript code to save the contents of the current active ATK dialog.
Parameters:
|
string |
$url: |
save URL |
|
string |
$formName: |
form name (will be serialized) |
|
array |
$extraParams: |
key/value array with URL parameters that need to be send the parameters will override form element with the same name! |
|
boolean |
$encode: |
encode using htmlentities (needed to use in links etc.) |
API Tags:
| Return: | JavaScript call for saving the current dialog |
| Access: | public |
static string getUpdateCall(
string
$content, [boolean
$encode = true]
)
|
|
Returns JavaScript code to update the contents of the current modal dialog.
Parameters:
|
string |
$content: |
new dialog contents |
|
boolean |
$encode: |
encode using htmlentities (needed to use in links etc.) |
API Tags:
| Return: | JavaScript call for updating the dialog contents |
| Access: | public |
static void loadScriptsAndStyles(
[string|boolean
$theme = null]
)
|
|
Load JavaScript and stylesheets.
Parameters:
|
string|boolean |
$theme: |
uses the given window theme, by default checks the current ATK theme which window theme should be used, if set explicitly to false no theme will be loaded |
API Tags:
atkDialog __construct(
string
$nodeType, string
$action, [string
$partial = 'dialog'], [array
$params = array()]
)
|
|
Constructor.
Parameters:
|
string |
$nodeType: |
node type |
|
string |
$action: |
node action |
|
string |
$partial: |
partial name |
|
array |
$params: |
url parameters |
Returns the dialog action.
API Tags:
| Return: | action |
| Access: | public |
string getCall(
[boolean
$load = true], [boolean
$encode = true], [boolean
$callModifier = true], [boolean
$lateParamBinding = false]
)
|
|
Returns the JavaScript call to open the dialog.
Parameters:
|
boolean |
$load: |
load JavaScript and stylesheets needed to show this dialog? |
|
boolean |
$encode: |
encode using htmlentities (needed to use in links etc.) |
|
boolean |
$callModifier: |
call node's dialog modifier (modifyDialog method)? |
|
boolean |
$lateParamBinding: |
|
API Tags:
| Return: | JavaScript call for opening the dialog |
mixed getModifierObject(
)
|
|
Returns the modifier object.
API Tags:
| Return: | modifier object |
| Access: | public |
Returns the dialog node type.
API Tags:
| Return: | node type |
| Access: | public |
Returns the dialog options.
API Tags:
| Return: | dialog options |
| Access: | private |
Returns the dialog partial.
API Tags:
| Return: | partial |
| Access: | public |
Returns the dialog sessionStatus.
API Tags:
| Return: | sessionStatus (SESSION_BACK=3, SESSION_DEFAULT=0, SESSION_NESTED=2, SESSION_NEW=1, SESSION_PARTIAL=5, SESSION_REPLACE=4) |
| Access: | public |
Returns the dialog URL.
API Tags:
| Return: | dialog URL |
| Access: | private |
unknown getWindowOptions(
)
|
|
Window options like the show effect etc. These options can be controlled by setting the special theme attribute 'dialog_window_options'. This attribute should contain a JavaScript object with the window options.
API Tags:
Load JavaScript and stylesheets.
void setHeight(
int
$height
)
|
|
Set height.
Parameters:
API Tags:
void setModifierObject(
mixed
$object
)
|
|
Sets an object which modifyObject method will be called (if exists) just before showing the dialog. This method is allowed to alter the dialog.
Parameters:
|
mixed |
$object: |
modifier object |
API Tags:
| See: | atkDialog::getCall |
| Access: | public |
void setSerializeForm(
[string
$form = 'entryform']
)
|
|
Serialize the form with the given name.
Defaults to the entryform.
Parameters:
void setSessionStatus(
int
$sessionStatus
)
|
|
Sets the dialog sessionStatus.
Parameters:
|
int |
$sessionStatus: |
(SESSION_BACK=3, SESSION_DEFAULT=0, SESSION_NESTED=2, SESSION_NEW=1, SESSION_PARTIAL=5, SESSION_REPLACE=4) |
API Tags:
void setSize(
int
$width, int
$height
)
|
|
Set dialog dimensions.
Parameters:
|
int |
$width: |
width |
|
int |
$height: |
height |
void setTheme(
string
$name, [boolean
$load = true]
)
|
|
Sets the theme to use.
Parameters:
|
string |
$name: |
theme name |
|
boolean |
$load: |
load theme? |
void setTitle(
string
$title
)
|
|
Sets the dialog title.
Parameters:
void setWidth(
int
$width
)
|
|
Set width.
Parameters:
API Tags: