[pmwiki-users] smarter PageStore::ls() parameters?

Martin Fick mogulguy at yahoo.com
Mon Oct 16 12:54:22 CDT 2006


> ----- Original Message ----
> From: Patrick R. Michaud <pmichaud at pobox.com>
> Subject: Re: [pmwiki-users] smarter PageStore::ls() parameters?
> 
> The current plan is to add an $options parameter to PageStore::ls(),
> or (for compatibility reasons) to have a separate PageStore::select() 
> method that takes this argument.  The $options parameter would
> contain the things specified in the pagelist command, and the
> PageStore may be able to use that to optimize the resulting query.


If you are going to add a Select() to the pagestore it would be
nice if it took other kinds of search parameters and were sturctured
something like this:



Select($namepats, $attpats)



where $namepats is equivalent to what the current $pats is for ls() and
the $attpats is an array indexed by attribute which contains an array
of patterns to match for that specific page attribute (which could
include the page text).  This seems particularly useful if things are
going to be stored in a db.

This would allow all indexing to be done at the pagestore level and appropriately optimized if in a DB.



-Martin










More information about the pmwiki-users mailing list