コード例 #1
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->states = $this->getStates();
     // owner
     $this->availableGroups = ContestUtil::readAvailableGroups();
 }
コード例 #2
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->readMembers();
 }
コード例 #3
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     // default values
     if (!count($_POST)) {
         $this->username = WCF::getUser()->username;
         $this->email = $this->confirmEmail = WCF::getUser()->email;
     }
 }
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->unansweredInvitationList = new InvitationList();
     $this->unansweredInvitationList->sqlLimit = 0;
     $this->unansweredInvitationList->sqlConditions .= 'sender.userID = ' . WCF::getUser()->userID . ' AND invitation.isSealed = 0';
     $this->unansweredInvitationList->sqlOrderBy .= 'invitation.email ASC';
     $this->unansweredInvitationList->readObjects();
     $acceptedInvitationList = new InvitationList();
     $acceptedInvitationList->sqlLimit = 0;
     $acceptedInvitationList->sqlConditions .= 'sender.userID = ' . WCF::getUser()->userID . ' AND invitation.isSealed = 1';
     $acceptedInvitationList->sqlOrderBy .= 'recipient.username ASC';
     $acceptedInvitationList->readObjects();
     foreach ($acceptedInvitationList->getObjects() as $acceptedInvitation) {
         $this->invitedMembers[] = new UserProfile($acceptedInvitation->recipientUserID);
     }
 }