Login   Register  
PHP Classes
elePHPant
Icontem

File: class/xmlmenuhasboth.cls.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Johan Barbier  >  XML to HTML menu  >  class/xmlmenuhasboth.cls.php  
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
 

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$sEncodingnull) {
        
$this -> doc = new DOMDocument ($sVersion$sEncoding);
        
$root $this -> doc -> createElement ('menu');
        
$this -> root $this -> doc -> appendChild ($root);
        
parent::__construct ($sVersion$sEncoding);
    }
}
?>