PHP 클래스 PressBooks\Modules\Export\Xhtml\Xhtml11

상속: extends Pressbooks\Modules\Export\Export
파일 보기 프로젝트 열기: pressbooks/pressbooks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timeout integer Used with wp_remote_get()
$url string Service URL

보호된 프로퍼티들

프로퍼티 타입 설명
$endnotes array Use when overriding the footnote shortcode.
$frontMatterPos integer Keep track of where we are using this variable.
$hasIntroduction boolean Sometimes the user will omit an introduction so we must inject the style in either the first part or the first chapter ourselves.
$lang string Main language of document, two letter code

공개 메소드들

메소드 설명
__construct ( array $args )
convert ( ) : boolean Create $this->outputPath
doEndnotes ( $id ) : string Style endnotes.
endnoteShortcode ( array $atts, null $content = null ) : string Convert footnotes to endnotes by moving them to the end of the_content()
footnoteShortcode ( $atts, null $content = null ) : string Wrap footnotes for Prince compatibility
hasDependencies ( ) : boolean Dependency check.
logError ( $message, array $more_info = [] ) Add $this->url as additional log info, fallback to parent.
transform ( ) Procedure for "format/xhtml" rewrite rule.
validate ( ) : boolean Check the sanity of $this->outputPath

보호된 메소드들

메소드 설명
atLeastOneExport ( array $chapters ) : boolean Does array of chapters have at least one export? Recursive.
createPromo ( array $book_contents, array $metadata )
echoBackMatter ( array $book_contents, array $metadata )
echoBeforeTitle ( array $book_contents, array $metadata )
echoCopyright ( array $book_contents, array $metadata )
echoCover ( array $book_contents, array $metadata )
echoDedicationAndEpigraph ( array $book_contents, array $metadata )
echoDocType ( array $book_contents, array $metadata )
echoFrontMatter ( array $book_contents, array $metadata )
echoHalfTitle ( array $book_contents, array $metadata )
echoMetaData ( array $book_contents, array $metadata )
echoPartsAndChapters ( array $book_contents, array $metadata )
echoTitle ( array $book_contents, array $metadata )
echoToc ( array $book_contents, array $metadata )
fixInternalLinks ( string $content ) : string
preProcessBookContents ( $book_contents ) : mixed
preProcessPostContent ( string $content ) : string
queryXhtml ( ) : boolean | string Query the access protected "format/xhtml" URL, return the results.
switchLaTexFormat ( string $content ) Replace links to QuickLaTex PNG files with links to the corresponding SVG files.
tidy ( string $html ) : string Tidy HTML

메소드 상세

__construct() 공개 메소드

public __construct ( array $args )
$args array

atLeastOneExport() 보호된 메소드

Does array of chapters have at least one export? Recursive.
protected atLeastOneExport ( array $chapters ) : boolean
$chapters array
리턴 boolean

convert() 공개 메소드

Create $this->outputPath
public convert ( ) : boolean
리턴 boolean

createPromo() 보호된 메소드

protected createPromo ( array $book_contents, array $metadata )
$book_contents array
$metadata array

doEndnotes() 공개 메소드

Style endnotes.
또한 보기: endnoteShortcode
public doEndnotes ( $id ) : string
$id
리턴 string

echoBackMatter() 보호된 메소드

protected echoBackMatter ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoBeforeTitle() 보호된 메소드

protected echoBeforeTitle ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoCopyright() 보호된 메소드

protected echoCopyright ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoCover() 보호된 메소드

protected echoCover ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoDedicationAndEpigraph() 보호된 메소드

protected echoDedicationAndEpigraph ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoDocType() 보호된 메소드

protected echoDocType ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoFrontMatter() 보호된 메소드

protected echoFrontMatter ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoHalfTitle() 보호된 메소드

protected echoHalfTitle ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoMetaData() 보호된 메소드

protected echoMetaData ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoPartsAndChapters() 보호된 메소드

protected echoPartsAndChapters ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoTitle() 보호된 메소드

protected echoTitle ( array $book_contents, array $metadata )
$book_contents array
$metadata array

echoToc() 보호된 메소드

protected echoToc ( array $book_contents, array $metadata )
$book_contents array
$metadata array

endnoteShortcode() 공개 메소드

Convert footnotes to endnotes by moving them to the end of the_content()
또한 보기: doEndnotes
public endnoteShortcode ( array $atts, null $content = null ) : string
$atts array
$content null
리턴 string

footnoteShortcode() 공개 메소드

Wrap footnotes for Prince compatibility
또한 보기: http://www.princexml.com/doc/8.1/footnotes/
public footnoteShortcode ( $atts, null $content = null ) : string
$atts
$content null
리턴 string

hasDependencies() 정적인 공개 메소드

Dependency check.
static public hasDependencies ( ) : boolean
리턴 boolean

logError() 공개 메소드

Add $this->url as additional log info, fallback to parent.
public logError ( $message, array $more_info = [] )
$message
$more_info array (unused, overridden)

preProcessBookContents() 보호된 메소드

protected preProcessBookContents ( $book_contents ) : mixed
$book_contents
리턴 mixed

preProcessPostContent() 보호된 메소드

protected preProcessPostContent ( string $content ) : string
$content string
리턴 string

queryXhtml() 보호된 메소드

Query the access protected "format/xhtml" URL, return the results.
protected queryXhtml ( ) : boolean | string
리턴 boolean | string

switchLaTexFormat() 보호된 메소드

Replace links to QuickLaTex PNG files with links to the corresponding SVG files.
protected switchLaTexFormat ( string $content )
$content string The section content.

tidy() 보호된 메소드

Tidy HTML
protected tidy ( string $html ) : string
$html string
리턴 string

transform() 공개 메소드

Procedure for "format/xhtml" rewrite rule.
public transform ( )

validate() 공개 메소드

Check the sanity of $this->outputPath
public validate ( ) : boolean
리턴 boolean

프로퍼티 상세

$endnotes 보호되어 있는 프로퍼티

Use when overriding the footnote shortcode.
protected array $endnotes
리턴 array

$frontMatterPos 보호되어 있는 프로퍼티

Keep track of where we are using this variable.
protected int $frontMatterPos
리턴 integer

$hasIntroduction 보호되어 있는 프로퍼티

Sometimes the user will omit an introduction so we must inject the style in either the first part or the first chapter ourselves.
protected bool $hasIntroduction
리턴 boolean

$lang 보호되어 있는 프로퍼티

Main language of document, two letter code
protected string $lang
리턴 string

$timeout 공개적으로 프로퍼티

Used with wp_remote_get()
public int $timeout
리턴 integer

$url 공개적으로 프로퍼티

Service URL
public string $url
리턴 string