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

Class: OpenDocument_StyledElement

Source Location: /OpenDocument-0.1.0/OpenDocument/StyledElement.php

Class Overview

OpenDocument_Element
   |
   --OpenDocument_StyledElement

OpenDocument_StyledElement abstract class


Author(s):

Version:

  • 0.1.0

Variables

Methods


Child classes:

OpenDocument_Hyperlink
OpenDocument_Hyperlink element
OpenDocument_Paragraph
OpenDocument_Paragraph element
OpenDocument_Heading
OpenDocument_Heading element
OpenDocument_Span
OpenDocument_Span element

Inherited Variables

Inherited Methods


Class Details

[line 48]
OpenDocument_StyledElement abstract class

OpenDocument_StyledElement absract class - all elements that have styles inherit from this one



[ Top ]


Class Variables

$style =

[line 55]

Style information
  • Access: protected

Type:   array


[ Top ]

$styleNameMaxNumber =  0

[line 62]

Style name suffix max value
  • Access: protected

Type:   integer


[ Top ]



Method Detail

__construct (Constructor)   [line 82]

OpenDocument_StyledElement __construct( DOMNode $node, OpenDocument $document)

Constructor
  • Access: public

Overridden in child classes as:

OpenDocument_Hyperlink::__construct()
Constructor
OpenDocument_Paragraph::__construct()
Constructor
OpenDocument_Heading::__construct()
Constructor

Overrides OpenDocument_Element::__construct() (Constructor)

Parameters:

DOMNode   $node   — 
OpenDocument   $document   — 

[ Top ]

applyStyle   [line 159]

void applyStyle( string $name, mixed $value)

Apply style information
  • Access: public

Parameters:

string   $name   — 
mixed   $value   — 

[ Top ]

generateStyleName   [line 74]

void generateStyleName( )

Generate new style name
  • Abstract:
  • Access: public

Overridden in child classes as:

OpenDocument_Hyperlink::generateStyleName()
Generate element new style name
OpenDocument_Paragraph::generateStyleName()
Generate element new style name
OpenDocument_Heading::generateStyleName()
Generate element new style name
OpenDocument_Span::generateStyleName()
Generate new style name

[ Top ]

getStyle   [line 108]

array getStyle( array $properties)

Get style information
  • Access: public

Parameters:

array   $properties   — 

[ Top ]

getStyleName   [line 118]

string getStyleName( )

Get style name
  • Access: public

[ Top ]

getStyleNameMaxNumber   [line 138]

integer getStyleNameMaxNumber( )

Get style name suffix max value
  • Access: public

[ Top ]

getStyleNamePrefix   [line 128]

string getStyleNamePrefix( )

Get style name prefix
  • Access: public

[ Top ]

setStyleNameMaxNumber   [line 148]

void setStyleNameMaxNumber( integer $number)

Set style name suxxif max value
  • Access: public

Parameters:

integer   $number   — 

[ Top ]

__get   [line 95]

mixed __get( string $name)

Magic method Get property value
  • Access: protected

Overridden in child classes as:

OpenDocument_Hyperlink::__get()
Get element property
OpenDocument_Heading::__get()
Get element properties

Parameters:

string   $name   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:57:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.