PHP 클래스 PressBooks\Modules\Export\Odt\Odt

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

공개 프로퍼티들

프로퍼티 타입 설명
$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