Property | Type | Description | |
---|---|---|---|
$errorsEmail | array | Email addresses to send log errors. |
Property | Type | Description | |
---|---|---|---|
$outputPath | Location where data is held until ready to be displayed. | ||
$reservedIds | array | Reserved html IDs. |
Method | Description | |
---|---|---|
convert ( ) : boolean | Mandatory convert method, create $this->outputPath | |
createTmpFile ( ) : string | Create a temporary file that automatically gets deleted on __sleep() | |
fixAnnoyingCharacters ( string $html ) : string | Fix annoying characters that the user probably didn't do on purpose | |
formSubmit ( ) | Catch form submissions | |
getExportFolder ( ) : string | Get the fullpath to the Exports folder. | |
getExportScriptPath ( string $type ) : string | Return the fullpath to an export module's Javascript file. | |
getExportStylePath ( string $type ) : string | Return the fullpath to an export module's style file. | |
getOutputPath ( ) : string | Return $this->outputPath | |
injectHouseStyles ( string $css ) : string | Inject house styles into CSS | |
isFormSubmission ( ) : boolean | Check if a user submitted something to admin.php?page=pb_export | |
isParsingSubsections ( ) : boolean | Is section parsing enabled? | |
logError ( string $message, array $more_info = [] ) | Log errors using wp_mail() and error_log(), include useful WordPress info. | |
mimeType ( string $file ) : string | Detect MIME Content-type for a file. | |
nonce ( string $timestamp ) : string | Create a NONCE using WordPress' NONCE_KEY and a Unix timestamp. | |
setLocale ( string $lang ) : string | Hook for add_filter('locale ', . | |
timestampedFileName ( string $extension, boolean $fullpath = true ) : string | Create a timestamped filename. | |
validate ( ) : boolean | Mandatory validate method, check the sanity of $this->outputPath | |
verifyNonce ( string $timestamp, string $md5 ) : boolean | Verify that a NONCE was created within a range of 5 minutes and is valid. |
Method | Description | |
---|---|---|
createTmpDir ( ) : string | Create a temporary directory, no trailing slash! | |
doCopyrightLicense ( array $metadata, string $title = '', integer $id = null, string $section_author = '' ) : string | Will create an html blob of copyright information, returns empty string if user doesn't want it displayed | |
downloadExportFile ( string $filename ) | Download an .htaccess protected file from the exports directory. | |
loadTemplate ( string $path, array $vars = [] ) : string | Simple template system. | |
obliterateDir ( string $dirname, boolean $only_empty = false ) : boolean | Recursively delete all contents of a directory. | |
preProcessPostName ( string $id ) : string | Check a post_name against a list of reserved IDs, sanitize for use as an XML ID. | |
transformXML ( string $content, string $path_to_xsl ) : string | Convert an XML string via XSLT file. |
protected createTmpDir ( ) : string | ||
return | string |
public createTmpFile ( ) : string | ||
return | string | fullpath |
protected static downloadExportFile ( string $filename ) | ||
$filename | string | sanitized $_GET['download_export_file'] |
public fixAnnoyingCharacters ( string $html ) : string | ||
$html | string | |
return | string |
static public getExportFolder ( ) : string | ||
return | string | fullpath |
public getExportScriptPath ( string $type ) : string | ||
$type | string | |
return | string |
public getExportStylePath ( string $type ) : string | ||
$type | string | |
return | string |
public getOutputPath ( ) : string | ||
return | string |
static public injectHouseStyles ( string $css ) : string | ||
$css | string | |
return | string |
static public isFormSubmission ( ) : boolean | ||
return | boolean |
static public isParsingSubsections ( ) : boolean | ||
return | boolean |
protected preProcessPostName ( string $id ) : string | ||
$id | string | |
return | string |
public array $errorsEmail | ||
return | array |
protected $outputPath |