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

Class: CartPage

Source Location: /code/customer/CartPage.php

Class Overview

Page
   |
   --CartPage

A cart page for the frontend to display contents of a cart to a visitor.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 13]
A cart page for the frontend to display contents of a cart 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 Methods


method canCreate [line 41]

Boolean canCreate( [ $member = null])

Prevent CMS users from creating another cart page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDelete [line 51]

Boolean canDelete( [ $member = null])

Prevent CMS users from deleting the cart page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDeleteFromLive [line 62]

Boolean canDeleteFromLive( [ $member = null])

Prevent CMS users from unpublishing the cart page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method getCMSActions [line 73]

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 85]

FieldSet getCMSFields( )

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



[ Top ]

method requireDefaultRecords [line 19]

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