2012-05-06 18:25:40 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
2014-03-26 16:33:20 +07:00
|
|
|
* PHPWord
|
2012-05-06 18:25:40 +02:00
|
|
|
*
|
2014-03-27 23:55:06 +07:00
|
|
|
* @link https://github.com/PHPOffice/PHPWord
|
2014-05-05 12:38:31 +04:00
|
|
|
* @copyright 2010-2014 PHPWord contributors
|
2014-05-04 21:03:28 +04:00
|
|
|
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
|
2012-05-06 18:25:40 +02:00
|
|
|
*/
|
|
|
|
|
|
2014-04-08 00:23:49 +07:00
|
|
|
namespace PhpOffice\PhpWord\Element;
|
2014-03-22 10:06:08 +04:00
|
|
|
|
2014-03-24 00:26:10 +07:00
|
|
|
/**
|
|
|
|
|
* Header element
|
|
|
|
|
*/
|
2014-05-04 00:57:44 +07:00
|
|
|
class Header extends Footer
|
2014-03-22 10:06:08 +04:00
|
|
|
{
|
2013-12-16 06:40:30 -05:00
|
|
|
|
|
|
|
|
/**
|
2014-05-04 00:57:44 +07:00
|
|
|
* Container type
|
2013-12-16 06:40:30 -05:00
|
|
|
*
|
2014-03-31 23:10:51 +07:00
|
|
|
* @var string
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
2014-05-04 00:57:44 +07:00
|
|
|
protected $container = 'header';
|
2012-11-08 17:14:15 -06:00
|
|
|
|
2013-12-16 06:40:30 -05:00
|
|
|
/**
|
|
|
|
|
* Add a Watermark Element
|
|
|
|
|
*
|
|
|
|
|
* @param string $src
|
|
|
|
|
* @param mixed $style
|
2014-03-31 23:10:51 +07:00
|
|
|
* @return Image
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addWatermark($src, $style = null)
|
|
|
|
|
{
|
2014-03-31 23:10:51 +07:00
|
|
|
return $this->addImage($src, $style, true);
|
2013-12-16 06:40:30 -05:00
|
|
|
}
|
2014-03-11 19:26:56 +07:00
|
|
|
}
|