swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: CheckoutPage

Source Location: /code/customer/CheckoutPage.php

Class Overview

Page
   |
   --CheckoutPage

A checkout page for displaying the checkout form to a visitor.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 13]
A checkout page for displaying the checkout form to a visitor.

Automatically created on install of the shop module, cannot be deleted by admin user in the CMS. A required page for the shop module.




Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Variables

static $db = array(
    'ChequeMessage' => 'HTMLText'
  )

[line 20]

Adding ChequeMessage field, a requirement for ChequePayment::ChequeContent().



Tags:

var:  Database field descriptions

Type:   Array


[ Top ]



Class Methods


method canCreate [line 50]

Boolean canCreate( [ $member = null])

Prevent CMS users from creating another checkout page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDelete [line 60]

Boolean canDelete( [ $member = null])

Prevent CMS users from deleting the checkout page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDeleteFromLive [line 71]

Boolean canDeleteFromLive( [ $member = null])

Prevent CMS users from unpublishing the checkout page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method getCMSActions [line 82]

FieldSet getCMSActions( )

To remove the unpublish button from the CMS, as this page must always be published



Tags:

return:  Actions fieldset with unpublish action removed


[ Top ]

method getCMSFields [line 94]

FieldSet getCMSFields( )

Remove page type dropdown to prevent users from changing page type.



[ Top ]

method requireDefaultRecords [line 28]

void requireDefaultRecords( )

Automatically create a CheckoutPage if one is not found on the site at the time the database is built (dev/build).



[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:25 +1300 by phpDocumentor 1.4.4