Ejemplo n.º 1
0
 /**
  *
  * @access public
  * @author firstname and lastname of author, <*****@*****.**>
  * @param  model
  */
 public function load($model)
 {
     $list = "";
     for ($n = 0; $n < (int) 5; $n++) {
         $label = $this->language['school_size_' . $n];
         $radio_element = new fbox_radio_element();
         $radio_element->set_label($label);
         $radio_element->set_name("school_size");
         $radio_element->set_checked(False);
         $list .= $radio_element->get_element();
     }
     return $list;
 }
Ejemplo n.º 2
0
 /**
  *
  * @access public
  * @author firstname and lastname of author, <*****@*****.**>
  * @param  model
  */
 public function load($model)
 {
     $list = "";
     $count = $model->get_item_count();
     for ($n = 0; $n < $count; $n++) {
         $event_member = $model->get_item($n);
         //     $time_slot = $event_member->get_time_slot_for_presentation();
         $time_slot = $event_member->get_time_slot();
         $radio_element = new fbox_radio_element();
         $radio_element->set_label($time_slot);
         $radio_element->set_name("time_slot");
         $radio_element->set_value($event_member->get_id());
         //     $radio_element->set_checked( False );
         $list .= $radio_element->get_element();
     }
     return $list;
 }