Squiz Matrix
4.12.2
|
Data Fields | |
$print_context | |
$insufficient_quantities = FALSE | |
Protected Member Functions | |
_getName ($short_name=FALSE, $contextid=NULL) | |
Protected Member Functions inherited from Page | |
_preCreateCheck (Array &$link) | |
_createAdditional (Array &$link) | |
_getName ($short_name=FALSE) | |
Protected Member Functions inherited from Asset | |
_preCreateCheck (Array &$link) | |
_createAdditional (Array &$link) | |
_abortCreate ($trigger_level_changed=FALSE, $linkid=0) | |
_loadVars () | |
_getName ($short_name=FALSE, $contextid=NULL) | |
_getKeywordReplacement ($keyword) | |
_checkPermissionAccess ($perm, $assetids=Array(), $only_workflow=TRUE) | |
makeAndSaveInitialWebPath ($path, $parent_link=NULL) | |
Definition at line 34 of file ecommerce_checkout.inc.
__construct | ( | $assetid = 0 | ) |
Constructor
int | assetid Id of this asset |
Definition at line 62 of file ecommerce_checkout.inc.
_createAdditional | ( | & | $link | ) |
Perform any additional processing required during the creation of this asset
Create bopycopy and folder assets when they are created
array | &$link | information used to create the initial link |
Definition at line 930 of file ecommerce_checkout.inc.
_createOrder | ( | $cart_items | ) |
Create a pending ecommerce order
array | $cart_items | Information used to create the initial link |
Definition at line 1004 of file ecommerce_checkout.inc.
_getActiveDeliveryMethod | ( | ) |
Get The currently active delivery method asset
Looks at the current state of the asset to determine the active delivery method asset
Definition at line 1219 of file ecommerce_checkout.inc.
_getActiveDeliveryMethodId | ( | ) |
Get Active Delivery Method Asset ID
Looks at the current state of the asset to determine the active delivery method asset id
Definition at line 1243 of file ecommerce_checkout.inc.
_getAllowedLinks | ( | ) |
Returns an array of all the permitted links type, the type asset and the cardinality In the form
Array('[link_type]' => Array('[type_code]' => Array('card' => [cardinality], 'exclusive' => [exclusive]))); Where: link_type = SQ_LINK_TYPE_1|SQ_LINK_TYPE_2|SQ_LINK_TYPE_3|SQ_LINK_NOTICE cardinality = [max number of links]|'M' exclusive = true|false
Definition at line 107 of file ecommerce_checkout.inc.
_getAvailableContexts | ( | ) |
Returns a list of available contexts
Definition at line 82 of file ecommerce_checkout.inc.
_getCartSummary | ( | $html = TRUE | ) |
Return a cart summary for the ecommer cart
boolean | $html | if it's true, the summary string is wrapped by tags |
string private
Definition at line 1297 of file ecommerce_checkout.inc.
_getCartTotal | ( | $html = TRUE | ) |
Return a cart total of ecommerce cart
boolean | $html | if it's true, the summary string is wrapped by tags |
string private
Definition at line 1344 of file ecommerce_checkout.inc.
_getCartXml | ( | ) |
Get the XML representation of the cart to store in the order_xml attribute of Ecommerce Order asset
Definition at line 1323 of file ecommerce_checkout.inc.
_getCheckoutContextKeywords | ( | ) |
Get keywords for 'Content' context
Definition at line 1497 of file ecommerce_checkout.inc.
_getConfirmationContextKeywords | ( | ) |
Get keywords for 'Confirmation' context
Definition at line 1522 of file ecommerce_checkout.inc.
_getDeliveryAssetIds | ( | ) |
Get the asset IDs for all the linked delivery methods
Definition at line 1144 of file ecommerce_checkout.inc.
_getFailureContextKeywords | ( | ) |
Get keywords for 'Failure' context
Definition at line 1567 of file ecommerce_checkout.inc.
|
protected |
Returns name of the asset
boolean | $short_name | whether or not we are after the shortname or the full name |
int | $contextid | what context to return the name from |
Definition at line 128 of file ecommerce_checkout.inc.
_getProductReceipt | ( | ) |
Return a receipt for the product section
Definition at line 1256 of file ecommerce_checkout.inc.
_getReceiptContentsContextKeywords | ( | ) |
Get keywords for 'Receipt Contents' customised receipt context
Definition at line 1606 of file ecommerce_checkout.inc.
_getReceiptContextKeywords | ( | ) |
Get keywords for 'Receipt' context
Definition at line 1546 of file ecommerce_checkout.inc.
_getReceiptFormatContextKeywords | ( | ) |
Get keywords for 'Receipt Format' customised receipt context
Definition at line 1586 of file ecommerce_checkout.inc.
_isFormRequired | ( | ) |
Is Form Required?
This function can reply to the question whether the form tags are required in asset's interface Form is required when _registerFormRequirement() was called
Definition at line 1204 of file ecommerce_checkout.inc.
_logOrderAction | ( | $action, | |
& | $order = NULL |
||
) |
Log the current ecommerce order's actions
string | $action | Description of the activity to log |
object | $order | Order being logged |
Definition at line 220 of file ecommerce_checkout.inc.
_moveOrder | ( | $order_id, | |
$review | |||
) |
Move and complete a pending ecommerce order
int | $order_id | The assetid of the existing pending ecommerce order |
boolean | $review | Whether this ecommerce order is to be placed in the review folder |
Definition at line 1092 of file ecommerce_checkout.inc.
_printContext | ( | ) |
Print the context bodycopy
Provided that the context has already been determined, this function simply find an appropriate bodycopy and prints it, providing it with keywords
Definition at line 867 of file ecommerce_checkout.inc.
_processInterface | ( | ) |
Process the interface
This is the main controller function. It determines the context asset is in based on the request and state variables
Definition at line 253 of file ecommerce_checkout.inc.
_processOrder | ( | & | $delivery_method | ) |
Calls the delivery method and asks it to process our order
object | &$delivery_method | The delivery method asset passed by reference |
Definition at line 589 of file ecommerce_checkout.inc.
_registerFormField | ( | $field_name | ) |
Register a form field name
This helps determine whether the output should be wrapped in a form
string | $field_name | Name of the form field |
Definition at line 1170 of file ecommerce_checkout.inc.
_registerFormRequirement | ( | ) |
Register Form Requirement
If an element of the asset's interface requires a form, this will register that requirement
Definition at line 1188 of file ecommerce_checkout.inc.
_retrieveOrder | ( | ) |
Retrieve the order from the current session data
Definition at line 194 of file ecommerce_checkout.inc.
_updateQuantities | ( | $update = TRUE | ) |
Validates or updates the quantities of items stored in the current cart
boolean | $update | Whether to update the product quantity values |
Definition at line 784 of file ecommerce_checkout.inc.
finishCheckout | ( | & | $order_asset | ) |
Stuff that needs to be done at the end of the checkout
object | $order_asset |
Definition at line 2138 of file ecommerce_checkout.inc.
getBodycopy | ( | $name = '' , |
|
$receipt_folder = FALSE |
|||
) |
Returns a reference to a bodycopy based of the name of the bodycopy
string | $name | the name of the bodycopy |
boolean | $receipt_folder | whether the bodycopy is inside the attached Customised Receipt Bodycopies folder |
Definition at line 1973 of file ecommerce_checkout.inc.
getCartSummaryKeywordReplacement | ( | ) |
Get Keyword Replacement for 'cart_summary' keyword
Definition at line 1815 of file ecommerce_checkout.inc.
getConfirmationSummaryKeywordReplacement | ( | ) |
Get Keyword Replacement for 'get_checkout_summary' keyword
Checkout Summary consists of
Definition at line 1779 of file ecommerce_checkout.inc.
getConfirmOrderButtonKeywordReplacement | ( | ) |
Get Keyword Replacement for 'confirm_order_button' keyword
Definition at line 1722 of file ecommerce_checkout.inc.
getCustomisedReceiptKeywordReplacement | ( | ) |
Get Keyword Replacement for 'customised_receipt' keyword
Definition at line 1940 of file ecommerce_checkout.inc.
getDeliveryInterfaceKeywordReplacement | ( | ) |
Get Keyword Replacement for 'delivery_interface' keyword
Definition at line 1683 of file ecommerce_checkout.inc.
getDeliverySelectorKeywordReplacement | ( | ) |
Get Keyword Replacement for 'delivery_selector' keyword
Definition at line 1633 of file ecommerce_checkout.inc.
getErrorMessagesKeywordReplacement | ( | ) |
Get Keyword Replacement for 'error_messages' keyword
Definition at line 1847 of file ecommerce_checkout.inc.
getFailureSummaryKeywordReplacement | ( | ) |
Get Keyword Replacement for 'failure_message' keyword
Definition at line 1868 of file ecommerce_checkout.inc.
getFlatCharges | ( | ) |
It returns an Array of the Flat Charges Array ('name of the charge' => 'value of the charge')
Definition at line 1269 of file ecommerce_checkout.inc.
getGoToConfirmationButtonKeywordReplacement | ( | ) |
Get Keyword Replacement for 'go_to_confirmation_button' keyword
Definition at line 1759 of file ecommerce_checkout.inc.
getInsufficientQuantityMessageKeywordReplacement | ( | ) |
Get Keyword Replacement for 'insufficient_quantity_message' keyword
Definition at line 1886 of file ecommerce_checkout.inc.
getItemsCountKeywordReplacement | ( | ) |
Get Keyword Replacement for 'items_count' keyword
Definition at line 1910 of file ecommerce_checkout.inc.
getItemsTotalCountKeywordReplacement | ( | ) |
Get Keyword Replacement for 'items_total_count' keyword
Definition at line 1925 of file ecommerce_checkout.inc.
getKeywordReplacement | ( | $keyword | ) |
Get bodycopy keyword replacement
Provides a mechanism for providing keyword replacement functions by looking up the function named 'getKeywordNameKeywordReplacement' so an asset wishing to add support for 'best_ever' custom keyword should implement a function getBestEverKeywordReplacement() which returns a replacement string
string | $keyword | Keyword to find a replacement for |
Definition at line 1381 of file ecommerce_checkout.inc.
getOrderXmlKeywordReplacement | ( | ) |
Get order_xml keyword replacement for the success order
Definition at line 1829 of file ecommerce_checkout.inc.
getReceiptSummaryKeywordReplacement | ( | ) |
Get Keyword Replacement for 'receipt_summary' keyword
Definition at line 1797 of file ecommerce_checkout.inc.
getReturnToCheckoutButtonKeywordReplacement | ( | ) |
Get Keyword Replacement for 'return_to_checkout_button' keyword
Definition at line 1741 of file ecommerce_checkout.inc.
onRequestKeywords | ( | & | $broadcaster, |
$vars = Array() |
|||
) |
Add valid keywords for this asset to an array of keywords when asked
object | &$broadcaster | $asset the asset that triggered the event |
array | $vars | the vars that get submitted by the broadcaster we add keywords to the $vars['keywords'] array |
Definition at line 1432 of file ecommerce_checkout.inc.
printBody | ( | ) |
Called by the design to print the body of this asset
Definition at line 153 of file ecommerce_checkout.inc.
saveAttributes | ( | $dont_run_updated = FALSE | ) |
Save attributes set with setAttrValue to the database
boolean | $dont_run_updated | if TRUE this->_updated() won't be run (THIS IS ONLY EVER CALLED FROM Asset::create()) |
Definition at line 2013 of file ecommerce_checkout.inc.
$print_context |
Screen Context
Variable holding context to be printed by 'printContext' function Context can change based on the logic of this asset.
Definition at line 44 of file ecommerce_checkout.inc.