PressBooks\Modules\Export\WordPress\Wxr::convert PHP Метод

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

Create $this->outputPath
public convert ( ) : boolean
Результат boolean
    function convert()
    {
        // Get WXR
        $output = $this->queryWxr();
        if (!$output) {
            return false;
        }
        // Save WXR as file in exports folder
        $filename = $this->timestampedFileName('.xml');
        file_put_contents($filename, $output);
        $this->outputPath = $filename;
        return true;
    }