33 lines
731 B
PHP
33 lines
731 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* PHPWord
|
||
|
|
*
|
||
|
|
* @link https://github.com/PHPOffice/PHPWord
|
||
|
|
* @copyright 2014 PHPWord
|
||
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||
|
|
*/
|
||
|
|
|
||
|
|
namespace PhpOffice\PhpWord\Writer\Word2007\Element;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* PageBreak element writer
|
||
|
|
*
|
||
|
|
* @since 0.10.0
|
||
|
|
*/
|
||
|
|
class PageBreak extends Element
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Write element
|
||
|
|
*/
|
||
|
|
public function write()
|
||
|
|
{
|
||
|
|
$this->xmlWriter->startElement('w:p');
|
||
|
|
$this->xmlWriter->startElement('w:r');
|
||
|
|
$this->xmlWriter->startElement('w:br');
|
||
|
|
$this->xmlWriter->writeAttribute('w:type', 'page');
|
||
|
|
$this->xmlWriter->endElement();
|
||
|
|
$this->xmlWriter->endElement();
|
||
|
|
$this->xmlWriter->endElement();
|
||
|
|
}
|
||
|
|
}
|