void addWeight(
int
$weight, array
&$weights)
|
|
Stores computed weights
The array which contains weights has the following structure:
Array ([0] => Array (['rule'] => Object (),
['weights'] => Array (['param1'] => weight1,
['param2'] => weight2) ),
[1] => Array (['rule'] => Object (),
['weights'] => Array (['param3'] => weight3,
['param4'] => weight4) ) )
For most rules, there is only one element in the array and only one rule and weight defined. See
ColumnAdder for an example of a more complicated rule.
Tags:
Overridden in child classes as:
- ColumnAdder::addWeight()
- Stores computed weights
Parameters: