Code: Select all
<?php
$o=new COM('com.sun.star.ServiceManager',null,CP_UTF8);
$r=$o->Bridge_GetStruct('com.sun.star.beans.PropertyValue');
$r->Name='n';$r->Value='v';
foreach($r->getPropertyNames() as $n){print($n);}
// Fatal error: Call to undefined method variant::getPropertyNames() in C:\htdocs\a\1.php on line 7
?>
First step I create own object $r consists two properties, but I can't get collection of properties...
Any idea?
In second step I would like to read values of these properties.
PS I understand VB script so I can easy translate it to PHP code.