public function getProfilDataVals() { if (!$this->profilDataVals) { $this->profilDataVals = ProfilDataVal::listByprofilData($this); } return $this->profilDataVals; }
<th>Skriv ditt eget svar</th> </tr> <?php /*DOLT /JL <tr> <th>Kundnummer</th> <td> <input type="text" name="customerId" value="<?= $USER->getCustomerId() ?>" class="mmTextField" /> </td> </tr> */ ?> <?php $profilDatas = ProfilData::listAll(); foreach ($profilDatas as $key => $profilData) { $profilDataVals = ProfilDataVal::listByprofilData($profilData); $vald_profilDataVal = $USER->getProfilDataVal($profilData->getId()); $profilDataText = $USER->getProfilDataText($profilData->getId()); ?> <tr> <th><?php echo $profilData->getNamn(); ?> </th> <td><select name="profilData[<?php echo $profilData->getId(); ?> ]"<?php echo strlen($profilDataText) > 0 ? ' disabled' : ''; ?> id="profilDataSelect_<?php