ILIAS  release_4-4 Revision
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
 

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)

Definition at line 11 of file Id.php.

References $key.

11  {
12  $this->key = $key;
13  }

Member Function Documentation

◆ getDirective()

HTMLPurifier_ConfigSchema_Interchange_Id::getDirective ( )

Definition at line 27 of file Id.php.

27  {
28  return substr($this->key, strpos($this->key, ".") + 1);
29  }

◆ getRootNamespace()

HTMLPurifier_ConfigSchema_Interchange_Id::getRootNamespace ( )

Definition at line 23 of file Id.php.

23  {
24  return substr($this->key, 0, strpos($this->key, "."));
25  }

◆ make()

static HTMLPurifier_ConfigSchema_Interchange_Id::make (   $id)
static

Definition at line 31 of file Id.php.

Referenced by HTMLPurifier_ConfigSchema_InterchangeBuilder\id().

31  {
33  }
Represents a directive ID in the interchange format.
Definition: Id.php:6
+ Here is the caller graph for this function:

◆ toString()

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

Definition at line 19 of file Id.php.

References $key.

19  {
20  return $this->key;
21  }

Field Documentation

◆ $key

HTMLPurifier_ConfigSchema_Interchange_Id::$key

Definition at line 9 of file Id.php.

Referenced by __construct(), and toString().


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