>
> Hi,
>
> I am developing an extension for SMW and I need to know how to get (with
> which method) the attribute called 'm_values' in the SMWNAry-Class?
>
> I have annotations like these:
> [[ImageAnnotation::File:Obama_Merkel.jpg;rect 175 0 131 56]]
>
> When I call the getShortWikiText()-mehotd on a SMWNAry-object i get the
> following:
> Bild:Obama Merkel.jpg; circle 175 0 131 56
>
> But i need to get the two information seperated from each other (i.e.
> "Bild:Obama Merkel.jpg" and "circle 175 0 131 56").
> When I call print_r() on the SWMNAry-Object I see that there is an
> attribute calles m_values, which seems to be an array:
> - The first element from that array is an SMWWikiPageValue-object and which
> includes the first info in the attribute called 'm_strubvalues'
>
>    [m_stubvalues:protected] => Array
>    (
>     [0] => Obama_Merkel.jpg
>    ...
>
> - The second element ist an SMWStringValue-object and has the same variable
> with the second info i need:
>
>    [m_stubvalues:protected] => Array
>     (
>     [0] => rect 175 0 131 56
>     ....
>
>
> So i need to know how to get these two objects and then these two infos in
> them?
> I tried many (all?) methods from the SMWNAry-Class like getValueList(),
> etc. but they either give nothing back or all infos as a concatinated string
> like getShortWikiText() (see above)...
>
>
> Thanks a lot for any help!
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to