コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * Creates a new ContestJuryAddForm object.
  *
  * @param	Contest	$contest
  */
 public function __construct(Contest $contest)
 {
     $this->contest = $contest;
     parent::__construct();
 }
コード例 #3
0
 /**
  * Creates a new ContestSolutionRatingUpdateForm object.
  *
  * @param	ContestSolution	$contest
  */
 public function __construct(ContestSolution $contest)
 {
     $this->solutionObj = $contest;
     parent::__construct();
 }