4 * Represents a directive ID in the interchange format.
6 class HTMLPurifier_ConfigSchema_Interchange_Id
17 public function __construct($key)
24 * @warning This is NOT magic, to ensure that people don't abuse SPL and
25 * cause problems for PHP 5.0 support.
27 public function toString()
35 public function getRootNamespace()
37 return substr($this->key, 0, strpos($this->key, "."));
43 public function getDirective()
45 return substr($this->key, strpos($this->key, ".") + 1);
50 * @return HTMLPurifier_ConfigSchema_Interchange_Id
52 public static function make($id)
54 return new HTMLPurifier_ConfigSchema_Interchange_Id($id);