| Conditions | 4 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | protected function onParentSet() : void |
||
| 37 | { |
||
| 38 | parent::onParentSet(); |
||
| 39 | |||
| 40 | $li = localeconv(); |
||
| 41 | |||
| 42 | $this->strDP = $this->oFG->getConfig()->getString('Currency.DecimalPoint', $this->strDP); |
||
| 43 | $this->strTS = $this->oFG->getConfig()->getString('Currency.ThousandsSep', $this->strTS); |
||
| 44 | |||
| 45 | $this->addAttribute('data-validation', 'float:' . ($this->bEmptyAllowed ? 'e' : 'x') . $this->iDec . $this->strDP . $this->strTS); |
||
| 46 | $this->setPlaceholder($this->oFG->getConfig()->getString('Currency.Placeholder')); |
||
| 47 | |||
| 48 | if ($this->oFlags->isSet(FormFlags::ADD_CUR)) { |
||
| 49 | $this->strSuffix = $this->oFG->getConfig()->getString('Currency.Symbol', ($li['currency_symbol'] ?: 'USD')); |
||
| 50 | } |
||
| 53 |