Fix per-level functions to not throw undefined constant warnings

The class constants need to be prefixed with self:: (or the class name, but self:: makes it always do the right thing if Analog gets subclassed), otherwise PHP doesn't recognize DEBUG et. al. as class constants and throws a fit.