function __construct() { parent::__construct(); }
function __construct($id, $type) { parent::__construct($id); $this->payment = RegistrationPayment::load(array('order_id' => $id, 'payment_type' => $type)); if (!$this->payment) { error_exit("No such payment for this registration"); } }