- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/GetPlanetaryPositionsForm.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' => 'getPlanetaryPositions', 23 24 'title' => __( 'Planetary Positions', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( array( 'anchor' => 'latitude', 'section' => '', 'id' => '', 'fields' => array( 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone' ) ) ), 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' => __( 'Target date for planetary positions 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' => __( 'Time in 24-hour HH:MM:SS format for precise calculations', 'roxyapi' ),42 42 'type' => 'time', 43 'fold' => false, 43 44 ), 44 45 array( 45 46 'name' => 'nodeType', 46 'label' => __( 'Node type', 'roxyapi' ),47 'label' => $labels['fields']['nodeType'] ?? 'Lunar node type', 47 48 'required' => false, 48 'help' => __( 'Lunar node convention', 'roxyapi' ),49 49 'type' => 'enum', 50 50 'enum' => array( 'mean', 'true' ), 51 'default' => 'true', 52 'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ), 53 'fold' => true, 51 54 ), 52 55 array( 53 56 'name' => 'latitude', 54 'label' => __( 'Latitude', 'roxyapi' ),57 'label' => $labels['fields']['latitude'] ?? 'Latitude', 55 58 'required' => true, 56 'help' => __( 'Observer latitude in decimal degrees (-90 to 90)', 'roxyapi' ),57 59 'type' => 'number', 58 60 'min' => -90, 59 61 'max' => 90, 60 62 'step' => 'any', 63 'fold' => false, 61 64 ), 62 65 array( 63 66 'name' => 'longitude', 64 'label' => __( 'Longitude', 'roxyapi' ),67 'label' => $labels['fields']['longitude'] ?? 'Longitude', 65 68 'required' => true, 66 'help' => __( 'Observer longitude in decimal degrees (-180 to 180)', 'roxyapi' ),67 69 'type' => 'number', 68 70 'min' => -180, 69 71 'max' => 180, 70 72 'step' => 'any', 73 'fold' => false, 71 74 ), 72 75 array( 73 76 'name' => 'timezone', 74 'label' => __( 'Timezone', 'roxyapi' ),77 'label' => $labels['fields']['timezone'] ?? 'Timezone', 75 78 'required' => true, 76 79 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 77 80 'type' => 'timezone', 81 'min' => -14, 82 'max' => 14, 83 'fold' => false, 78 84 ), 79 85 ),
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)