PHP Класс PressBooks\Modules\Export\Odt\Odt

Наследование: extends Pressbooks\Modules\Export\Export
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$compressImages boolean Compress images?
$logfile string Fullpath to log file used by Saxon.
$timeout integer Used with wp_remote_get()
$url string Service URL

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

Метод Описание
__construct ( array $args )
convert ( ) : boolean Create $this->outputPath
deleteDirectory ( $dirpath ) * Recursive Directory Deletion for media folder
hasDependencies ( ) : boolean Dependency check.
logError ( $message, array $more_info = [] ) Add $this->url as additional log info, fallback to parent.
validate ( ) : boolean Check the sanity of $this->outputPath

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

Метод Описание
fetchAndSaveUniqueImage ( $url, $fullpath ) : string Fetch an image with wp_remote_get(), save it to $fullpath with a unique name.
isOdt ( string $file ) : boolean Verify if body is actual ODT
queryXhtml ( ) : boolean | string Query the access protected "format/xhtml" URL, return the results.

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

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

public __construct ( array $args )
$args array

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

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

deleteDirectory() публичный статический Метод

* Recursive Directory Deletion for media folder
public static deleteDirectory ( $dirpath )

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

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

hasDependencies() статический публичный Метод

Dependency check.
static public hasDependencies ( ) : boolean
Результат boolean

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

Verify if body is actual ODT
protected isOdt ( string $file ) : boolean
$file string
Результат boolean

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

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

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

Query the access protected "format/xhtml" URL, return the results.
protected queryXhtml ( ) : boolean | string
Результат boolean | string

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

Check the sanity of $this->outputPath
public validate ( ) : boolean
Результат boolean

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

$compressImages публичное свойство

Compress images?
public bool $compressImages
Результат boolean

$logfile публичное свойство

Fullpath to log file used by Saxon.
public string $logfile
Результат string

$timeout публичное свойство

Used with wp_remote_get()
public int $timeout
Результат integer

$url публичное свойство

Service URL
public string $url
Результат string