setClass ('root'); $this->setCount (1); } /** * Return the elements name. * * @return string The ODT XML element name. */ public function getElementName () { // Dummy. return 'root'; } /** * Return string with encoded opening tag. * * @return string The ODT XML code to open this element. */ public function getOpeningTag () { // Dummy. return ''; } /** * Return string with encoded closing tag. * * @return string The ODT XML code to close this element. */ public function getClosingTag () { // Dummy. return ''; } /** * Set parent dummy function for preventing that anyone * accidentally sets a parent for the root. * * @param ODTStateElement $parent_element */ public function setParent(ODTStateElement $parent_element) { // Intentionally do nothing! } /** * Are we in a paragraph or not? * This is the root - so we are not. * * @return boolean */ public function getInParagraph() { return false; } /** * Determine and set the parent for this element. * Nothing to do for the root. */ public function determineParent(ODTStateElement $previous) { // Intentionally do nothing! } }