pp wrote:

> > > Give me more info, more info :)
> >
> > try this code:
> > $obj = mgd_get_object_by_guid($guid);
>
> yes , that works fine
>
> > echo "This object is of type " . $obj->__table__;
>
> but here? what eaxactly _table_ should be.

Better to use get_class($obj), I think. The result will be one of

MidgardArticle
MidgardAttachment
MidgardElement
MidgardEvent
MidgardEventMember
MidgardFile
MidgardGroup
MidgardHost
MidgardImage
MidgardMember
MidgardPage
MidgardPageElement
MidgardParameter
MidgardPerson
MidgardPreferences
MidgardSnippet
MidgardSnippetdir
MidgardStyle
MidgardTopic
MidgardSitegroup
MidgardPagelink

The manual entry for get_class states that the name returned is
lowercase.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to