ZenMagick 0.9.1


org.zenmagick.service.ZMMetaTags

Class ZMMetaTags

ZMObject
|
+--ZMMetaTags

public class ZMMetaTags
extends ZMObject

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:
mano
Version:
$Id: ZMMetaTags.php 803 2008-03-02 09:13:21Z dermanomann $

Constructor Summary

ZMMetaTags(string delimiter)

Create new instance.

Method Summary
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.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMMetaTags

public ZMMetaTags(string delimiter)

Create new instance.

Parameters:
delimiter - Optional keyword delimiter.

Method Detail

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.

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.

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.

instance

public static void instance()

Get instance. /


ZenMagick 0.9.1