예제 #1
0
 function load($id)
 {
     parent::load($id);
     $this->events = json_decode($this->events);
     $this->general_export_fields = $this->general_export_fields == '' ? array() : json_decode($this->general_export_fields);
     $this->group_export_fields = $this->group_export_fields == '' ? array() : json_decode($this->group_export_fields);
     $this->individual_export_fields = $this->individual_export_fields == '' ? array() : json_decode($this->individual_export_fields);
 }
예제 #2
0
 function load($id)
 {
     parent::load($id);
     $query = "select * from #__community_fields_values where user_id = {$id} ";
     $data = $this->query($query);
     if (is_array($data)) {
         foreach ($data as $row) {
             if (isset($this->fields[$row->field_id])) {
                 $field = $this->fields[$row->field_id];
             }
             if (isset($field->fieldcode) && isset($row->value) && $row->value != "") {
                 $this->{$field->fieldcode} = $row->value;
             }
         }
     }
 }
예제 #3
0
 function load($id)
 {
     parent::load($id);
     $this->fields = $this->TableMemberfield->findByMemberId($this->groupMemberId);
 }
예제 #4
0
 function load($id)
 {
     parent::load($id);
     $this->config = $this->getConfig();
 }
예제 #5
0
 function load($id = 0)
 {
     parent::load($id);
     $date = new JDate($this->register_date);
     $this->TableEvent->load($this->eventId);
     $this->fee = $this->TableFee->findByUserId($this->userId);
     $this->members = $this->TableMember->findByUserId($this->userId);
     $this->fields = $this->TableUserfield->findByUserId($this->userId);
     $this->TableDiscountcode->load($this->discount_code_id);
     $this->card = $this->TableCard->findByUserId($this->userId);
     if ($this->user_id > 0) {
         $this->juser = $this->TableJUser->load($this->user_id);
     }
 }
예제 #6
0
 function load($id)
 {
     parent::load($id);
     $this->formatTimeproperty($this->dtendtime);
     $this->formatTimeproperty($this->dtstarttime);
     $this->formatTimeproperty($this->latefeetime);
     $this->formatTimeproperty($this->bird_discount_time);
     $this->formatTimeproperty($this->starttime);
     $this->formatTimeproperty($this->cut_off_time);
     $this->formatTimeproperty($this->change_time);
     $this->formatTimeproperty($this->cancel_time);
     $this->group = $this->getGroup();
     //$this->config = $this->getConfig();
     $this->discountcode = $this->getDiscountcode();
     $this->prerequisitecategory = $this->getPrerequisitecategory();
     $this->prerequisite = $this->getPrerequisite();
     $this->field = $this->getField();
     $this->file = $this->getFile();
     $this->feeorder = $this->getFeeorder();
     $this->TableLocation->load($this->location_id);
     $this->TableCategory->load($this->category);
     if ($this->parent_id == 0 && $this->repetition_id > 0) {
         $this->repetition = $this->TableRepetition->findbyeventId($this->slabId);
     } else {
         $this->repetition = false;
     }
 }
예제 #7
0
 function load($id = 0)
 {
     parent::load($id);
     $this->label = stripslashes($this->label);
     if (!is_array($this->selected)) {
         $this->selected = stripslashes($this->selected);
     }
     if (!is_array($this->selection_values) && $this->selection_values !== "0") {
         $this->selection_values = array_filter(explode('|', $this->selection_values), array($this, 'filter'));
     } elseif (!is_array($this->selection_values) && $this->selection_values == 0) {
         $this->selection_values = array("0");
     }
     if (!is_array($this->selected) && $this->selected !== "0") {
         $this->selected = array_filter(explode('|', stripslashes($this->selected)), array('TableField', 'filter'));
     } elseif (!is_array($this->selected) && $this->selected == 0) {
         $this->selected = array("0");
     }
     if (!is_array($this->fees) && $this->fees !== "0") {
         $this->fees = array_filter(explode('|', stripslashes($this->fees)), array('TableField', 'filter'));
     } elseif (!is_array($this->fees) && $this->fees == 0) {
         $this->fees = array("0");
     }
     if (!is_array($this->listing) && $this->listing !== "0") {
         $this->listing = array_filter(explode('|', stripslashes($this->listing)), array($this, 'filter'));
     } elseif (!is_array($this->listing) && $this->listing == 0) {
         $this->listing = array("0");
     }
 }