PHP Класс Pressbooks\Modules\Export\Epub\Epub3

Наследование: extends Epub201
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$MathMLTags array MathML Tags
$dir $var string
$fetchedMediaCache array
$filext string
$javaScriptEvents array JavaScript Events
$suffix $var string
$supportedFontExtensions string Regular expression for supported fonts (used in /($supportedFontExtensions)/i')

Открытые методы

Метод Описание
convert ( ) : boolean Create $this->outputPath

Защищенные методы

Метод Описание
createNCX ( array $book_contents, array $metadata ) Create NCX file.
createOPF ( array $book_contents, array $metadata ) Create OPF File.
fetchAndSaveUniqueMedia ( string $url, string $fullpath ) : string | array Fetch a url with wp_remote_get(), save it to $fullpath with a unique name.
getProperties ( string $html_file ) : array Check for existence of properties attributes
isMathML ( string $html ) : boolean Check for existence of scripting MathML elements
isScripted ( string $html ) : boolean Check for existence of scripting elements
loadTemplate ( string $path, array $vars = [] ) : string Override load template function Switch path from /epub201 to /epub3 when possible.
scrapeAndKneadMedia ( DOMDocument $doc ) : DOMDocument Parse HTML snippet, download all found
tidy ( string $html ) : string Tidy HTML

Описание методов

convert() публичный Метод

Create $this->outputPath
public convert ( ) : boolean
Результат boolean

createNCX() защищенный Метод

Create NCX file.
protected createNCX ( array $book_contents, array $metadata )
$book_contents array
$metadata array

createOPF() защищенный Метод

Create OPF File.
protected createOPF ( array $book_contents, array $metadata )
$book_contents array
$metadata array

fetchAndSaveUniqueMedia() защищенный Метод

Will return an empty string if something went wrong.
protected fetchAndSaveUniqueMedia ( string $url, string $fullpath ) : string | array
$url string
$fullpath string
Результат string | array

getProperties() защищенный Метод

Check for existence of properties attributes
protected getProperties ( string $html_file ) : array
$html_file string
Результат array $properties

isMathML() защищенный Метод

Check for existence of scripting MathML elements
protected isMathML ( string $html ) : boolean
$html string
Результат boolean

isScripted() защищенный Метод

Check for existence of scripting elements
protected isScripted ( string $html ) : boolean
$html string
Результат boolean

loadTemplate() защищенный Метод

Override load template function Switch path from /epub201 to /epub3 when possible.
protected loadTemplate ( string $path, array $vars = [] ) : string
$path string
$vars array (optional)
Результат string

scrapeAndKneadMedia() защищенный Метод

Parse HTML snippet, download all found
protected scrapeAndKneadMedia ( DOMDocument $doc ) : DOMDocument
$doc DOMDocument
Результат DOMDocument

tidy() защищенный Метод

Tidy HTML
protected tidy ( string $html ) : string
$html string
Результат string

Описание свойств

$MathMLTags защищенное свойство

MathML Tags
protected array $MathMLTags
Результат array

$dir защищенное свойство

$var string
protected $dir

$fetchedMediaCache защищенное свойство

protected array $fetchedMediaCache
Результат array

$filext защищенное свойство

protected string $filext
Результат string

$javaScriptEvents защищенное свойство

JavaScript Events
protected array $javaScriptEvents
Результат array

$suffix защищенное свойство

$var string
protected $suffix

$supportedFontExtensions защищенное свойство

Regular expression for supported fonts (used in /($supportedFontExtensions)/i')
protected string $supportedFontExtensions
Результат string