function __construct($event_id, $registrant_id = null) { global $lr_session; if ($lr_session->is_admin() && !is_null($registrant_id)) { $this->registrant_id = $registrant_id; if ($this->registrant_id != 'choose') { $this->registrant = Person::load(array('user_id' => $registrant_id)); } } else { $this->registrant_id = $lr_session->user->user_id; $this->registrant = $lr_session->user; } parent::__construct($event_id, $this->registrant); }
function __construct($id) { parent::__construct($id); $this->title = "{$this->event->name} » Edit"; }