ZenMagick 0.9.10


zenmagick.store.sf.mvc.tools\ZMToolboxMetaTags
mvc\tools\ZMToolboxMetaTags.php at line 41

Class ZMToolboxMetaTags

ZMObject
└─ZMToolboxTool
└─ZMToolboxMetaTags

public class ZMToolboxMetaTags
extends ZMToolboxTool

Page meta tag data generator.

Based on zen-carts ../modules/meta_tags.php.

In contrast to the zen-cart implementation, however, keywords are build entirely by looking at category and product id in the request.

All other pages will get served default values base on the store configuration. Only exception is the homepage where the keywords will include the top categories.

Author:
DerManoMann

Fields inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool
request_, toolbox_
Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(string delimiter)

Create new instance.

protected void

formatCrumbtrail()

string

getDescription()

Returns/echo'es the description meta tag value value for the current request.

string

getKeywords()

Returns/echo'es the keywords meta tag value for the current request.

string

getTitle()

Returns/echo'es the page title.

protected void

initMetaTags()

Set up all required internal structures.

protected void

loadCategory()

Load category info.

protected void

loadCrumbtrail()

Load category crumbtrail.

protected void

loadProduct()

Load product info.

protected void

loadTopCategories()

Load top categories.

Methods inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool
__construct, getRequest, getToolbox, setRequest, setToolbox
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\tools\ZMToolboxMetaTags.php at line 55

__construct

public void __construct(string delimiter)

Create new instance.

Parameters:
delimiter - Optional keyword delimiter.

mvc\tools\ZMToolboxMetaTags.php at line 262

formatCrumbtrail

protected void formatCrumbtrail()

mvc\tools\ZMToolboxMetaTags.php at line 181

getDescription

public string getDescription()

Returns/echo'es the description meta tag value value for the current request.

Returns:
The meta tag value.

mvc\tools\ZMToolboxMetaTags.php at line 141

getKeywords

public string getKeywords()

Returns/echo'es the keywords meta tag value for the current request.

Returns:
The meta tag value.

mvc\tools\ZMToolboxMetaTags.php at line 73

getTitle

public string getTitle()

Returns/echo'es the page title.

Returns:
The page title.

mvc\tools\ZMToolboxMetaTags.php at line 217

initMetaTags

protected void initMetaTags()

Set up all required internal structures.


mvc\tools\ZMToolboxMetaTags.php at line 298

loadCategory

protected void loadCategory()

Load category info.


mvc\tools\ZMToolboxMetaTags.php at line 246

loadCrumbtrail

protected void loadCrumbtrail()

Load category crumbtrail.


mvc\tools\ZMToolboxMetaTags.php at line 283

loadProduct

protected void loadProduct()

Load product info.


mvc\tools\ZMToolboxMetaTags.php at line 228

loadTopCategories

protected void loadTopCategories()

Load top categories.


ZenMagick 0.9.10