\CatalogueProductController
Controller used to render pages in the catalogue (either categories or pages)
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class CatalogueProductController
extends CatalogueController
{
- // members
- private static array $allowed_actions = ;
- // Inherited members from CatalogueController
- protected $dataRecord;
- // methods
- public string Link()
- public void __construct()
- public Image getImageForProduct()
- public void index()
- public void iid()
- public Form Form()
- // 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
private
- $allowed_actions
protected
- $dataRecord
Methods
public
- __construct() — The Controller will take the URLSegment parameter from the URL and use that to look up a record.
- Form() — Create a form to associate with this product, by default it will be empty, but is intended to be easily extendable to allow "add item to cart", or "get a quote" functionality.
- Link() — Return the link to this controller, but force the expanded link to be returned so that form methods and similar will function properly.
- getImageForProduct() — The productimage action is used to determine the default image that will appear related to a product
- iid() — Get a list of templates to call and return a default render with
- 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()