Пример #1
0
 /**
  * Data elements of the form
  *
  * @return void
  */
 function formData()
 {
     $this->out->elementStart('fieldset', array('id' => 'new_rsvp_data'));
     $this->out->hidden('rsvp-id', $this->rsvp->id, 'rsvp');
     switch (RSVP::verbFor($this->rsvp->response)) {
         case RSVP::POSITIVE:
             // TRANS: Possible status for RSVP ("please respond") item.
             $this->out->text(_m('You will attend this event.'));
             break;
         case RSVP::NEGATIVE:
             // TRANS: Possible status for RSVP ("please respond") item.
             $this->out->text(_m('You will not attend this event.'));
             break;
         case RSVP::POSSIBLE:
             // TRANS: Possible status for RSVP ("please respond") item.
             $this->out->text(_m('You might attend this event.'));
             break;
     }
     $this->out->elementEnd('fieldset');
 }