Does anybody know offhand the way to tell whether I\'m being called statically (Classname::function) or inside an object ($classInstance->function) inside a PHP method?
Admittedly not offhand...but Sean Coates has a cool and fairly simple approach to finding this out:
$isStatic = !(isset($this) && get_class($this) == __CLASS__);