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

Class: OpenDocument_Element_Paragraph

Source Location: /OpenDocument-0.2.1/OpenDocument/Element/Paragraph.php

Class Overview

OpenDocument_Element
   |
   --OpenDocument_StyledElement
      |
      --OpenDocument_Element_Paragraph

Paragraph element


Author(s):

Version:

  • 0.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
Paragraph element


[ Top ]


Method Detail

__construct (Constructor)   [line 79]

OpenDocument_Element_Paragraph __construct( $node, OpenDocument_Document $document)

Constructor
  • Access: public

Overrides OpenDocument_StyledElement::__construct() (Constructor)

Parameters:

DOMNode   $node     Node to add heading to
OpenDocument_Document   $document     Document to add heading to

[ Top ]

createHyperlink   [line 163]

OpenDocument_Element_Hyperlink createHyperlink( string $text, string $location, [string $type = 'simple'], [string $target = ''], [string $name = ''])

Create a hyperlink
  • Access: public

Parameters:

string   $text     Content text for link
string   $location     URL
string   $type     'simple'
string   $target     Target frame
string   $name     Name (id) of link

[ Top ]

createSpan   [line 178]

OpenDocument_Element_Span createSpan( string $text)

Create OpenDocument_Span element
  • Access: public

Parameters:

string   $text     Content for span element

[ Top ]

createTextElement   [line 147]

OpenDocument_Element_Text createTextElement( string $text)

Create text element.
  • Access: public

Parameters:

string   $text     Content for text element.

[ Top ]

generateStyleName   [line 132]

string generateStyleName( )

Generate element new style name
  • Access: public

Overrides OpenDocument_StyledElement::generateStyleName() (Generate new style name)
[ Top ]

instance   [line 99]

OpenDocument_Element_Paragraph instance( mixed $object, mixed $content)

Create element instance
  • Throws: OpenDocument_Exception
  • Access: public

Parameters:

mixed   $object     Document or element to append paragraph to
mixed   $content     Contents of paragraph

[ Top ]


Documentation generated on Tue, 23 Oct 2012 12:00:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.