HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/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 $key;
00010 
00011     public function __construct($key) {
00012         $this->key = $key;
00013     }
00014 
00019     public function toString() {
00020         return $this->key;
00021     }
00022 
00023     public function getRootNamespace() {
00024         return substr($this->key, 0, strpos($this->key, "."));
00025     }
00026 
00027     public function getDirective() {
00028         return substr($this->key, strpos($this->key, ".") + 1);
00029     }
00030 
00031     public static function make($id) {
00032         return new HTMLPurifier_ConfigSchema_Interchange_Id($id);
00033     }
00034 
00035 }
00036 
00037 // vim: et sw=4 sts=4