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

Class: ShopAdmin

Source Location: /code/admin/ShopAdmin.php

Class Overview

ModelAdmin
   |
   --ShopAdmin

The shop admin area which provides access to orders, products and attributes.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 11]
The shop admin area which provides access to orders, products and attributes.



Tags:

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


[ Top ]


Class Variables

static $collection_controller_class =  "ShopAdmin_CollectionController"

[line 18]

Class used for administering the collections of products, orders etc.



Tags:

access:  public

Type:   String


[ Top ]

static $default_model =  'Order'

[line 66]

Default model to be managed when the admin is loaded.


Type:   String


[ Top ]

static $managed_models = array( 
     'Order',
    'Product',
    'Attribute',
     'Customer'
  )

[line 40]

The data objects managed by this admin.



Tags:

access:  public

Type:   Array


[ Top ]

static $menu_priority =  7

[line 80]

Set a high priority in the CMS top navigation


Type:   Int


[ Top ]

static $menu_title =  'Shop'

[line 59]

Menu title for this admin area.


Type:   String


[ Top ]

static $page_length =  20

[line 94]

Number of records to display at one time.



Tags:

access:  public

Type:   Int


[ Top ]

static $parent_page_type =  "SiteTree"

[line 33]

No idea why this exists.

TODO remove this variable




Tags:

access:  public

Type:   String


[ Top ]

static $record_controller_class =  "ShopAdmin_RecordController"

[line 25]

Class used for administering a record



Tags:

access:  public

Type:   String


[ Top ]

static $url_segment =  'shop'

[line 52]

URL segment for this admin area.


Type:   String


[ Top ]

$resultsTableClassName =  'TableListField'

[line 87]

Class for displaying collection results.



Tags:

access:  protected

Type:   String


[ Top ]

$showImportForm =  false

[line 73]

Do not show an import form



Tags:

access:  public

Type:   Boolean


[ Top ]



Class Methods


method getParentPage [line 150]

DataObject|SiteTree|Boolean getParentPage( )

Retrieve a parent page for a particular record.



Tags:

return:  If the parent page cannot be found returns false
access:  public


[ Top ]

method init [line 101]

void init( )

Load some css and javascript for the admin area, remove some functionality from tinymce.



Tags:

access:  public


[ Top ]

method ListView [line 140]

void ListView( )

Perform a search for the default list view? TODO remove this, not sure it is required



Tags:

deprecated:  
access:  public


[ Top ]

method SearchClassSelector [line 130]

String SearchClassSelector( )

Return 'dropdown' or 'tabs' for template file.



Tags:

return:  Either 'dropdown' or 'tabs'
access:  public


[ Top ]


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