[pmwiki-devel] how to access MatchCount from pagelist

Hans design5 at softflow.co.uk
Fri Feb 13 03:37:34 CST 2009


Friday, February 13, 2009, 9:07:49 AM, Peter wrote:

> If it were structured like this (function names intended for
> self-documentation, not for actual use):

> function DoAPageList()
> {
>    PageListOptionSetup();
>    $matchlist = MakeListOfPages($selection_options);
>    FormatPageList($matchlist, $formatting_options);
> }

> Then there would be some *very useful* functions available to recipes along
> the way...

on further reflection, this could possibly be modelled on
UpdatePages():

A  DoAPageList() (BuildList) function which executes a series of
function in an array BuildListFunctions, consisting of
 PageListOptionSetup()
 MakeListOfPages()
 FormatPageList()

Then other functions may be added, or taken out, or substituted by a
recipe as needed, just like is the case for the $EditFunctions array..


Hans




More information about the pmwiki-devel mailing list