ZenMagick 0.9.8


org.zenmagick.store.mvc.tools.ZMToolboxMetaTags
\store\mvc\tools\ZMToolboxMetaTags.php at line 42

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
Version:
$Id: ZMToolboxMetaTags.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.toolbox.ZMToolboxTool
request_, toolbox_
Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMToolboxMetaTags(string delimiter)

Create new instance.

Method Summary
protected void

formatCrumbtrail()

string

getDescription(boolean echo)

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

string

getKeywords(boolean echo)

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

string

getTitle(boolean echo)

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.toolbox.ZMToolboxTool
getRequest, getToolbox, setRequest, setToolbox
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\mvc\tools\ZMToolboxMetaTags.php at line 55

ZMToolboxMetaTags

public ZMToolboxMetaTags(string delimiter)

Create new instance.

Parameters:
delimiter - Optional keyword delimiter.

Method Detail

\store\mvc\tools\ZMToolboxMetaTags.php at line 236

formatCrumbtrail

protected void formatCrumbtrail()

\store\mvc\tools\ZMToolboxMetaTags.php at line 161

getDescription

public string getDescription(boolean echo)

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

Parameters:
echo - If true, the meta tag value will be echo'ed as well as returned.
Returns:
The meta tag value.

\store\mvc\tools\ZMToolboxMetaTags.php at line 133

getKeywords

public string getKeywords(boolean echo)

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

Parameters:
echo - If true, the meta tag value will be echo'ed as well as returned.
Returns:
The meta tag value.

\store\mvc\tools\ZMToolboxMetaTags.php at line 74

getTitle

public string getTitle(boolean echo)

Returns/echo'es the page title.

Parameters:
echo - If true, the title will be echo'ed as well as returned.
Returns:
The page title.

\store\mvc\tools\ZMToolboxMetaTags.php at line 191

initMetaTags

protected void initMetaTags()

Set up all required internal structures.


\store\mvc\tools\ZMToolboxMetaTags.php at line 272

loadCategory

protected void loadCategory()

Load category info.


\store\mvc\tools\ZMToolboxMetaTags.php at line 220

loadCrumbtrail

protected void loadCrumbtrail()

Load category crumbtrail.


\store\mvc\tools\ZMToolboxMetaTags.php at line 257

loadProduct

protected void loadProduct()

Load product info.


\store\mvc\tools\ZMToolboxMetaTags.php at line 202

loadTopCategories

protected void loadTopCategories()

Load top categories.


ZenMagick 0.9.8