this is ugly... should probably have a $class = get_class($this); or something similar earlier on to make this line much nicer to read.