Here's a basic pseudocode breakdown:
$this->set('open', "BINARY SWITCH_1", false);
BINARY_SWITCH_1 = IF(votenum >= 5 AND votetotal/votenum <= 2, 0, BINARY_SWITCH_2)
BINARY_SWITCH_2 = IF(votenum >= 5 AND votetotal/votenum >= 3 AND open=0, 1, open)
The first part of the switches seems to relate to a voting schema.
For #2, if there's more than 5 votes with an average vote that is equal to or greater than 3, AND open = 0, then that part is true. Dunno what the 1, open means.
For # 1, there's more than 5 votes with an average vote that is equal to or less than 2, then that part is true. Dunno what the rest means.
Is that the whole plugin? Which plugin hook does it use?
|