PHP Class PressBooks\Modules\Export\WordPress\Wxr

Inheritance: extends Pressbooks\Modules\Export\Export
Mostrar archivo Open project: pressbooks/pressbooks

Public Properties

Property Type Description
$timeout integer Used with wp_remote_get()
$url string Service URL

Public Methods

Method Description
__construct ( array $args )
convert ( ) : boolean Create $this->outputPath
logError ( $message, array $more_info = [] ) Add $this->url as additional log info, fallback to parent.
transform ( ) Procedure for "format/wxr" rewrite rule.
validate ( ) : boolean Check the sanity of $this->outputPath

Protected Methods

Method Description
queryWxr ( ) : boolean | string Query the access protected "format/wxr" URL, return the results.

Method Details

__construct() public method

public __construct ( array $args )
$args array

convert() public method

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

logError() public method

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

queryWxr() protected method

Query the access protected "format/wxr" URL, return the results.
protected queryWxr ( ) : boolean | string
return boolean | string

transform() public method

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

validate() public method

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

Property Details

$timeout public_oe property

Used with wp_remote_get()
public int $timeout
return integer

$url public_oe property

Service URL
public string $url
return string