1 | <?php |
||
31 | trait FormattingSalariu |
||
32 | { |
||
33 | |||
34 | use \danielgp\salariu\BasicSalariu; |
||
35 | |||
36 | private function buildArrayOfFieldsStyled() |
||
45 | |||
46 | private function buildStyleForCellFormat($styleId) |
||
54 | |||
55 | private function establishLocalizationToDisplay() |
||
56 | { |
||
57 | if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { |
||
58 | setlocale(LC_TIME, explode('_', $this->tCmnSession->get('lang'))[0]); |
||
59 | } else { |
||
60 | setlocale(LC_TIME, $this->tCmnSession->get('lang') . '.UTF8'); |
||
61 | } |
||
62 | } |
||
63 | |||
64 | private function setFormInputSelectPC() |
||
65 | { |
||
66 | $choices = [ |
||
67 | $this->tApp->gettext('i18n_Form_Label_CatholicEasterFree_ChoiceNo'), |
||
68 | $this->tApp->gettext('i18n_Form_Label_CatholicEasterFree_ChoiceYes'), |
||
69 | ]; |
||
70 | return $this->setArrayToSelect($choices, $this->tCmnSuperGlobals->get('pc'), 'pc', ['size' => 1]); |
||
71 | } |
||
72 | |||
73 | private function setFormInputSelectPI() |
||
74 | { |
||
75 | $temp2 = []; |
||
76 | for ($counter = 0; $counter <= 4; $counter++) { |
||
77 | $temp2[$counter] = $counter . ($counter == 4 ? '+' : ''); |
||
78 | } |
||
79 | return $this->setArrayToSelect($temp2, $this->tCmnSuperGlobals->get('pi'), 'pi', ['size' => 1]); |
||
80 | } |
||
81 | |||
82 | private function setFormInputSelectYM($ymValues) |
||
83 | { |
||
84 | return $this->setArrayToSelect($ymValues, $this->tCmnSuperGlobals->get('ym'), 'ym', ['size' => 1]); |
||
85 | } |
||
86 | |||
87 | private function setFormatRow($text, $value) |
||
102 | } |
||
103 |