- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Generated/Forms/CalculatePlotAnalysisForm.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' => 'calculatePlotAnalysis', 23 24 'title' => __( 'Plot', 'roxyapi' ), 24 25 'submit_label' => __( 'Get reading', 'roxyapi' ), 25 ' fold_optional' => true,26 'locations' => array( ), 26 27 'sections' => array( 27 28 array( 28 29 'name' => 'plot', 29 'label' => __( 'Plot', 'roxyapi' ), 30 'label' => $labels['groups']['plot'] ?? 'Plot', 31 'fold' => false, 30 32 'fields' => array( 31 33 array( 32 34 'name' => 'width', 33 'label' => __( 'Width', 'roxyapi' ),35 'label' => $labels['fields']['width'] ?? 'Width, east to west', 34 36 'required' => false, 35 'help' => __( 'East-west extent of a rectangular plot, in the unit given', 'roxyapi' ),36 37 'type' => 'number', 38 'min' => 0, 37 39 'step' => 'any', 40 'fold' => false, 38 41 ), 39 42 array( 40 43 'name' => 'depth', 41 'label' => __( 'Depth', 'roxyapi' ),44 'label' => $labels['fields']['depth'] ?? 'Depth, north to south', 42 45 'required' => false, 43 'help' => __( 'North-south extent of a rectangular plot, in the unit given', 'roxyapi' ),44 46 'type' => 'number', 47 'min' => 0, 45 48 'step' => 'any', 49 'fold' => false, 46 50 ), 47 51 array( 48 52 'name' => 'unit', 49 'label' => __( 'Unit', 'roxyapi' ),53 'label' => $labels['fields']['unit'] ?? 'Unit', 50 54 'required' => false, 51 'help' => __( 'Unit the plot dimensions are given in', 'roxyapi' ),52 55 'type' => 'enum', 53 56 'enum' => array( 'feet', 'metres' ), 57 'default' => 'feet', 58 'enum_labels' => array( $labels['enums']['unit.feet'] ?? 'Feet', $labels['enums']['unit.metres'] ?? 'Metres' ), 59 'fold' => false, 54 60 ), 55 61 ), … … 59 65 array( 60 66 'name' => 'facing', 61 'label' => __( 'Facing', 'roxyapi' ),67 'label' => $labels['fields']['facing'] ?? 'Facing direction', 62 68 'required' => false, 63 'help' => __( 'Direction the front of the house looks out toward, one of the eight compass sectors', 'roxyapi' ),64 69 'type' => 'enum', 65 70 'enum' => array( 'North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest' ), 71 'enum_labels' => array( $labels['enums']['facing.North'] ?? 'North', $labels['enums']['facing.Northeast'] ?? 'Northeast', $labels['enums']['facing.East'] ?? 'East', $labels['enums']['facing.Southeast'] ?? 'Southeast', $labels['enums']['facing.South'] ?? 'South', $labels['enums']['facing.Southwest'] ?? 'Southwest', $labels['enums']['facing.West'] ?? 'West', $labels['enums']['facing.Northwest'] ?? 'Northwest' ), 72 'fold' => false, 66 73 ), 67 74 array( 68 75 'name' => 'facingDegrees', 69 'label' => __( 'Facing degrees', 'roxyapi' ),76 'label' => $labels['fields']['facingDegrees'] ?? 'Facing degrees', 70 77 'required' => false, 71 'help' => __( 'Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building', 'roxyapi' ),72 78 'type' => 'number', 73 79 'min' => 0, 74 80 'max' => 360, 75 81 'step' => 'any', 82 'fold' => false, 76 83 ), 77 84 array( 78 85 'name' => 'slopeLowDirection', 79 'label' => __( 'Slope low direction', 'roxyapi' ),86 'label' => $labels['fields']['slopeLowDirection'] ?? 'Direction the ground falls toward', 80 87 'required' => false, 81 'help' => __( 'Which quarter of the plot the ground falls toward, that is where the LOW point is', 'roxyapi' ),82 88 'type' => 'enum', 83 89 'enum' => array( 'North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest' ), 90 'enum_labels' => array( $labels['enums']['slopeLowDirection.North'] ?? 'North', $labels['enums']['slopeLowDirection.Northeast'] ?? 'Northeast', $labels['enums']['slopeLowDirection.East'] ?? 'East', $labels['enums']['slopeLowDirection.Southeast'] ?? 'Southeast', $labels['enums']['slopeLowDirection.South'] ?? 'South', $labels['enums']['slopeLowDirection.Southwest'] ?? 'Southwest', $labels['enums']['slopeLowDirection.West'] ?? 'West', $labels['enums']['slopeLowDirection.Northwest'] ?? 'Northwest' ), 91 'fold' => false, 84 92 ), 85 93 array( 86 94 'name' => 'road', 87 'label' => __( 'Road', 'roxyapi' ),95 'label' => $labels['fields']['road'] ?? 'Road side', 88 96 'required' => false, 89 'help' => __( 'Which side a road runs along', 'roxyapi' ),90 97 'type' => 'enum', 91 98 'enum' => array( 'North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest' ), 99 'enum_labels' => array( $labels['enums']['road.North'] ?? 'North', $labels['enums']['road.Northeast'] ?? 'Northeast', $labels['enums']['road.East'] ?? 'East', $labels['enums']['road.Southeast'] ?? 'Southeast', $labels['enums']['road.South'] ?? 'South', $labels['enums']['road.Southwest'] ?? 'Southwest', $labels['enums']['road.West'] ?? 'West', $labels['enums']['road.Northwest'] ?? 'Northwest' ), 100 'fold' => false, 92 101 ), 93 102 array( 94 103 'name' => 'water', 95 'label' => __( 'Water', 'roxyapi' ),104 'label' => $labels['fields']['water'] ?? 'Standing water direction', 96 105 'required' => false, 97 'help' => __( 'Which quarter holds standing water, a well, a tank or a sump', 'roxyapi' ),98 106 'type' => 'enum', 99 107 'enum' => array( 'North', 'Northeast', 'East', 'Southeast', 'South', 'Southwest', 'West', 'Northwest' ), 108 'enum_labels' => array( $labels['enums']['water.North'] ?? 'North', $labels['enums']['water.Northeast'] ?? 'Northeast', $labels['enums']['water.East'] ?? 'East', $labels['enums']['water.Southeast'] ?? 'Southeast', $labels['enums']['water.South'] ?? 'South', $labels['enums']['water.Southwest'] ?? 'Southwest', $labels['enums']['water.West'] ?? 'West', $labels['enums']['water.Northwest'] ?? 'Northwest' ), 109 'fold' => false, 100 110 ), 101 111 array( 102 112 'name' => 'slopeSchool', 103 'label' => __( 'Slope school', 'roxyapi' ),113 'label' => $labels['fields']['slopeSchool'] ?? 'Ground level school', 104 114 'required' => false, 105 'help' => __( 'Which reading of the ground level to lead with', 'roxyapi' ),106 115 'type' => 'enum', 107 116 'enum' => array( 'brihat-samhita', 'modern' ), 117 'default' => 'brihat-samhita', 118 'enum_labels' => array( $labels['enums']['slopeSchool.brihat-samhita'] ?? 'Brihat samhita', $labels['enums']['slopeSchool.modern'] ?? 'Modern' ), 119 'fold' => true, 108 120 ), 109 121 ),
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)