addPhaseDoneJS(constant("self::PHASE_$phase"), sprintf($code, $this->getID(), $phase)); } } }