function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params["badge_name"] = $this->attendee->badge_name; $this->params["badge_number"] = $this->attendee->badge_number; $this->params["badge_type"] = $this->attendee->badge_type; $this->params["notes"] = $this->attendee->notes; parent::__construct($params); }
function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params["badge_name"] = $this->attendee->badge_name; $this->params["badge_number"] = $this->attendee->badge_number; $this->params["badge_type"] = $this->attendee->badge_type; $this->params["birthdate"] = $this->attendee->birthdate; $this->params["legal_name"] = $this->attendee->legal_name; $this->params["admission_level"] = $this->attendee->admission_level; $this->params["override_price"] = $this->attendee->override_price; $this->params["payment_method"] = $this->attendee->payment_method; $this->params["vendor_id"] = $this->attendee->vendor_id; $this->params["adult_legal_name"] = $this->attendee->adult_legal_name; $this->params["adult_relationship"] = $this->attendee->adult_relationship; $this->params["adult_phone_number"] = $this->attendee->adult_phone_number; $this->params["adult_badge_number"] = $this->attendee->adult_badge_number; parent::__construct($params); }
<?php include_once '../../../_includes/framework.php'; require_login(); $id = @$_POST['id']; $id or die("<p>Error, no attendee id.</p>"); $attendee = Attendee::find($id); $attendee or die("<p>No attendee with (ID={$id})"); $return_url = @$_POST['return_url'] ?: "/admin/index.php"; $form = new CheckInForm($_POST); if ($form->valid()) { $form->save(); # Kind of a bad hack but it works. ?> <script> window.location = "<?php echo $return_url; ?> "; </script> <?php } else { include "../forms/check-in-form.php"; }
function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params = $this->attendee->attributes(); parent::__construct($params); }
function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params["canceled"] = $this->attendee->canceled; parent::__construct($params); }
function __construct($params = []) { $this->attendee = Attendee::find($params["id"]); $this->params["admission_level"] = $this->attendee->admission_level; parent::__construct($params); }