diff options
author | Technosophos <[email protected]> | 2013-04-02 16:55:00 -0500 |
---|---|---|
committer | Technosophos <[email protected]> | 2013-04-02 16:55:00 -0500 |
commit | 6deb8a52b81be793810600160325df8c619641ae (patch) | |
tree | ad42a6688be00a413da24a90d8f6427436c8aa4f /src/HTML5/Data.php | |
parent | 8a5d21165697440ae80756d9b8acf56dd682d0fc (diff) |
Began conversion to namespaces.
Diffstat (limited to 'src/HTML5/Data.php')
-rw-r--r-- | src/HTML5/Data.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/HTML5/Data.php b/src/HTML5/Data.php index 497345f..a7c865c 100644 --- a/src/HTML5/Data.php +++ b/src/HTML5/Data.php @@ -1,9 +1,14 @@ <?php +namespace HTML5; + // warning: this file is encoded in UTF-8! -class HTML5_Data -{ + +/** + * Character data. + */ +class Data { // at some point this should be moved to a .ser file. Another // possible optimization is to give UTF-8 bytes, not Unicode @@ -61,6 +66,8 @@ class HTML5_Data } public static function getNamedCharacterReferences() { + // Danger Will Robinson: This will prevent the opcode cache from + // caching the entity references. if (!self::$namedCharacterReferences) { self::$namedCharacterReferences = unserialize( file_get_contents(dirname(__FILE__) . '/named-character-references.ser')); |