Class DynamicPage
A dynamic page consists of a page name and a number of sub panels. Each sub panel must point to a public panel,
already defined in the eSales panel hierarchy.
Use #retrieveContent() to get the content of this page and all of its sub panels, recursively.
The request will be equivalent to requesting a predefined zone with the same name, and the same sub panels,
as the dynamic page.
Methods summary
public
Apptus\ESales\Connector\DynamicPage
|
#
addSubpanel( Apptus\ESales\Connector\Subpanel $subpanel )
Adds a subpanel to this dynamic page. Each subpanel must have a unique name.
Adds a subpanel to this dynamic page. Each subpanel must have a unique name.
Parameters
- $subpanel
- subpanel to add
Returns
Throws
|
public
Apptus\ESales\Connector\PanelContent
|
#
retrieveContent( Apptus\ESales\Connector\ArgMap |array|null $dynamicPageArguments = null )
Retrieves the content of this dynamic page from the eSales service.
Retrieves the content of this dynamic page from the eSales service.
The arguments supplied to this method may be overriden by the arguments sent to the subpanels.
<
p>
You may use an Apptus\ESales\Connector\ArgMap or a standard HashMap to pass the arguments.
Parameters
- $dynamicPageArguments
map of arguments, where key is the parameter name, and value is the argument value.
Arguments having null values are ignored.
Returns
Throws
|
public
string
|
#
retrieveContentAsXml( dynamicPageArguments $dynamicPageArguments = null )
Retrieves the content of this dynamic page from the eSales service as a string.
Retrieves the content of this dynamic page from the eSales service as a string.
The arguments supplied to this method may be overriden by the arguments sent to the subpanels,
or by the arguments already defined in the public panels referred to by the subpanels.
<
p>
You may use an Apptus\ESales\Connector\ArgMap or a standard HashMap to pass the arguments.
Parameters
- $dynamicPageArguments
map of arguments, where key is the parameter name, and value is the argument value.
Arguments having null values are ignored.
Returns
string A string containing the xml content of the dynamic page.
Throws
|