SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePageDecorator
└─SitePathPage
└─SiteArticlePage
└─SiteAccountPage
└─StoreAccountAddressEditPage
public class StoreAccountAddressEditPage
extends SiteAccountPage
| Field Summary | |
|---|---|
| protected SwatUI | |
| protected string | |
| Constructor Summary | |
|---|---|
StoreAccountAddressEditPage(mixed page) |
|
| Method Summary | |
|---|---|
| private void | addMessage(mixed text, mixed address) |
| void | build() Always runs after SitePage::process() and before SiteLayout::build(). |
| void | finalize() Always runs after SitePage::build() and before SiteLayout::complete(). |
| private void | |
| protected array | Returns an array of the form:. |
| protected void | |
| void | init() The first page method that is run by a SiteWebApplication. |
| protected void | |
| void | process() Always runs after SitePage::init() and before SiteLayout::process(). |
| protected void | setDefaultValues(StoreAccount account) Sets default values of this address based on values from the account. |
| protected void | setWidgetValues(mixed address) |
| private void | |
| protected void | updateAddress(mixed address) |
| protected void | validate() |
| Methods inherited from Site.SiteAccountPage | |
|---|---|
| init | |
| Methods inherited from Site.SiteArticlePage | |
|---|---|
| build, buildContent, buildMetaDescription, buildTitle, displayArticle, displaySubArticle, displaySubArticles, getReplacementMarkerText, getReplacementMarkerTextByMatches, init, initArticle, replaceMarkers, setArticle | |
| Methods inherited from Site.SitePathPage | |
|---|---|
| buildNavBar, getPath, hasParentInPath, setPath | |
| Methods inherited from Site.SitePageDecorator | |
|---|---|
| build, buildContent, buildMetaDescription, buildNavBar, buildTitle, finalize, init, process, setLayout, setSource | |
| Methods inherited from Site.SiteAbstractPage | |
|---|---|
| build, finalize, getArgument, getArgumentMap, getSource, init, process, setLayout, setSource | |
protected SwatUI $ui
protected string $ui_xml = 'Store/pages/account-address-edit.xml'
public StoreAccountAddressEditPage(mixed page)
private void addMessage(mixed text, mixed address)
public void build()
Always runs after SitePage::process() and before
SiteLayout::build(). This method is intended to build page
content and add it to the layout.
public void finalize()
Always runs after SitePage::build() and before
SiteLayout::complete(). This method is intended to add HTML head
entries or perform other actions that should happen after the page has
been built.
private void findAddress()
protected array getArgumentMap()
Returns an array of the form:
<?php
array(
$argument_name => array($position, $default_value),
);
?>
protected void getInlineJavaScript()
public void init()
The first page method that is run by a SiteWebApplication.
Always runs before SiteLayout::init(). This method is intended
to initialize objects used by the SitePage::process() and
SitePage::build() methods.
protected void initInternal()
public void process()
Always runs after SitePage::init() and before
SiteLayout::process(). This method is intended to process
data entered by the user.
protected void setDefaultValues(StoreAccount account)
Sets default values of this address based on values from the account
account - the account to set default values from.protected void setWidgetValues(mixed address)
private void setupPostalCode()
protected void updateAddress(mixed address)
protected void validate()
Page for adding and editing addresses stored on accounts