Teh inability to overload mgd functions or objects dynamically from PHP 
creates some very interesting situations.

To be able to delete an object (an article, in my case) you have to get 
rid of any properties. Otherwise, the deletion will just fail. Fair 
enough, midgard is keeping the database consistent.

So what will the cautious programmer do? Dete all properties related to 
that object. I assume the same applies to attachments.

However, sometimes deleting the article will fail. Most likely cause: 
the user did not have enough privileges.

So,

  - does $obj->parameter() observe the same rules as 
mgd_delete_article()? (hint: the documentation doesn't say a thing about 
it!)

  - should I need to evaluate if a mgd call is going to fail (because 
maybe I am storing my " parameters"  in my own separate RDBMS), what 
should I do?

Where am I? I am deleting the properties before the delete call -- doing 
it in the reverse order will fail every time -- , and will soon start 
testing whether its checking for ownership/privileges/yadda. If it 
doesn't, I'll roll up my sleeves and get something going.

Opinions?

cheers,






m


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

Reply via email to