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

Packages

  • 1c
    • exchange
      • catalog
  • auth
  • Booking
  • building
    • company
  • cart
    • shipping
    • steppedcheckout
  • Catalog
    • monument
  • 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 SteppedCheckout

Расширение для подключения к странице пошаговой формы заказа За основу взят аналогичный класс от sshop TODO добавить итератор для шагов чтобы можно было выводить их список с указанием текущего положения формат (ID, Title, Link, IsCurrent, IsPast, IsFuture, Pos)

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

Methods summary

public static
# setup( mixed $steps = null )

Настраивает шаги формы и подключает к CheckoutPage_Controller нужные расширения

Настраивает шаги формы и подключает к CheckoutPage_Controller нужные расширения

public
# onAfterInit( )

Redirect back to start of checkout if no cart started

Redirect back to start of checkout if no cart started

public
# IsCurrentStep( mixed $name )

Check if passed action is the same as the current step

Check if passed action is the same as the current step

public
# IsPastStep( mixed $name )

Check if passed action is for a step before current

Check if passed action is for a step before current

public
# IsFutureStep( mixed $name )

Check if passed action is for a step after current

Check if passed action is for a step after current

public DataObjectSet
# StepsList( mixed $activeOnly = false )

Возвращает список шагов процесса оформления заказа со ссылками, параметрами LinkingMode, LinkOrCurrent и Active LinkingMode = filled | current | future LinkOrCurrent = link | current Active = 1 - шаг доступен, 0 - шаг пропускается

Возвращает список шагов процесса оформления заказа со ссылками, параметрами LinkingMode, LinkOrCurrent и Active LinkingMode = filled | current | future LinkOrCurrent = link | current Active = 1 - шаг доступен, 0 - шаг пропускается

Returns

DataObjectSet
DataObjectSet
public
# index( )

Get first step from stored steps

Get first step from stored steps

Methods inherited from Extension

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

Magic methods summary

Properties summary

public static mixed $first_step
#
public static mixed $steps
#

Массив шагов (ассоциативный)

Массив шагов (ассоциативный)

формат: 'название_шага' => 'Класс_шага' Класс_шага должен иметь action название_шага - на нее передается управление при переходе на шаг

See

CheckoutStep

Properties inherited from Extension

$allowed_actions, $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.2 API Docs API documentation generated by ApiGen 2.8.0