- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/DetectAspectPatternsForm.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' => 'detectAspectPatterns', 23 24 'title' => __( 'Aspect Patterns', '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' => __( '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' => 'latitude', 46 'label' => __( 'Latitude', 'roxyapi' ),47 'label' => $labels['fields']['latitude'] ?? 'Latitude', 47 48 'required' => true, 48 'help' => __( 'Birth location latitude in decimal degrees (-90 to 90)', 'roxyapi' ),49 49 'type' => 'number', 50 50 'min' => -90, 51 51 'max' => 90, 52 52 'step' => 'any', 53 'fold' => false, 53 54 ), 54 55 array( 55 56 'name' => 'longitude', 56 'label' => __( 'Longitude', 'roxyapi' ),57 'label' => $labels['fields']['longitude'] ?? 'Longitude', 57 58 'required' => true, 58 'help' => __( 'Birth location longitude in decimal degrees (-180 to 180)', 'roxyapi' ),59 59 'type' => 'number', 60 60 'min' => -180, 61 61 'max' => 180, 62 62 'step' => 'any', 63 'fold' => false, 63 64 ), 64 65 array( 65 66 'name' => 'timezone', 66 'label' => __( 'Timezone', 'roxyapi' ),67 'label' => $labels['fields']['timezone'] ?? 'Timezone', 67 68 'required' => true, 68 69 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 69 70 'type' => 'timezone', 71 'min' => -14, 72 'max' => 14, 73 'fold' => false, 70 74 ), 71 75 array( 72 76 'name' => 'nodeType', 73 'label' => __( 'Node type', 'roxyapi' ),77 'label' => $labels['fields']['nodeType'] ?? 'Lunar node type', 74 78 'required' => false, 75 'help' => __( 'Lunar node convention', 'roxyapi' ),76 79 'type' => 'enum', 77 80 'enum' => array( 'mean', 'true' ), 81 'default' => 'true', 82 'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ), 83 'fold' => true, 84 ), 85 array( 86 'name' => 'strictOrbs', 87 'label' => $labels['fields']['strictOrbs'] ?? 'Use tighter orbs', 88 'required' => false, 89 'type' => 'text', 90 'fold' => true, 91 ), 92 array( 93 'name' => 'include', 94 'label' => $labels['fields']['include'] ?? 'Additional bodies', 95 'required' => false, 96 'type' => 'text', 97 'fold' => true, 78 98 ), 79 99 ), … … 86 106 */ 87 107 public static function call( array $body ) { 88 return \RoxyAPI\Generated\Client::detectAspectPatterns( $body);108 return \RoxyAPI\Generated\Client::detectAspectPatterns( array_diff_key( $body, array_flip( array( 'strictOrbs', 'include' ) ) ), array_intersect_key( $body, array_flip( array( 'strictOrbs', 'include' ) ) ) ); 89 109 } 90 110 }
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)