Cheetah
Id.php
Go to the documentation of this file.
1 <?php
2 
7 {
8 
12  public $key;
13 
17  public function __construct($key)
18  {
19  $this->key = $key;
20  }
21 
27  public function toString()
28  {
29  return $this->key;
30  }
31 
35  public function getRootNamespace()
36  {
37  return substr($this->key, 0, strpos($this->key, "."));
38  }
39 
43  public function getDirective()
44  {
45  return substr($this->key, strpos($this->key, ".") + 1);
46  }
47 
52  public static function make($id)
53  {
55  }
56 }
57 
58 // vim: et sw=4 sts=4
HTMLPurifier_ConfigSchema_Interchange_Id\toString
toString()
Definition: Id.php:27
php
HTMLPurifier_ConfigSchema_Interchange_Id
Definition: Id.php:7
HTMLPurifier_ConfigSchema_Interchange_Id\getDirective
getDirective()
Definition: Id.php:43
HTMLPurifier_ConfigSchema_Interchange_Id\make
static make($id)
Definition: Id.php:52
HTMLPurifier_ConfigSchema_Interchange_Id\$key
$key
Definition: Id.php:12
HTMLPurifier_ConfigSchema_Interchange_Id\__construct
__construct($key)
Definition: Id.php:17
HTMLPurifier_ConfigSchema_Interchange_Id\getRootNamespace
getRootNamespace()
Definition: Id.php:35