PHP Class Pressbooks\Modules\Export\InDesign\Icml

Inheritance: extends Pressbooks\Modules\Export\Export
Show file Open project: pressbooks/pressbooks Class Usage Examples

Public Methods

Method Description
__construct ( array $args )
convert ( ) : boolean Create $this->outputPath
hasDependencies ( ) : boolean Dependency check.
logError ( $message, array $more_info = [] ) Add $this->outputPath as additional log info, fallback to parent.
validate ( ) : boolean Check the sanity of $this->outputPath

Protected Methods

Method Description
bookHtmlError ( $book_html ) : string Log problems with $book_html that probably caused transformXML() to fail.
preProcessBookContents ( $book_contents ) : mixed
preProcessPostContent ( string $content ) : string
tidy ( string $html ) : string Tidy HTML

Method Details

__construct() public method

public __construct ( array $args )
$args array

bookHtmlError() protected method

Log problems with $book_html that probably caused transformXML() to fail.
protected bookHtmlError ( $book_html ) : string
$book_html
return string

convert() public method

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

hasDependencies() static public method

Dependency check.
static public hasDependencies ( ) : boolean
return boolean

logError() public method

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

preProcessBookContents() protected method

protected preProcessBookContents ( $book_contents ) : mixed
$book_contents
return mixed

preProcessPostContent() protected method

protected preProcessPostContent ( string $content ) : string
$content string
return string

tidy() protected method

Tidy HTML
protected tidy ( string $html ) : string
$html string
return string

validate() public method

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