-
-
Packages
Interfaces
Classes
Files
parser
sitemap
syndication
Class: SiteMapSection Source Location: /content/sitemap/site_map_section.class.php [line 37]
Class Overview
SiteMapElement
|
--SiteMapSection
This class represents a section of a site map.
Class Details
Class Methods
constructor SiteMapSection [line 43]
Builds a SiteMapSection object
Parameters:
method add [line 84]
void add(
SiteMapElement
$element)
Adds an elemement to the section
Parameters:
method export [line 105]
string export(
&$export_config, SiteMapExportConfig
$export_config)
Exports the section according to the given configuration. You will use the following template variables:
SECTION_NAME which contains the name of the section SECTION_URL which contains the URL of the link associated to the section DEPTH which contains the depth of the section in the site map tree (useful for CSS classes names) LINK_CODE which contains the code got by the associated link export C_SECTION, boolean meaning that it's a section (useful if you want to use a sigle template for the whole export configuration) A loop "element" containing evert element of the section (their code is available in the CODE variable of the loop) Tags:
Overridden in child classes as:
ModuleMap::export()
Exports the sitemap (according to a configuration of templates). In your template, you will be able to use the following variables: MODULE_NAME which contains the name of the module MODULE_DESCRIPTION which contains the description of the module MODULE_URL which contains the URL of the module root page DEPTH which is the depth of the module map in the sitemap (generally 1).
It might be usefull to apply different CSS styles to each level of depth. LINK_CODE which contains the code of the link associated to the module root exported with the same configuration. C_MODULE_MAP which is a boolean whose value is true, this will enable you to use a single template for the whole export configuration The loop "element" for which the variable CODE contains the code of each sub element of the module (for example categories)
Overrides
SiteMapElement::export() (Exports the element)
Parameters:
method get_link [line 52]
Returns the link associated to the section
Tags:
method set_depth [line 70]
void set_depth(
int
$depth)
Sets the depth of the element
Tags:
Overrides
SiteMapElement::set_depth() (Sets the depth of the element)
Parameters:
method set_link [line 61]
Sets the link associated to the section
Parameters:
Class Variables
[line 135]
SiteMapElement[]
$elements
=
array()
Tags:
-
-