Hi,

> The classes are called MidgardEvent or MidgardArticle respectivly.
Is there any regular way to get this sacred knowledge?

> Unfortunalety, inheriting from those classes is not so easy than it
> might imagine, you can run into a lot of problems. Take a look at
>
>   http://www.nathan-syntronics.de/midgard/oop
>
> for a quick guide.
Thanks. Very helpful.

> BTW: What didn't make it to the web pages yet: The _copyMgdData
> function do the manual copy on purpose to ensure that _all_ required
> variables are defined in the new class. A PHP-like approach using
> something like
>
>   $variables = get_object_vars($object);
>   foreach($variables as $var => $data)
>     $this->$var = $data;
>
> does not always work cleanly, you can get errors due to missing
> variables which are very hard to trace, believe me...
Can't beleive. In a case when I retrieved objects with mgd_list_XXX even "N"
was copied this way. An example please...

/Victor


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

Reply via email to