\CatalogueController
Top level controller that all catalogue controllers should extend.
There are some methods that have to be taken from ContentController
to allow the catalogue module to operate with just the core
framework, or with the CMS.
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class CatalogueController
extends Controller
{
- // members
- protected $dataRecord;
- // methods
- 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
- Controller
Tasks
Line | Task |
---|---|
66+ | Move <title> tag in separate getter for easier customization and more obvious usage |
Members
protected
- $dataRecord
Methods
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()