library/HTMLPurifier/ConfigSchema/Interchange/Id.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class HTMLPurifier_ConfigSchema_Interchange_Id
00007 {
00008     
00009     public $namespace, $directive;
00010     
00011     public function __construct($namespace, $directive) {
00012         $this->namespace = $namespace;
00013         $this->directive = $directive;
00014     }
00015     
00020     public function toString() {
00021         return $this->namespace . '.' . $this->directive;
00022     }
00023     
00024     public static function make($id) {
00025         list($namespace, $directive) = explode('.', $id);
00026         return new HTMLPurifier_ConfigSchema_Interchange_Id($namespace, $directive);
00027     }
00028     
00029 }

Generated on Thu Jun 19 18:47:26 2008 for HTMLPurifier by  doxygen 1.5.3