- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/CalculateLuckPillarsForm.php
r3747703 r3749195 19 19 20 20 public static function spec(): array { 21 $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) ); 21 22 return array( 22 23 'operation_id' => 'calculateLuckPillars', 23 24 'title' => __( 'Luck Pillars', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( array( 'anchor' => 'timezone', 'section' => '', 'id' => '', 'fields' => array( 'timezone' => 'timezone', 'latitude' => 'latitude', 'longitude' => 'longitude' ) ) ), 26 27 'sections' => array( 27 28 … … 30 31 array( 31 32 'name' => 'date', 32 'label' => __( 'Date', 'roxyapi' ),33 'label' => $labels['fields']['date'] ?? 'Date', 33 34 'required' => true, 34 'help' => __( 'Birth date in YYYY-MM-DD format', 'roxyapi' ),35 35 'type' => 'date', 36 'fold' => false, 36 37 ), 37 38 array( 38 39 'name' => 'time', 39 'label' => __( 'Time', 'roxyapi' ),40 'label' => $labels['fields']['time'] ?? 'Time', 40 41 'required' => true, 41 'help' => __( 'Birth time in 24-hour HH:MM:SS format', 'roxyapi' ),42 42 'type' => 'time', 43 'fold' => false, 43 44 ), 44 45 array( 45 46 'name' => 'timezone', 46 'label' => __( 'Timezone', 'roxyapi' ),47 'label' => $labels['fields']['timezone'] ?? 'Timezone', 47 48 'required' => true, 48 49 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 49 50 'type' => 'timezone', 51 'min' => -14, 52 'max' => 14, 53 'fold' => false, 50 54 ), 51 55 array( 52 56 'name' => 'latitude', 53 'label' => __( 'Latitude', 'roxyapi' ),57 'label' => $labels['fields']['latitude'] ?? 'Latitude', 54 58 'required' => false, 55 'help' => __( 'Birth latitude in decimal degrees', 'roxyapi' ),56 59 'type' => 'number', 57 60 'min' => -90, 58 61 'max' => 90, 62 'default' => 0, 59 63 'step' => 'any', 64 'fold' => false, 60 65 ), 61 66 array( 62 67 'name' => 'longitude', 63 'label' => __( 'Longitude', 'roxyapi' ),68 'label' => $labels['fields']['longitude'] ?? 'Longitude', 64 69 'required' => false, 65 'help' => __( 'Birth longitude in decimal degrees', 'roxyapi' ),66 70 'type' => 'number', 67 71 'min' => -180, 68 72 'max' => 180, 69 73 'step' => 'any', 74 'fold' => false, 70 75 ), 71 76 array( 72 77 'name' => 'dayBoundary', 73 'label' => __( 'Day boundary', 'roxyapi' ),78 'label' => $labels['fields']['dayBoundary'] ?? 'Day boundary', 74 79 'required' => false, 75 'help' => __( 'Which instant starts the sexagenary DAY, which only matters for a birth between 23:00 and 23:59', 'roxyapi' ),76 80 'type' => 'enum', 77 81 'enum' => array( 'split-zi', 'midnight', 'early-zi' ), 82 'default' => 'split-zi', 83 'enum_labels' => array( $labels['enums']['dayBoundary.split-zi'] ?? 'Split zi', $labels['enums']['dayBoundary.midnight'] ?? 'Midnight', $labels['enums']['dayBoundary.early-zi'] ?? 'Early zi' ), 84 'fold' => true, 78 85 ), 79 86 array( 80 87 'name' => 'yearBoundary', 81 'label' => __( 'Year boundary', 'roxyapi' ),88 'label' => $labels['fields']['yearBoundary'] ?? 'Year boundary', 82 89 'required' => false, 83 'help' => __( 'Which instant starts the sexagenary YEAR', 'roxyapi' ),84 90 'type' => 'enum', 85 91 'enum' => array( 'li-chun', 'lunar-new-year' ), 92 'default' => 'li-chun', 93 'enum_labels' => array( $labels['enums']['yearBoundary.li-chun'] ?? 'Li chun', $labels['enums']['yearBoundary.lunar-new-year'] ?? 'Lunar new year' ), 94 'fold' => true, 86 95 ), 87 96 array( 88 97 'name' => 'hourClock', 89 'label' => __( 'Hour clock', 'roxyapi' ),98 'label' => $labels['fields']['hourClock'] ?? 'Hour clock', 90 99 'required' => false, 91 'help' => __( 'Which clock the day boundary and the hour branch are read from, so a correction that carries a birth across midnight moves the day pillar with the hour', 'roxyapi' ),92 100 'type' => 'enum', 93 101 'enum' => array( 'clock', 'local-mean', 'solar' ), 102 'default' => 'clock', 103 'enum_labels' => array( $labels['enums']['hourClock.clock'] ?? 'Clock', $labels['enums']['hourClock.local-mean'] ?? 'Local mean', $labels['enums']['hourClock.solar'] ?? 'Solar' ), 104 'fold' => true, 94 105 ), 95 106 array( 96 107 'name' => 'gender', 97 'label' => __( 'Gender', 'roxyapi' ),108 'label' => $labels['fields']['gender'] ?? 'Gender', 98 109 'required' => true, 99 'help' => __( 'Subject sex, used only to pick the luck-pillar direction: a male born in a yang-stem year and a female born in a yin-stem year run forward through the sexagenary cycle, and the other two combinations run backward', 'roxyapi' ),100 110 'type' => 'enum', 101 111 'enum' => array( 'male', 'female' ), 112 'enum_labels' => array( $labels['enums']['gender.male'] ?? 'Male', $labels['enums']['gender.female'] ?? 'Female' ), 113 'fold' => false, 102 114 ), 103 115 array( 104 116 'name' => 'count', 105 'label' => __( 'Count', 'roxyapi' ),117 'label' => $labels['fields']['count'] ?? 'How many', 106 118 'required' => false, 107 'help' => __( 'How many ten-year luck pillars to return, 1 to 12', 'roxyapi' ),108 119 'type' => 'integer', 109 120 'min' => 1, 110 121 'max' => 12, 122 'default' => 8, 123 'fold' => true, 111 124 ), 112 125 array( 113 126 'name' => 'annualFromYear', 114 'label' => __( 'Annual from year', 'roxyapi' ),127 'label' => $labels['fields']['annualFromYear'] ?? 'Annual pillars from year', 115 128 'required' => false, 116 'help' => __( 'First Gregorian year of the annual pillar overlay', 'roxyapi' ),117 129 'type' => 'integer', 118 130 'min' => 1551, 119 131 'max' => 2649, 132 'fold' => true, 120 133 ), 121 134 array( 122 135 'name' => 'annualYears', 123 'label' => __( 'Annual years', 'roxyapi' ),136 'label' => $labels['fields']['annualYears'] ?? 'Years of annual pillars', 124 137 'required' => false, 125 'help' => __( 'How many consecutive years the annual overlay covers, 1 to 20', 'roxyapi' ),126 138 'type' => 'integer', 127 139 'min' => 1, 128 140 'max' => 20, 141 'default' => 10, 142 'fold' => true, 129 143 ), 130 144 ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)