function __construct() { // find active entity parent::__construct(); Authentication::require_admin(); $this->is_admin_page = true; }
function __construct() { // find active entity parent::__construct(); // submit? $uploaded = handle_uploaded_submission($this->entity); if ($uploaded) { $self_url = 'index.php' . $this->entity->path() . '?made_submission=' . $uploaded->submissionid; Util::redirect($self_url); } }
function __construct() { Authentication::require_admin(); $this->is_admin_page = true; // find active entity parent::__construct(); // find user if (!isset($_REQUEST['userid'])) { throw new NotFoundException("Missing parameter: userid"); } $this->user = User::by_id(intval($_REQUEST['userid'])); }
function title() { return "Print submissions for " . parent::title(); }
function title() { return "Results for " . parent::title(); }