Class: xmlbuilder

Quellcode Position: Program_Root/base_xmlbuilder.php

Class xmlbuilder

Class Overview

class to generate XML output from the CMS (e.g.

a sitemap / treestructure of the image-browser etc.)

Implementiert in Program_Root/base_xmlbuilder.php [Zeile 22]



		
				Author(s):
		
  • Axel Knauf, knauf@papaya-cms.com axknauf@gmx.de
Information Tags:

Properties

Methods

Properties Summary
mixed   $fileman  

Method Summary
string   generateListForFolder()   Generates the list for a special folder in the form:
string   generateSiteList()   generates the sitemap in form of a XML-tree which can be used for other representation uses.
string   generateThumbFilename()   helper function which generates the filename where to find the thumbnail for the given image
void   generateXMLFolderList()   Generates a list of the currently available folder in this form:
void   init()   construct a new xmlbuilder

Properties
mixed   $fileman [Zeile 24]

Methods
generateListForFolder  [Zeile 79]

  string generateListForFolder( integer $i  )

Generates the list for a special folder in the form:

<?xml version="1.0" ?> <folder> <entry src="URL-zum-Bild" thumb="URL-zum-Thumbnail" name="anzuzeigender-Name" /> <entry src="URL-zum-Bild2" thumb="URL-zum-Thumbnail2" name="anzuzeigender-Name2" /> </folder>

Parameters:
integer   $i: 

API Tags:
Return:  XML


generateSiteList  [Zeile 104]

  string generateSiteList( )

generates the sitemap in form of a XML-tree which can be used for other representation uses.


API Tags:
Return:  XML


generateThumbFilename  [Zeile 55]

  string generateThumbFilename( string $file  )

helper function which generates the filename where to find the thumbnail for the given image

Parameters:
string   $file: 

API Tags:
Access:  public


generateXMLFolderList  [Zeile 34]

  void generateXMLFolderList( )

Generates a list of the currently available folder in this form:

<?xml version="1.0" ?> <folderlist> <folder id="1" prev="0" title="Name des Folders" /> <folder id="2" prev="1" title="Name des Folders" /> </folderlist>



init  [Zeile 121]

  void init( )

construct a new xmlbuilder