@@ -25,6 +25,7 @@ class EntriesFilter < Docs::EntriesFilter
2525 'tidy' => 'Tidy' ,
2626 'Worker' => 'pthreads' ,
2727 'XsltProcessor' => 'XSLT' ,
28+ 'Yar' => 'Yar' ,
2829 'ZipArchive' => 'Zip' }
2930
3031 %w( APC Directory DOM Event Gearman Gmagick Imagick mysqli OAuth PDO Reflection
@@ -46,13 +47,16 @@ class EntriesFilter < Docs::EntriesFilter
4647 end
4748
4849 REPLACE_TYPES = {
50+ 'Error' => 'Errors' ,
4951 'Exceptions' => 'SPL/Exceptions' ,
52+ 'finfo' => 'File System' ,
5053 'GD and Image' => 'Image' ,
5154 'Gmagick' => 'Image/GraphicsMagick' ,
5255 'Imagick' => 'Image/ImageMagick' ,
5356 'Interfaces' => 'SPL/Interfaces' ,
5457 'Iterators' => 'SPL/Iterators' ,
5558 'mysqli' => 'Database/MySQL' ,
59+ 'PCRE Patterns' => 'PCRE Reference' ,
5660 'PostgreSQL' => 'Database/PostgreSQL' ,
5761 'Session' => 'Sessions' ,
5862 'Session PgSQL' => 'Database/PostgreSQL' ,
@@ -62,7 +66,7 @@ class EntriesFilter < Docs::EntriesFilter
6266 'Yaml' => 'YAML' }
6367
6468 TYPE_GROUPS = {
65- 'Classes and Functions' => [ 'Classes/Object' , 'Function handling' , 'Predefined Interfaces and Classes' , 'runkit' ] ,
69+ 'Classes and Functions' => [ 'Classes/Object' , 'Function handling' , 'Predefined Interfaces and Classes' , 'runkit' , 'Throwable' ] ,
6670 'Encoding' => [ 'Gettext' , 'iconv' , 'Multibyte String' ] ,
6771 'Compression' => [ 'Bzip2' , 'Zip' , 'Zlib' ] ,
6872 'Cryptography' => [ 'Hash' , 'Mcrypt' , 'OpenSSL' , 'Password Hashing' ] ,
@@ -90,6 +94,9 @@ def get_name
9094 end
9195
9296 def get_type
97+ return 'Language Reference' if subpath . start_with? ( 'language.' )
98+ return 'PCRE Reference' if subpath . start_with? ( 'regexp.' )
99+
93100 type = at_css ( '.up' ) . content . strip
94101 type = 'SPL/Iterators' if type . end_with? 'Iterator'
95102 type . remove! ' Functions'
@@ -108,7 +115,7 @@ def get_type
108115 end
109116
110117 def include_default_entry?
111- !initial_page? && doc . at_css ( '.reference' , '.refentry' , '.sect1' )
118+ !initial_page? && doc . at_css ( '.reference' , '.refentry' , '.sect1' , '.simpara' , '.para' )
112119 end
113120 end
114121 end
0 commit comments