Ingo Herz wrote:
> $mgdArticle = mgd_get_article();
> $mgdArticle->topic = $topic;
> $mgdArticle->title = $title;
> $mgdArticle->url = $url;
> $mgdArticle->name = $keywords;
> $mgdArticle->abstract = $abstract;
> $mgdArticle->extra1 = $email;
> $mgdArticle->author = $author->id;
> if (! $mgdArticle->create()) {
> $this->error = MIDHOO_ERROR_MIDGARD;
> $this->errstr = mgd_errstr();
> return(0);
> }
>
> echo "ID: $mgdArticle->id";
Create returns the ID of the article created. It does not, to my
knowledge, set the ID on the object itself.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]