Page 1 of 1

[Solved] CreateInstance vs Bridge_GetStruct

Posted: Sat May 30, 2009 6:38 pm
by lunter
I pose first steps with PHP + OO API and I have simple problem:
What difference is between:

Code: Select all

createInstance('com.sun.star.style.CharacterStyle')
and

Code: Select all

Bridge_GetStruct('com.sun.star.beans.PropertyValue')
... difference between methods: createInstance and Bridge_GetStruct

Re: createInstance vs Bridge_GetStruct

Posted: Sat May 30, 2009 6:50 pm
by Villeroy
createInstance returns a reference to an object with properties and interfaces to method calls.
The latter creates a struct, which is basically a more complex variable without any interfaces.

Service http://api.openoffice.org/docs/common/r ... Style.html
Struct http://api.openoffice.org/docs/common/r ... Value.html