\CatalogueCategoryController
Controller used to render pages in the catalogue (either categories or pages)
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class CatalogueCategoryController
extends CatalogueController
{
- // Inherited members from CatalogueController
- protected $dataRecord;
- // methods
- public PaginatedList PaginatedProducts()
- public PaginatedList PaginatedAllProducts()
- public void __construct()
- public void index()
- public SS_List CategoryMenu()
- // Inherited methods from CatalogueController
- public void data()
- public void getDataRecord()
- public void setDataRecord()
- public void init()
- public string Link()
- public string MetaTags()
- public void results()
- public void SiteConfig()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
66+ | Move <title> tag in separate getter for easier customization and more obvious usage |
Members
protected
- $dataRecord
Methods
public
- __construct() — The Controller will take the URLSegment parameter from the URL and use that to look up a record.
- CategoryMenu() — Returns a fixed navigation menu of the given level.
- PaginatedAllProducts() — Get a paginated list of all products at this level and below
- PaginatedProducts() — Get a paginated list of products contained in this category
- index() — Get a list of templates to call and return a default render with
Inherited from CatalogueController
public
- Link() — Return the link to this controller, but force the expanded link to be returned so that form methods and similar will function properly.
- MetaTags() — Return the title, description, keywords and language metatags.
- SiteConfig()
- data() — Returns the associated database record
- getDataRecord()
- init()
- results() — Process and render search results. This has been hacked a bit to load products into the list (if they exists). Will need to come up with a more elegant solution to dealing with complex searches of objects though.
- setDataRecord()