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

Class: OpenDocument_Style

Source Location: /OpenDocument-0.2.1/OpenDocument/Style.php

Class Overview


OpenDocument_Style abstract class


Author(s):

Variables

Methods


Child classes:

OpenDocument_ElementStyle
OpenDocument_ElementStyle class

Inherited Variables

Inherited Methods


Class Details

[line 43]
OpenDocument_Style abstract class

OpenDocument_Style absract class - handles element style all other elements inherit from this one



[ Top ]


Class Variables

$element =

[line 50]

OpenDocument Element
  • Access: protected



[ Top ]

$map =

[line 57]

Style map of properties
  • Access: protected

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 64]

OpenDocument_Style __construct( OpenDocument_StyledElement $element)

Constructor
  • Access: public

Overridden in child classes as:

OpenDocument_ElementStyle::__construct()
Constructor

Parameters:

OpenDocument_StyledElement   $element     Element the style is for

[ Top ]

copy   [line 156]

void copy( OpenDocument_Style $styleObject)

Copy style from another element
  • Access: public

Parameters:

OpenDocument_Style   $styleObject     Style to import

[ Top ]

export   [line 124]

array export( )

Export style information
  • Return: Key-value array of style names and values
  • Access: public

[ Top ]

import   [line 140]

void import( array $style)

Import style information
  • Access: public

Parameters:

array   $style     Key-values: style names and values

[ Top ]

__get   [line 110]

mixed __get( string $name)

Magic method: Get property value
  • Access: public

Parameters:

string   $name     Name of property to retrieve value for

[ Top ]

__set   [line 95]

void __set( string $name, mixed $value)

Magic method: Set property value Can be used to set values for properties defined in $map
  • Access: public

Overridden in child classes as:

OpenDocument_ElementStyle::__set()
Set style value

Parameters:

string   $name     Name of property
mixed   $value     Name of value

[ Top ]


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