/** * Creates a new ContestParticipantAddForm object. * * @param Contest $contest */ public function __construct(Contest $contest) { $this->contest = $contest; // autosubmit form i action is doParticipate if (isset($_GET['doParticipate']) && count($_POST) == 0) { $_POST['ownerID'] = 0; $_POST['state'] = $this->contest->enableParticipantCheck ? 'applied' : 'accepted'; $this->skipSecurityToken = true; } parent::__construct(); }
/** * Creates a new ContestJuryAddForm object. * * @param Contest $contest */ public function __construct(Contest $contest) { $this->contest = $contest; parent::__construct(); }
/** * Creates a new ContestSolutionRatingUpdateForm object. * * @param ContestSolution $contest */ public function __construct(ContestSolution $contest) { $this->solutionObj = $contest; parent::__construct(); }