OpenDocumentPHP
[ class tree: OpenDocumentPHP ] [ index: OpenDocumentPHP ] [ all elements ]

Class: TextFragment

Source Location: /content/body/text/TextFragment.php

Class Overview

Fragment
   |
   --TextFragment

TextFragment class.


Author(s):

  • Norman Markgraf (nmarkgraf(at)user.sourceforge.net)

Version:

  • $Revision: 136 $

Copyright:

  • Copyright in 2006, 2007 by The OpenDocumentPHP Team

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: Fragment

Fragment::__construct()
Constructor method.
Fragment::appendChild()
Set attribute with namespace.
Fragment::createDCElement()
Create an DOMElement in the DC namespace with tag $tag.
Fragment::createMetaElement()
Create an DOMElement in the Meta namespace with tag $tag.
Fragment::createOfficeElement()
Create an DOMElement in the Office namespace with tag $tag.
Fragment::createStyleElement()
Create an DOMElement in the Meta namespace with tag $tag.
Fragment::getChild()
Retrieve a child by its namespace and tag from the current node.
Fragment::getDocumentFragment()
Returns the root DOMElement of this DOM fragment.
Fragment::getTag()
Fragment::hasChild()
Check if the current element has a child $tag with $namespace.
Fragment::initXpath()
Initialize xpath. You must do this before using xpath.
Fragment::setTag()
Set (which means append or replace an existing node) a new node.

Class Details

[line 44]
TextFragment class.

Here we store the <office:text>...<office:text> part of the content tree.




Tags:

author:  Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
version:  $Revision: 136 $
copyright:  Copyright in 2006, 2007 by The OpenDocumentPHP Team
since:  0.5.2 - 26.02.2007
license:  GNU General Public License 2.0.


[ Top ]


Class Methods


constructor __construct [line 53]

TextFragment __construct( $domFragment, [ $root = null])

Constructor method.



Tags:

since:  0.5.2 - 26.02.2007


Overrides Fragment::__construct() (Constructor method.)

Parameters:

   $domFragment  
   $root  

[ Top ]

method nextHeading [line 79]

void nextHeading( [int $outlineLevel = 1])

Create a new heading and append it to the document.



Tags:

since:  0.5.2 - 26.02.2007
access:  public


Parameters:

int   $outlineLevel   Outline level of this heading.

[ Top ]

method nextParagraph [line 67]

void nextParagraph( )

Create a new paragraph and append it to the document.



Tags:

since:  0.5.2 - 26.02.2007
access:  public


[ Top ]

method updateUserFieldDecl [line 93]

void updateUserFieldDecl( string $name, string $value)

Update User Field Decl(aration)



Tags:

since:  0.5.2 - 26.02.2007
access:  public


Parameters:

string   $name   The name of the user-field-decl(aration) to be updated.
string   $value   The new value.

[ Top ]


Documentation generated on Tue, 12 Jun 2007 10:00:57 +0200 by phpDocumentor 1.3.2