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

Class: Paragraph

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

Class Overview

Fragment
   |
   --ElementFragment
      |
      --Paragraph

Paragraph class.


Author(s):

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

Version:

  • $Revision: 145 $

Copyright:

  • Copyright in 2006, 2007 by The OpenDocumentPHP Team

Methods


Child classes:

Heading
Heading class extends Paragraph class.

Inherited Constants

Inherited Variables

Inherited Methods

Class: ElementFragment

ElementFragment::__construct()
Constructor method.
ElementFragment::getAttributeNS()
Retreive an attribute by namespace and tag.
ElementFragment::getElement()
Retrieve the current Class as DOMElement.
ElementFragment::setAttributeNS()
Set an attribute with namespace, tag and value.
ElementFragment::__setRoot()
Set the $root attribute correctly.

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 35]
Paragraph class.



Tags:

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


[ Top ]


Class Methods


method append [line 133]

void append( mixed $content)

Append a text node or a DOMElement as a child to the current paragraph node.



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

mixed   $content   Eigther a text (as a string) or a child node (as a DOMElement) which will be appended to the current paragraph node.

[ Top ]

method getClassNames [line 99]

void getClassNames( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getCondStyleName [line 118]

void getCondStyleName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getId [line 61]

void getId( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method getStyleName [line 80]

void getStyleName( )



Tags:

since:  0.5.0 - 08.02.2007
access:  public


[ Top ]

method setClassNames [line 91]

void setClassNames( $names)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $names  

[ Top ]

method setCondStyleName [line 110]

void setCondStyleName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method setId [line 53]

void setId( $id)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $id  

[ Top ]

method setStyleName [line 72]

void setStyleName( $name)



Tags:

since:  0.5.0 - 08.02.2007
access:  public


Parameters:

   $name  

[ Top ]

method __setRoot [line 42]

void __setRoot( )

Set element to 'text:p'.



Tags:

since:  0.5.0 - 08.02.2007
access:  protected


Overridden in child classes as:

Heading::__setRoot()
Set element to 'text:h'.

Overrides ElementFragment::__setRoot() (Set the $root attribute correctly.)

[ Top ]


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