public function createNew($create_form = true) { $command = new self(new XMLTag('command', array('xmlns' => 'http://jabber.org/protocol/commands'))); if ($create_form) { $command->createForm('result'); } return $command; }