|
|
|
XMLMENU
[PHP5]
DOMDocument and XSLTProcessor enabled are best, but not mandatory.
Called this way :
$menu = xmlmenu::getInstance (optional (string) sVersion, optional (string) sEncoding);
see index.php for more information, and comments in classes.
DESCRIPTION
This package is meant to :
- generate an XML menu
- generate an HTML menu using the generated XML
xmlmenu::getInstance () determines which extensions are or are not enabled, and instanciates the correct class.
First step :
- generate the XML. Can be done with the class, or manually (the xml files are stored in 'xml/'.
They look like :
<menu><node>text1<node>text1_2</node></node><node>text2</node></menu>
3 methods :
xmlmenu::defineNode () to define a new node
xmlmenu::defineAttributes () to define attributes for a given node (can be done directly with xmlmenu::defineNode())
xmlmenu::defineLink () to define the href link of the node
Notice : the node are attributed an id via xml:id.
- see the generated xml via echo $menu (xmlmenu::__toString() method)
- save the xml file if needed via xmlmenu::xmlToFile()
- load an xml from a file via xmlmenu::fileToXml()
- apply an XSL to the menu to generate an HTML menu via xmlmenu::toHTML()
The xsl needs to be created first, of course. I have created 2, they are stored in 'xsl/'.
- save an html menu via xmlmenu::htmlToFile() |
|
| RSS parser.
Parses RSS into an array. Quick and nasty but does the job.
No checking is done for correct Tags, only correct XML.
PHP4 needed to display result (uses print_r). Categories : PHP, XML, PHP Classes, Rich Site Summary (RSS) | | | XML To Array Categories : PHP, PHP Classes, XML, Arrays | | | A very basic and fast XML parser Categories : PHP, PHP Classes, XML | | | Gonx URLs - This class is meant to generate URLs for accessing application dynamically generated pages based on parameters passed in the URL.
Categories : PHP, PHP Classes, Navigation, URLs | | | Directory Listing To XML : Outputs XML File of a Given Directory Listing Categories : PHP, PHP Classes, XML, Directories | | | Freshmeat.net XML-RPC - This class is meant to query Freshmeat for information about registered projects. Categories : PHP, PHP Classes, XML, Web Services | | | DBXML- A Class to backup databases in XML Format using web interface Categories : PHP, PHP Classes, Databases, MySQL, XML | | | TAB_STRUCT Class: Is supporting Class for the DBXML Class Categories : PHP, PHP Classes, MySQL, XML, Databases | | | logger class (PHP5 +) Categories : PHP, PHP Classes, Log Files, XML | | | XML easy parser Categories : PHP, XML, PHP Classes | | | [PHP5] PHP Debugger and Helper Categories : PHP, PHP Classes, Errors and Logging, Debugging, XML | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | XPath for PHP without the DOM XML extension Categories : DOM XML, XML, XSLT, PHP Classes, PHP | | | Powerful php/mysql Pagination for up to 6 URL Params Categories : PHP, PHP Classes, Databases, MySQL, Navigation | | | file class , uploade file , download file already uploaded on another website Categories : PHP, PHP Classes, Filesystem, Web Services | |
|
|
|