On Tue, 21 May 2002 16:32:47 +0300
Bogdan Stancescu <[EMAIL PROTECTED]> wrote:

> pp wrote:
> 
> >>$object->search_parameters() function which is precisely what I'm 
> >>looking for, but the remark in the documentation was not such a good 
> >>
> >AFAIR this function is signed as "no one knows if it works and if it will be in 
> >further releases"
> >
> Precisely!

from manual:
" This is an experimental method. Its interface may change. It may even go away 
completely. Not to
    be used in any production site. "

> Yes, I know that - but as I said in the original message, I don't want 
> to hardcode the database, username and password in the code - I would 
> like to use the same variables as Midgard/Nadmin does in order to make 
> the application portable.

 You may store login and pass in any snippet to avoid display it in any error.
 Besides If person is logged to midgard , login and pass is send per page.

 
> >What exactly You want to search for? domain, name, values?
> >
> I know exactly what I am looking for, and I know how to code it, that's 

But I do not know and I do not know how to help You :)
 
> If your question was out of curiosity, what I have is articles referring 
> to other articles by guid via parameters - and I want to be able to tell 
> if a certain article is being referred to by any other article in the 
> database.


One article - You may use up field 
More articles - create parameters

domain - references
name - article id
value - something 

$list    = $article->listparameters(references);


or replace name and values to Your need.
And look at example parameters list and fetch
it is clear and easy :)
http://www.midgard-project.org/manual/en/method.object-listparameters.php

Piotras







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

Reply via email to