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

Class: AccountPage

Source Location: /code/customer/AccountPage.php

Class Overview

Page
   |
   --AccountPage

An account page which displays the order history for any given Member and displays an individual Order.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 13]
An account page which displays the order history for any given Member and displays an individual Order.

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

Boolean canCreate( [ $member = null])

Prevent CMS users from creating another account page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDelete [line 62]

Boolean canDelete( [ $member = null])

Prevent CMS users from deleting the account page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method canDeleteFromLive [line 73]

Boolean canDeleteFromLive( [ $member = null])

Prevent CMS users from unpublishing the account page.



Tags:

return:  Always returns false


Parameters:

   $member  

[ Top ]

method getCMSActions [line 84]

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

FieldSet getCMSFields( )

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



[ Top ]

method requireDefaultRecords [line 19]

void requireDefaultRecords( )

Automatically create an AccountPage 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:24 +1300 by phpDocumentor 1.4.4