Webylon 3.1 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • auth
  • Booking
  • cart
    • shipping
    • steppedcheckout
  • Catalog
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • CheckoutStep
  • CheckoutStep_ContactDetails
  • CheckoutStep_Membership
  • CheckoutStep_PaymentMethod
  • CheckoutStep_Summary
  • SteppedCheckout

Class CheckoutStep_PaymentMethod

Базовый класс для шагов формы заказа

За основу взят аналогичный класс от sshop

Как правило каждый шаг определяет 3 (или более методов)

  1. метод отображения шага
  2. метод генерации формы шага
  3. метод - обрабочик формы (или несколько)

Все шаги находятся в одном пространстве имен, поэтому имена методов в них должны быть уникальны Для шагов можно использовать шаблоны: CheckoutPage_имяшага, CheckoutPage, Page

Extension
Extended by CheckoutStep
Extended by CheckoutStep_PaymentMethod
Package: cart\steppedcheckout
Author: dvp
Located at cart/code/steppedcheckout/CheckoutStep_PaymentMethod.php

Methods summary

public boolean
# StepIsActive( )

Является ли шаг активным Шаг может пропускать, например, если доступен только 1 способ оплаты или доставки - он выбирется автоматически

Является ли шаг активным Шаг может пропускать, например, если доступен только 1 способ оплаты или доставки - он выбирется автоматически

Returns

boolean
bool

Overrides

CheckoutStep::StepIsActive
public
# paymentmethod( )
public
# PaymentMethodForm( )
public
# setpaymentmethod( mixed $data, mixed $form )
public
# getSelectedPaymentMethod( )

Methods inherited from CheckoutStep

NextStepLink(), PrevStepLink(), getStepActions(), stepMessage(), stepName(), stepTitle()

Methods inherited from Extension

__construct(), clearOwner(), getOwner(), get_classname_without_arguments(), setOwner()

Magic methods summary

Properties summary

public static array $allowed_actions
#

This is used by extensions designed to be applied to controllers. It works the same way as Controller::$allowed_actions.

This is used by extensions designed to be applied to controllers. It works the same way as Controller::$allowed_actions.

Properties inherited from CheckoutStep

$continue_anchor

Properties inherited from Extension

$class, $owner, $ownerBaseClass

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -
Webylon 3.1 API Docs API documentation generated by ApiGen 2.8.0