Manual:Autopromote.php

The Autopromote class is used to test conditions for autopromote>Special:MyLanguage/Manual:$wgAutopromote|autopromotion of users.

The recCheckCondition function has some particularly useful recursive logic allowing for AND, OR, XOR, and NOT tests.