Unified · Split
| @@ -1,6 +0,0 @@ | ||
| 1 | −#= require views/pages/base | |
| 2 | − | |
| 3 | −class app.views.PhpPage extends app.views.BasePage | |
| 4 | − prepare: -> | |
| 5 | − @highlightCode @findAllByClass('phpcode'), 'php' | |
| 6 | − return | |
| @@ -23,6 +23,7 @@ app.views.NodePage = · 22 unmodified lines | ||
| 23 | 23 | app.views.PerlPage = |
| 24 | 24 | app.views.PhalconPage = |
| 25 | 25 | app.views.PhaserPage = |
| 26 | +app.views.PhpPage = | |
| 26 | 27 | app.views.PostgresPage = |
| 27 | 28 | app.views.RamdaPage = |
| 28 | 29 | app.views.ReactPage = |
| @@ -24,6 +24,7 @@ module Docs · 23 unmodified lines | ||
| 24 | 24 | node.name = 'pre' |
| 25 | 25 | node.inner_html = node.inner_html.gsub(br, "\n") |
| 26 | 26 | node.content = node.content |
| 27 | + node['data-language'] = 'php' | |
| 27 | 28 | end |
| 28 | 29 | |
| 29 | 30 | css('> h2:first-child.title').each do |node| |
| @@ -94,7 +94,7 @@ module Docs · 93 unmodified lines | ||
| 94 | 94 | end |
| 95 | 95 | |
| 96 | 96 | def get_type |
| 97 | − return 'Language Reference' if subpath.start_with?('language.') | |
| 97 | + return 'Language Reference' if subpath.start_with?('language.') || subpath.start_with?('functions.') | |
| 98 | 98 | return 'PCRE Reference' if subpath.start_with?('regexp.') |
| 99 | 99 | |
| 100 | 100 | type = at_css('.up').content.strip |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | |
| 5 | 5 | self.name = 'PHP' |
| 6 | 6 | self.type = 'php' |
| 7 | − self.release = 'up to 7.0.5' | |
| 7 | + self.release = 'up to 7.0.7' | |
| 8 | 8 | self.base_url = 'https://secure.php.net/manual/en/' |
| 9 | 9 | self.root_path = 'index.html' |
| 10 | 10 | self.initial_paths = %w( |
| @@ -36,7 +36,7 @@ module Docs · 25 unmodified lines | ||
| 36 | 36 | options[:only_patterns] = [ |
| 37 | 37 | /\Alanguage\./, |
| 38 | 38 | /\Aclass\./, |
| 39 | − /\Afunction\./, | |
| 39 | + /\Afunctions?\./, | |
| 40 | 40 | /\Acontrol-structures/, |
| 41 | 41 | /\Aregexp\./, |
| 42 | 42 | /\Areserved\.exceptions/, |