75 "Calendars" =>
"name",
76 "Document Libraries" =>
"name",
77 "Component Pages" =>
"page_title",
79 "Image Galleries" =>
"gallery_name",
80 "Link Libraries" =>
"name",
81 "Pages" =>
"page_title",
82 "Video Galleries" =>
"gallery_name",
90 $this->map = IndexedQuery::create(
SiteMap,
"",
"url")->execute();
92 if(!is_array($this->map))
100 trace(
"SiteMapManager processing method updateSiteMap", 3);
130 if(count($children) > 0)
132 foreach($children as $child)
150 $menuItems = GroupedQuery::create(
MenuItem,
"WHERE menu_id IN (SELECT menu_id FROM menu WHERE identifier='global')",
"url")
157 if(array_key_exists(
$url, $indexedMap))
161 if(!is_array($urlItems)) $urlItems = array($urlItems);
173 $siteMapPage->filter =
new InclusionFilter(
"parent_url",
"published");
190 if(array_search(
$url, $this->currentContent) === FALSE)
215 $title = prettify($item->identifier);
235 $contentByIdentifier = reindexList(
$content,
"identifier");
242 if (!$item->identifier || !array_key_exists($item->identifier, $contentByIdentifier))
continue;
244 trace(get_class($item).
" - ".$item->identifier, 3);
246 $content = $contentByIdentifier[$item->identifier];
247 $url = $this->
getLink($section, $item->identifier);
251 if(array_key_exists(
$url, $this->map))
257 $siteMapPage->filter =
new InclusionFilter(
"page_title");
294 $url =
"/$identifier";
296 $url =
"/{$section->section}/$identifier";
305 $mgr->upgrade($version);
324 $xml .=
"\n<SiteMapMap>";
326 $xml .=
"\n</SiteMapMap>";
330 function import($doc,
$tx)
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static using()
Import the datamodels, views and manifest for the specified component(s).
Section DataItem, defining the data model for sections within a site.
static serialize($class, $constraint="")
Serializes the specified DataItems to XML.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
static unserialize($class, $doc, $tx, $save=true)
Instantiates DataItems from the supplied XML document and stores them in the database.
static formatURL($siteMapPage)
Scans the application home directory and PHP include path and builds the component and administration...
saveNewContentToSiteMap()
Gather all CMS content and if an item is not already in the site map, add it.
deleteSiteMapPage($siteMapPage)
categorizeItemTypes($itemsByType)
__construct()
Creates a new ComponentManager object.
removeOldContentFromSiteMap()
Check if the SiteMap contains records of content that has been removed from the site.
getLink($section, $identifier)
static upgradeComponent($version)
static registerSerializationHandler()
setHierarchyFromMenuItems()
Default the hierarchy of pages to the global menu's hierarchy.
getTitle($content, $type, $item)
Given an instance of a CMS content item, get the title.
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content