PHP Classes

File: class/xmlmenuhasboth.cls.php

Recommend this page to a friend!
  Classes of Johan Barbier   XML to HTML menu   class/xmlmenuhasboth.cls.php   Download  
File: class/xmlmenuhasboth.cls.php
Role: Class source
Content type: text/plain
Description: xmlmenu class when DOMDocument and XSLTProcessor are enabled
Class: XML to HTML menu
Generate menus in XML and HTML
Author: By
Last change: Modification : added abstract class
Date: 17 years ago
Size: 626 bytes
 

Contents

Class file image Download
<?php
/**
* class xmlmenuhasboth
* DOMDocument and XSLTProcessor are enabled
*
* @author: johan <barbier_johan@hotmail.com>
*/
class xmlmenuhasboth extends abstractxmlmenu {

   
/**
    * public function __construct
    * constructor
    * @Param (string) sVersion : xml version
    * @Param (string) sEncoding : xml encoding
    */

   
public function __construct ($sVersion = null, $sEncoding= null) {
       
$this -> doc = new DOMDocument ($sVersion, $sEncoding);
       
$root = $this -> doc -> createElement ('menu');
       
$this -> root = $this -> doc -> appendChild ($root);
       
parent::__construct ($sVersion, $sEncoding);
    }
}
?>