- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/GetKpRulingPlanetsForm.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' => 'getKpRulingPlanets', 23 24 'title' => __( 'KP Ruling Planets with Optional Significators', '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' => 'latitude', 32 'label' => __( 'Latitude', 'roxyapi' ),33 'label' => $labels['fields']['latitude'] ?? 'Latitude', 33 34 'required' => true, 34 'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),35 35 'type' => 'number', 36 36 'min' => -90, 37 37 'max' => 90, 38 38 'step' => 'any', 39 'fold' => false, 39 40 ), 40 41 array( 41 42 'name' => 'longitude', 42 'label' => __( 'Longitude', 'roxyapi' ),43 'label' => $labels['fields']['longitude'] ?? 'Longitude', 43 44 'required' => true, 44 'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),45 45 'type' => 'number', 46 46 'min' => -180, 47 47 'max' => 180, 48 48 'step' => 'any', 49 'fold' => false, 49 50 ), 50 51 array( 51 52 'name' => 'timezone', 52 'label' => __( 'Timezone', 'roxyapi' ),53 'label' => $labels['fields']['timezone'] ?? 'Timezone', 53 54 'required' => false, 54 55 'help' => __( 'Select the timezone of the location.', 'roxyapi' ), 55 56 'type' => 'timezone', 57 'min' => -14, 58 'max' => 14, 59 'default' => 5.5, 60 'fold' => false, 56 61 ), 57 62 array( 58 63 'name' => 'datetime', 59 'label' => __( 'Datetime', 'roxyapi' ),64 'label' => $labels['fields']['datetime'] ?? 'Date and time', 60 65 'required' => false, 61 'help' => __( 'ISO 8601 datetime (YYYY-MM-DDTHH:MM:SS) for ruling planets', 'roxyapi' ),62 66 'type' => 'time', 67 'fold' => true, 63 68 ), 64 69 array( 65 70 'name' => 'birthDate', 66 'label' => __( 'Birth date', 'roxyapi' ),71 'label' => $labels['fields']['birthDate'] ?? 'Birth date', 67 72 'required' => false, 68 'help' => __( 'Birth date (YYYY-MM-DD) to calculate significators', 'roxyapi' ),69 73 'type' => 'date', 74 'fold' => true, 70 75 ), 71 76 array( 72 77 'name' => 'birthTime', 73 'label' => __( 'Birth time', 'roxyapi' ),78 'label' => $labels['fields']['birthTime'] ?? 'Birth time', 74 79 'required' => false, 75 'help' => __( 'Birth time (HH:MM:SS) for significator calculation', 'roxyapi' ),76 80 'type' => 'time', 81 'fold' => true, 77 82 ), 78 83 array( 79 84 'name' => 'nodeType', 80 'label' => __( 'Node type', 'roxyapi' ),85 'label' => $labels['fields']['nodeType'] ?? 'Lunar node type', 81 86 'required' => false, 82 'help' => __( 'Lunar node convention', 'roxyapi' ),83 87 'type' => 'enum', 84 88 'enum' => array( 'mean', 'true' ), 89 'default' => 'mean', 90 'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ), 91 'fold' => true, 92 ), 93 array( 94 'name' => 'focus', 95 'label' => $labels['fields']['focus'] ?? 'Focus', 96 'required' => false, 97 'type' => 'enum', 98 'enum' => array( 'general', 'finance' ), 99 'default' => 'general', 100 'enum_labels' => array( $labels['enums']['focus.general'] ?? 'General', $labels['enums']['focus.finance'] ?? 'Finance' ), 101 'fold' => true, 85 102 ), 86 103 ), … … 93 110 */ 94 111 public static function call( array $body ) { 95 return \RoxyAPI\Generated\Client::getKpRulingPlanets( $body);112 return \RoxyAPI\Generated\Client::getKpRulingPlanets( array_diff_key( $body, array_flip( array( 'focus' ) ) ), array_intersect_key( $body, array_flip( array( 'focus' ) ) ) ); 96 113 } 97 114 }
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)