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"); } }
function __construct($id) { parent::__construct($id); $this->form_load(true); }