/**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     // When deployed set map_height to 490
     // map_width will be overridden to auto
     // openlayers options needs to be filled in with projection {"projection":"900913"}
     return array_merge(iform_map_get_map_parameters(), iform_user_get_user_parameters(), array(array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID of the survey that data will be posted into.', 'type' => 'int'), array('name' => 'locationLayer', 'caption' => 'Location Layer Definition', 'description' => 'Comma separated list of option definitions for the location layer', 'type' => 'string', 'group' => 'Maps', 'maxlength' => 200), array('name' => 'map_projection', 'caption' => 'Map Projection (EPSG code)', 'description' => 'EPSG code to use for the map. If using 900913 then the preset layers such as Google maps will work, but for any other ' . 'projection make sure that your base layers support it.', 'type' => 'string', 'default' => '900913', 'group' => 'Maps'), array('name' => 'sample_walk_direction_id', 'caption' => 'Sample Walk Direction Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Walk Direction.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_reliability_id', 'caption' => 'Sample Data Reliability Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Data Reliability.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_visit_number_id', 'caption' => 'Sample Visit Number Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Visit Number.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_wind_id', 'caption' => 'Sample Wind Force Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Wind Force.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_precipitation_id', 'caption' => 'Sample Precipitation Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Precipitation.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_temperature_id', 'caption' => 'Sample Temperature Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Temperature.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_cloud_id', 'caption' => 'Sample Cloud Cover Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Cloud Cover.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_start_time_id', 'caption' => 'Sample Start Time Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Start Time.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_end_time_id', 'caption' => 'Sample End Time Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the End Time.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_closure_id', 'caption' => 'Sample Closed Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for Closure: this is used to determine whether the sample is editable.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'list_id', 'caption' => 'Species List ID', 'description' => 'The Indicia ID for the species list that species can be selected from.', 'type' => 'int'), array('name' => 'occurrence_confidence_id', 'caption' => 'Occurrence Confidence Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for the Data Confidence.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_count_id', 'caption' => 'Occurrence Count Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for the Count of the particular species.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_approximation_id', 'caption' => 'Occurrence Approximation Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for whether the count is approximate.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_territorial_id', 'caption' => 'Occurrence Territorial Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for whether the species is territorial.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_atlas_code_id', 'caption' => 'Occurrence Atlas Code Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for Altas Code.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_overflying_id', 'caption' => 'Occurrence Overflying Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for whether this sighting was flying overhead.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'on_edit_survey_nav', 'caption' => 'Navigation when choosing a survey to edit', 'description' => 'Which Tab to display first when editing a survey (survey, occurrence, list)', 'group' => 'Navigation', 'type' => 'string', 'default' => 'survey'), array('name' => 'on_save_survey_nav', 'caption' => 'Navigation when saving a survey', 'description' => 'Which Tab to display after saving a survey (survey, occurrence, list)', 'group' => 'Navigation', 'type' => 'string', 'default' => 'occurrence'), array('name' => 'on_save_occurrence_nav', 'caption' => 'Navigation when saving an occurrence', 'description' => 'Which Tab to display after saving an occurrence (survey, occurrence, list)', 'group' => 'Navigation', 'type' => 'string', 'default' => 'occurrence')));
 }
Пример #2
0
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  * @todo: Implement this method
  */
 public static function get_parameters()
 {
     return array_merge(iform_map_get_map_parameters(), iform_user_get_user_parameters(), array(array('name' => 'interface', 'caption' => 'Interface Style Option', 'description' => 'Choose the style of user interface, either dividing the form up onto separate tabs, ' . 'wizard pages or having all controls on a single page.', 'type' => 'select', 'options' => array('tabs' => 'Tabs', 'wizard' => 'Wizard', 'one_page' => 'All One Page'), 'group' => 'User Interface'), array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID of the survey that data will be posted into.', 'type' => 'int'), array('name' => 'species_list_id', 'caption' => 'Species Checklist ID', 'description' => 'The Indicia ID of the species checklist that can be recorded against.', 'type' => 'int'), array('name' => 'platform_attr_id', 'caption' => 'Sighting Platform (Boat or Shore) Attribute ID', 'description' => 'Indicia ID for the sample attribute that records the sighting platform.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'platform_termlist_id', 'caption' => 'Sighting Platform (Boat or Shore) Termlist ID', 'description' => 'Indicia ID for the termlist that contains possible values for the sighting platform.', 'type' => 'int', 'group' => 'Sample Attributes'), array('name' => 'platform_mapped_term_id', 'caption' => 'Shore Term ID', 'description' => 'ID of the Shore term. This is the option that the user is allowed to click on the map for.', 'type' => 'int', 'group' => 'Sample Attributes'), array('name' => 'abundance_attr_id', 'caption' => 'Abundance Attribute ID', 'description' => 'Indicia ID for the occurrence attribute that records the approximate abundance.', 'type' => 'occAttr', 'group' => 'Occurrence Attributes'), array('name' => 'first_name_attr_id', 'caption' => 'First Name Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s first name.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'surname_attr_id', 'caption' => 'Surname Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s surname.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'phone_attr_id', 'caption' => 'Phone Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s phone.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'sample_time_attr_id', 'caption' => 'Sighting Time Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Sighting Time.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'contact_attr_id', 'caption' => 'Contactable Attribute ID', 'description' => 'Indicia ID for the sample attribute that if the user has opted in for being contacted regarding this record.', 'type' => 'smpAttr', 'group' => 'Sample Attributes')));
 }
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     return array_merge(iform_map_get_map_parameters(), iform_map_get_georef_parameters(), iform_user_get_user_parameters(), array(array('name' => 'interface', 'caption' => 'Interface Style Option', 'description' => 'Choose the style of user interface, either dividing the form up onto separate tabs, ' . 'wizard pages or having all controls on a single page.', 'type' => 'select', 'options' => array('tabs' => 'Tabs', 'wizard' => 'Wizard', 'one_page' => 'All One Page'), 'group' => 'User Interface'), array('name' => 'species_ctrl', 'caption' => 'Species Control Type', 'description' => 'The type of control that will be available to select a species.', 'type' => 'select', 'options' => array('autocomplete' => 'Autocomplete', 'select' => 'Select', 'listbox' => 'List box', 'radio_group' => 'Radio group', 'treeview' => 'Treeview', 'tree_browser' => 'Tree browser'), 'group' => 'User Interface'), array('name' => 'restrict_species_to_users_lang', 'caption' => 'Restrict species by user\'s language', 'description' => 'Only show species that are have common names in the user\'s selected language.', 'type' => 'boolean', 'group' => 'User Interface'), array('name' => 'preferred', 'caption' => 'Preferred species only?', 'description' => 'Should the selection of species be limited to preferred names only?', 'type' => 'boolean', 'group' => 'User Interface'), array('name' => 'abundance_ctrl', 'caption' => 'Abundance Control Type', 'description' => 'The type of control that will be available to select the approximate abundance.', 'type' => 'select', 'options' => array('select' => 'Select', 'listbox' => 'List box', 'radio_group' => 'Radio group'), 'group' => 'User Interface'), array('name' => 'abundance_overrides', 'caption' => 'Abundance Overrides by Species', 'description' => 'If a species should not use the default abundance attribute, list each species preferred name on a separate line, followed ' . 'by a colon then the attribute IDs, comma separated. This only works when loading the form with a preset species in the URL.', 'type' => 'textarea', 'group' => 'User Interface', 'required' => false), array('name' => 'list_id', 'caption' => 'Species List ID', 'description' => 'The Indicia ID for the species list that species can be selected from.', 'type' => 'int', 'group' => 'Misc'), array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID for the survey that data is saved into.', 'type' => 'int', 'group' => 'Misc'), array('name' => 'record_status', 'caption' => 'Record Status', 'description' => 'The initial record status for saved records.', 'type' => 'select', 'options' => array('C' => 'Records are flagged as data entry complete.', 'I' => 'Records are flagged as data entry in progress.', 'T' => 'Records are flagged as for testing purposes.'), 'default' => 'C', 'group' => 'Misc'), array('name' => 'first_name_attr_id', 'caption' => 'First Name Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s first name.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'surname_attr_id', 'caption' => 'Surname Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s surname.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'phone_attr_id', 'caption' => 'Phone Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s phone.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'contact_attr_id', 'caption' => 'Contactable Attribute ID', 'description' => 'Indicia ID for the sample attribute that if the user has opted in for being contacted regarding this record.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'abundance_attr_id', 'caption' => 'Abundance Attribute ID', 'description' => 'Indicia ID for the occurrence attribute that records the approximate abundance.', 'type' => 'occAttr', 'group' => 'Occurrence Attributes'), array('name' => 'abundance_termlist_id', 'caption' => 'Abundance Termlist ID', 'description' => 'Indicia ID for the termlist that contains the options to select from when specifying the approximate abundance.', 'type' => 'termlist', 'group' => 'Termlists'), array('name' => 'spatial_systems', 'caption' => 'Allowed Spatial Ref Systems', 'description' => 'List of allowable spatial reference systems, comma separated. Use the spatial ref system code (e.g. OSGB or the EPSG code number such as 4326). ' . 'Set to "default" to use the settings defined in the IForm Settings page.', 'type' => 'string', 'group' => 'Misc')));
 }
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     return array_merge(iform_user_get_user_parameters(), array(array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID of the survey that data will be posted into.', 'type' => 'int'), array('name' => 'layer1', 'caption' => 'Layer 1 Definition', 'description' => 'Comma separated list of option definitions for the first layer', 'type' => 'string', 'group' => 'Maps', 'maxlength' => 200), array('name' => 'layer2', 'caption' => 'Layer 2 Definition', 'description' => 'Comma separated list of option definitions for the first layer', 'type' => 'string', 'group' => 'Maps', 'maxlength' => 200), array('name' => 'preset_layers', 'caption' => 'Preset Base Layers', 'description' => 'Select the preset base layers that are available for the map.', 'type' => 'list', 'options' => array('google_physical' => 'Google Physical', 'google_streets' => 'Google Streets', 'google_hybrid' => 'Google Hybrid', 'google_satellite' => 'Google Satellite', 'virtual_earth' => 'Microsoft Virtual Earth'), 'group' => 'Maps', 'required' => false), array('name' => 'map_projection', 'caption' => 'Map Projection (EPSG code)', 'description' => 'EPSG code to use for the map. If using 900913 then the preset layers such as Google maps will work, but for any other ' . 'projection make sure that your base layers support it.', 'type' => 'string', 'default' => '900913', 'group' => 'Maps'), array('name' => 'map_centroid_lat', 'caption' => 'Centre of Map Latitude', 'description' => 'WGS84 Latitude of the initial map centre point, in decimal form.', 'type' => 'string', 'group' => 'Maps'), array('name' => 'map_centroid_long', 'caption' => 'Centre of Map Longitude', 'description' => 'WGS84 Longitude of the initial map centre point, in decimal form.', 'type' => 'string', 'group' => 'Maps'), array('name' => 'map_zoom', 'caption' => 'Map Zoom Level', 'description' => 'Zoom level of the initially displayed map.', 'type' => 'int', 'group' => 'Maps'), array('name' => 'sample_walk_direction_id', 'caption' => 'Sample Walk Direction Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Walk Direction.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_reliability_id', 'caption' => 'Sample Data Reliability Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Data Reliability.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_visit_number_id', 'caption' => 'Sample Visit Number Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Visit Number.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_wind_id', 'caption' => 'Sample Wind Force Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Wind Force.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_precipitation_id', 'caption' => 'Sample Precipitation Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Precipitation.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_temperature_id', 'caption' => 'Sample Temperature Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Temperature.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_cloud_id', 'caption' => 'Sample Cloud Cover Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Cloud Cover.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_start_time_id', 'caption' => 'Sample Start Time Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the Start Time.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_end_time_id', 'caption' => 'Sample End Time Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for the End Time.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'sample_closure_id', 'caption' => 'Sample Closed Custom Attribute ID', 'description' => 'The Indicia ID for the Sample Custom Attribute for Closure: this is used to determine whether the sample is editable.', 'group' => 'Sample Attributes', 'type' => 'int'), array('name' => 'list_id', 'caption' => 'Species List ID', 'description' => 'The Indicia ID for the species list that species can be selected from.', 'type' => 'int'), array('name' => 'occurrence_confidence_id', 'caption' => 'Occurrence Confidence Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for the Data Confidence.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_count_id', 'caption' => 'Occurrence Count Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for the Count of the particular species.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_approximation_id', 'caption' => 'Occurrence Approximation Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for whether the count is approximate.', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_territorial_id', 'caption' => 'Occurrence Territorial Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for [TODO].', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_atlas_code_id', 'caption' => 'Occurrence Atlas Code Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for [TODO].', 'group' => 'Occurrence Attributes', 'type' => 'int'), array('name' => 'occurrence_overflying_id', 'caption' => 'Occurrence Overflying Custom Attribute ID', 'description' => 'The Indicia ID for the Occurrence Custom Attribute for [TODO].', 'group' => 'Occurrence Attributes', 'type' => 'int')));
 }
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     return array_merge(iform_map_get_map_parameters(), iform_user_get_user_parameters(), array(array('name' => 'interface', 'caption' => 'Interface Style Option', 'description' => 'Choose the style of user interface, either dividing the form up onto separate tabs, ' . 'wizard pages or having all controls on a single page.', 'type' => 'select', 'options' => array('tabs' => 'Tabs', 'wizard' => 'Wizard', 'one_page' => 'All One Page'), 'group' => 'User Interface'), array('name' => 'species_ctrl', 'caption' => 'Species Control Type', 'description' => 'The type of control that will be available to select a species.', 'type' => 'select', 'options' => array('autocomplete' => 'Autocomplete', 'select' => 'Select', 'listbox' => 'List box', 'radio_group' => 'Radio group', 'treeview' => 'Treeview', 'tree_browser' => 'Tree browser'), 'group' => 'User Interface'), array('name' => 'restrict_species_to_users_lang', 'caption' => 'Restrict species by user\'s language', 'description' => 'Only show species that are have common names in the user\'s selected language.', 'type' => 'boolean', 'group' => 'User Interface'), array('name' => 'abundance_ctrl', 'caption' => 'Abundance Control Type', 'description' => 'The type of control that will be available to select the approximate abundance.', 'type' => 'select', 'options' => array('select' => 'Select', 'listbox' => 'List box', 'radio_group' => 'Radio group'), 'group' => 'User Interface'), array('name' => 'list_id', 'caption' => 'Species List ID', 'description' => 'The Indicia ID for the species list that species can be selected from.', 'type' => 'int', 'group' => 'Misc'), array('name' => 'preferred', 'caption' => 'Preferred species only?', 'description' => 'Should the selection of species be limited to preferred names only?', 'type' => 'boolean', 'group' => 'Misc'), array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID for the survey that data is saved into.', 'type' => 'int', 'group' => 'Misc'), array('name' => 'first_name_attr_id', 'caption' => 'First Name Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s first name.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'surname_attr_id', 'caption' => 'Surname Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s surname.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'phone_attr_id', 'caption' => 'Phone Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s phone.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'contact_attr_id', 'caption' => 'Contactable Attribute ID', 'description' => 'Indicia ID for the sample attribute that if the user has opted in for being contacted regarding this record.', 'type' => 'smpAttr', 'group' => 'Sample Attributes'), array('name' => 'abundance_attr_id', 'caption' => 'Abundance Attribute ID', 'description' => 'Indicia ID for the occurrence attribute that records the approximate abundance.', 'type' => 'occAttr', 'group' => 'Occurrence Attributes'), array('name' => 'abundance_termlist_id', 'caption' => 'Abundance Termlist ID', 'description' => 'Indicia ID for the termlist that contains the options to select from when specifying the approximate abundance.', 'type' => 'termlist', 'group' => 'Termlists'), array('name' => 'spatial_systems', 'caption' => 'Allowed Spatial Ref Systems', 'description' => 'List of allowable spatial reference systems, comma separated. Use the spatial ref system code (e.g. OSGB or the EPSG code number such as 4326).', 'type' => 'string', 'group' => 'Map'), array('name' => 'georefPreferredArea', 'caption' => 'Preferred area for georeferencing.', 'description' => 'Preferred area to look within when trying to resolve a place name. For example set this to the region name you are recording within.', 'type' => 'string', 'default' => 'gb', 'group' => 'Map'), array('name' => 'georefCountry', 'caption' => 'Preferred country for georeferencing.', 'description' => 'Preferred country to look within when trying to resolve a place name.', 'type' => 'string', 'default' => 'United Kingdom', 'group' => 'Map')));
 }