sectionId = $sectionId; $this->setType($type); $this->setDocPart($this->container, ($sectionId - 1) * 3 + $containerId); } /** * Set type. * * @since 0.10.0 * * @param string $value */ public function setType($value = self::AUTO) { if (!in_array($value, array(self::AUTO, self::FIRST, self::EVEN))) { $value = self::AUTO; } $this->type = $value; } /** * Get type * * @return string * @since 0.10.0 */ 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; } }