By setting level in Voter configuration you are setting numeric representation of true value of given voter.
Voters in general are able to represent more then bare true/false value. For this reason they return <int> value as a result of the vote. The boolean voters are special subset of voters and by default return <int> 1 for True state and <int> 0 for False state. However, in certain cases it may be desirable for those voters to return different value. Most often in a case where you use voter set and want your boolean voter to have a stronger vote then others in the set. In this case you can use "trueValue" or "falseValue" property to increase or decrease strength of the vote of boolean voter. Property "level" is equivalent of "trueValue". It just seem to be easier to understand that by increasing "level" of the voter you are increasing importance of its vote in the whole set. HTH, Jan On Fri, 2009-03-13 at 11:26 -0600, Federico Arriola wrote: > Hi > > I was seeingt the cache module configuration on Magnolia 4.0.1 > > and for example > under /modules/cache/config/configurations/default/cachePolicy/voteres/urls/ > > there is a Node Data named "level" with a value "1" and type String. > > my question is what does this level configuration does to that voter. > > and another for example in > > /modules/cache/config/configurations/default/cachePolicy/voteres/parameters/ > there is also a level property with value 4. > > I guess it has something to do with the url path , but I don't know > what it does exactly. > > Can someone help me what this configuration level does ?? > > Thanks. > > Federico Arriola. -- Best regards, Jan Haderka Magnolia International Ltd. ---------------------------------------------------------------------- [email protected] http://www.magnolia-cms.com Magnolia® - Simple Open Source Content Management ---------------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
