PHP Class PressBooks\Modules\Export\WordPress\Wxr

Inheritance: extends Pressbooks\Modules\Export\Export
Afficher le fichier Open project: pressbooks/pressbooks

Méthodes publiques

Свойство Type Description
$timeout integer Used with wp_remote_get()
$url string Service URL

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

__construct() public méthode

public __construct ( array $args )
$args array

convert() public méthode

Create $this->outputPath
public convert ( ) : boolean
Résultat boolean

logError() public méthode

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

queryWxr() protected méthode

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

transform() public méthode

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

validate() public méthode

Check the sanity of $this->outputPath
public validate ( ) : boolean
Résultat boolean

Property Details

$timeout public_oe property

Used with wp_remote_get()
public int $timeout
Résultat integer

$url public_oe property

Service URL
public string $url
Résultat string