On Thu, Nov 15, 2001 at 12:10:45PM +0100, pp wrote:
> > > And I sould replace xxxx.html from id to guid?
> > Right. Something like this:
> >
> > echo "<a href=\"/page/page/\" . $article->guid() . ".html\">" . $article->title .
>"</a>"
> >
> > and instead of the code quoted above:
> > if ($argc == 1) $guid = $argv[0];
> > if (eregi("^[0-9a-f]{32}$", $guid)
> > $obj = mgd_get_object_by_guid($guid);
> >
> > Eregi call is needed to detect that passed argument has GUID form.
> >
>
> ok, but I still doesn't know if my object should be topic or article.
> How get to repligard table?
You don't need to access Repligard table directly. All you need to know is
that _every_ Midgard object has guid() method and _every_ Midgard object
can be retrieved using mgd_get_object_by_guid().
> BTW, any docs for repliagard table?
> functions?
You've already got answers from several people on this:
$object->guid() and mgd_get_object_by_guid(). Isn't enough?
> it looks like it is better than mgd_get_object_by_name for me.
> Give me more info, more info :)
Look into answers you're receiving more carefully, all info is inside. :-)
--
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
`Senior software developer and analyst for SaM-Solutions Ltd.`
---
A penny saved kills your career in government.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]