silverorange Code


Store.StoreAccountAddressEditPage
/Store/pages/StoreAccountAddressEditPage.php at line 16

Class StoreAccountAddressEditPage

SwatObject
└─SiteObject
└─SiteAbstractPage
└─SitePageDecorator
└─SitePathPage
└─SiteArticlePage
└─SiteAccountPage
└─StoreAccountAddressEditPage

public class StoreAccountAddressEditPage
extends SiteAccountPage

Page for adding and editing addresses stored on accounts

Copyright:
2006-2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
See Also:
StoreAccount

Field Summary
protected SwatUI

$ui

protected string

$ui_xml

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

findAddress()

protected array

getArgumentMap()

Returns an array of the form:.

protected void

getInlineJavaScript()

void

init()

The first page method that is run by a SiteWebApplication.

protected void

initInternal()

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

setupPostalCode()

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

Field Detail

/Store/pages/StoreAccountAddressEditPage.php at line 28

ui

protected SwatUI $ui


/Store/pages/StoreAccountAddressEditPage.php at line 23

ui_xml

protected string $ui_xml = 'Store/pages/account-address-edit.xml'


Constructor Detail

/Store/pages/StoreAccountAddressEditPage.php at line 38

StoreAccountAddressEditPage

public StoreAccountAddressEditPage(mixed page)

Method Detail

/Store/pages/StoreAccountAddressEditPage.php at line 166

addMessage

private void addMessage(mixed text, mixed address)

/Store/pages/StoreAccountAddressEditPage.php at line 231

build

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.

Xmlrpc.hidden.

/Store/pages/StoreAccountAddressEditPage.php at line 339

finalize

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.

Xmlrpc.hidden.

/Store/pages/StoreAccountAddressEditPage.php at line 208

findAddress

private void findAddress()

/Store/pages/StoreAccountAddressEditPage.php at line 51

getArgumentMap

protected array getArgumentMap()

Returns an array of the form:

<?php
array(
   
$argument_name => array($position$default_value),
);
?>


/Store/pages/StoreAccountAddressEditPage.php at line 285

getInlineJavaScript

protected void getInlineJavaScript()

/Store/pages/StoreAccountAddressEditPage.php at line 63

init

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.

Xmlrpc.hidden.

/Store/pages/StoreAccountAddressEditPage.php at line 77

initInternal

protected void initInternal()

/Store/pages/StoreAccountAddressEditPage.php at line 88

process

public void process()

Always runs after SitePage::init() and before SiteLayout::process(). This method is intended to process data entered by the user.

Xmlrpc.hidden.

/Store/pages/StoreAccountAddressEditPage.php at line 327

setDefaultValues

protected void setDefaultValues(StoreAccount account)

Sets default values of this address based on values from the account

Parameters:
account - the account to set default values from.

/Store/pages/StoreAccountAddressEditPage.php at line 297

setWidgetValues

protected void setWidgetValues(mixed address)

/Store/pages/StoreAccountAddressEditPage.php at line 181

setupPostalCode

private void setupPostalCode()

/Store/pages/StoreAccountAddressEditPage.php at line 132

updateAddress

protected void updateAddress(mixed address)

/Store/pages/StoreAccountAddressEditPage.php at line 159

validate

protected void validate()

silverorange Code