container = 'header'; $this->sectionId = $sectionId; $this->setType($type); $this->setDocPart($this->container, ($sectionId - 1) * 3 + $headerId); } /** * Add a Watermark Element * * @param string $src * @param mixed $style * @return Image */ public function addWatermark($src, $style = null) { return $this->addImage($src, $style, true); } /** * Set header type * * @param string $value * @since 0.9.2 */ public function setType($value = self::AUTO) { if (!in_array($value, array(self::AUTO, self::FIRST, self::EVEN))) { $value = self::AUTO; } $this->type = $value; } /** * Get header type * * @return string */ public function getType() { return $this->type; } /** * Reset type to default * * @return string */ public function resetType() { return $this->type = self::AUTO; } /** * First page only header * * @return string */ public function firstPage() { return $this->type = self::FIRST; } /** * Even numbered pages only * * @return string */ public function evenPage() { return $this->type = self::EVEN; } }