ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HTMLPurifier_ConfigSchema_Interchange_Id Class Reference

Represents a directive ID in the interchange format. More...

+ Collaboration diagram for HTMLPurifier_ConfigSchema_Interchange_Id:

Public Member Functions

 __construct ($key)
 
 toString ()
 
 getRootNamespace ()
 
 getDirective ()
 

Static Public Member Functions

static make ($id)
 

Data Fields

 $key
 @type string More...
 

Detailed Description

Represents a directive ID in the interchange format.

Definition at line 6 of file Id.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_ConfigSchema_Interchange_Id::__construct (   $key)
Parameters
string$key

Definition at line 17 of file Id.php.

18 {
19 $this->key = $key;
20 }

References $key.

Member Function Documentation

◆ getDirective()

HTMLPurifier_ConfigSchema_Interchange_Id::getDirective ( )
Returns
string

Definition at line 43 of file Id.php.

44 {
45 return substr($this->key, strpos($this->key, ".") + 1);
46 }

◆ getRootNamespace()

HTMLPurifier_ConfigSchema_Interchange_Id::getRootNamespace ( )
Returns
string

Definition at line 35 of file Id.php.

36 {
37 return substr($this->key, 0, strpos($this->key, "."));
38 }

◆ make()

static HTMLPurifier_ConfigSchema_Interchange_Id::make (   $id)
static
Parameters
string$id
Returns
HTMLPurifier_ConfigSchema_Interchange_Id

Definition at line 52 of file Id.php.

53 {
55 }
Represents a directive ID in the interchange format.
Definition: Id.php:7

Referenced by HTMLPurifier_ConfigSchema_InterchangeBuilder\id().

+ Here is the caller graph for this function:

◆ toString()

HTMLPurifier_ConfigSchema_Interchange_Id::toString ( )
Returns
string
Warning
This is NOT magic, to ensure that people don't abuse SPL and cause problems for PHP 5.0 support.

Definition at line 27 of file Id.php.

28 {
29 return $this->key;
30 }

References $key.

Field Documentation

◆ $key

HTMLPurifier_ConfigSchema_Interchange_Id::$key

@type string

Definition at line 12 of file Id.php.

Referenced by __construct(), and toString().


The documentation for this class was generated from the following file: