当前位置: 首页>>代码示例>>PHP>>正文


PHP iform_map_get_map_parameters函数代码示例

本文整理汇总了PHP中iform_map_get_map_parameters函数的典型用法代码示例。如果您正苦于以下问题:PHP iform_map_get_map_parameters函数的具体用法?PHP iform_map_get_map_parameters怎么用?PHP iform_map_get_map_parameters使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了iform_map_get_map_parameters函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_parameters

    /**
     * Get the list of parameters for this form.
     * @return array List of parameters that this form requires.
     */
    public static function get_parameters()
    {
        $r = array_merge(iform_map_get_map_parameters(), iform_report_get_minimal_report_parameters(), array(array('name' => 'mapping_report_name', 'caption' => 'Report for map output', 'description' => 'Report used to obtain the output for the map. Should have the same parameters as the grid report but only needs to ' . 'return the occurrence id, geom and any shape formatting.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'library/occurrences/filterable_explore_list_mapping'), array('name' => 'mapping_report_name_lores', 'caption' => 'Report for lo res map output', 'description' => 'Report used to obtain the output for the map at low zoom levels.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'library/occurrences/filterable_explore_list_mapping_lores'), array('name' => 'record_details_report', 'caption' => 'Report for record details', 'description' => 'Report used to obtain the details of a record. See reports_for_prebuilt_forms/verification_3/record_data.xml for an example.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'reports_for_prebuilt_forms/verification_3/record_data'), array('name' => 'record_attrs_report', 'caption' => 'Report for record attributes', 'description' => 'Report used to obtain the custom attributes of a record. See reports_for_prebuilt_forms/verification_3/record_data_attributes.xml for an example.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'reports_for_prebuilt_forms/verification_3/record_data_attributes'), array('name' => 'columns_config', 'caption' => 'Columns Configuration', 'description' => 'Define a list of columns with various configuration options when you want to override the ' . 'default output of the report.', 'type' => 'jsonwidget', 'default' => '[]', 'schema' => '{
    "type":"seq",
    "title":"Columns List",
    "sequence":
    [
      {
        "type":"map",
        "title":"Column",
        "mapping": {
          "fieldname": {"type":"str","desc":"Name of the field to output in this column. Does not need to be specified when using the template option."},
          "display": {"type":"str","desc":"Caption of the column, which defaults to the fieldname if not specified."},
          "actions": {
            "type":"seq",
            "title":"Actions List",
            "sequence": [{
              "type":"map",
              "title":"Actions",
              "desc":"List of actions to make available for each row in the grid.",
              "mapping": {
                "caption": {"type":"str","desc":"Display caption for the action\'s link."},
                "visibility_field": {"type":"str","desc":"Optional name of a field in the data which contains true or false to define the visibility of this action."},
                "url": {"type":"str","desc":"A url that the action link will point to, unless overridden by JavaScript. The url can contain tokens which ' . 'will be subsituted for field values, e.g. for http://www.example.com/image/{id} the {id} is replaced with a field called id in the current row. ' . 'Can also use the subsitution {currentUrl} to link back to the current page, {rootFolder} to represent the folder on the server that the current PHP page is running from, and ' . '{imageFolder} for the image upload folder"},
                "urlParams": {
                  "type":"map",
                  "subtype":"str",
                  "desc":"List of parameters to append to the URL link, with field value replacements such as {id} begin replaced ' . 'by the value of the id field for the current row."
                },
                "class": {"type":"str","desc":"CSS class to attach to the action link."},
                "javascript": {"type":"str","desc":"JavaScript that will be run when the link is clicked. Can contain field value substitutions ' . 'such as {id} which is replaced by the value of the id field for the current row. Because the javascript may pass the field values as parameters to functions, ' . 'there are escaped versions of each of the replacements available for the javascript action type. Add -escape-quote or ' . '-escape-dblquote to the fieldname. For example this would be valid in the action javascript: foo(\\"{bar-escape-dblquote}\\"); ' . 'even if the field value contains a double quote which would have broken the syntax."}
              }
            }]
          },
          "visible": {"type":"bool","desc":"Should this column be shown? Hidden columns can still be used in templates or actions."},
          "template": {"type":"str","desc":"Allows you to create columns that contain dynamic content using a template, rather than just the output ' . 'of a field. The template text can contain fieldnames in braces, which will be replaced by the respective field values. ' . 'Note that template columns cannot be sorted by clicking grid headers." }
        }
      }
    ]
  }', 'group' => 'Report Settings', 'required' => false), array('name' => 'verifiers_mapping', 'caption' => 'Verifiers Mapping', 'description' => 'Provide either the ID of a single Indicia user to act as the verifier, or provide a comma separated list ' . 'of <drupal user id>=<indicia user id> pairs to define the mapping from Drupal to Indicia users. E.g. ' . '"1=2,2=3. If the Easy Login feature is enabled then this setting is ignored, as every Drupal user has their ' . 'own warehouse User ID.', 'type' => 'textarea', 'default' => 1), array('name' => 'email_subject_send_to_verifier', 'caption' => 'Send to Expert Email Subject', 'description' => 'Default subject for the send to expert email. Replacements allowed include %taxon% and %id%.', 'type' => 'string', 'default' => 'Record of %taxon% requires verification (ID:%id%)', 'group' => 'Verifier emails'), array('name' => 'email_body_send_to_verifier', 'caption' => 'Send to Expert Email Body', 'description' => 'Default body for the send to expert email. Replacements allowed include %taxon%, %id% and %record% which is replaced to give details of the record.', 'type' => 'textarea', 'default' => 'The following record requires verification. Please reply to this mail with the word Verified, Rejected or Query ' . 'in the email body, followed by any comments you have including the proposed re-identification if relevant on the next line.' . "\n\n%record%", 'group' => 'Verifier emails'), array('name' => 'email_subject_send_to_recorder', 'caption' => 'Send to Recorder Email Subject', 'description' => 'Default subject for the send to recorder email. Replacements allowed include %taxon% and %id%.', 'type' => 'string', 'default' => 'Record of %taxon% requires confirmation (ID:%id%)', 'group' => 'Recorder emails'), array('name' => 'email_body_send_to_recorder', 'caption' => 'Send to Recorder Email Body', 'description' => 'Default body for the send to recorder email. Replacements allowed include %taxon%, %id% and %record% which is replaced to give details of the record.', 'type' => 'textarea', 'default' => 'The following record requires confirmation. Please could you reply to this email stating how confident you are that the record is correct ' . 'and any other information you have which may help to confirm this.' . "\n\n%record%", 'group' => 'Recorder emails'), array('name' => 'auto_discard_rows', 'caption' => 'Automatically remove rows', 'description' => 'If checked, then when changing the status of a record the record is removed from the grid if it no ' . 'longer matches the grid filter.', 'type' => 'checkbox', 'default' => 'true', 'required' => false), array('name' => 'show_map', 'caption' => 'Show map of the currently selected records', 'description' => 'If checked, then a map of currently selected records is shown. This lets the verifier do things like visually spot outliers to check.', 'type' => 'checkbox', 'default' => 'true', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_feature_type', 'caption' => 'Feature type for Indicia species layer', 'description' => 'Set to the name of a feature type on GeoServer that will be loaded to display the Indicia species data for the selected record. ' . 'Leave empty for no layer. Normally this should be set to a feature type that exposes the cache_occurrences view.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_ds_filter_field', 'caption' => 'Filter method', 'description' => 'Method of filtering taxa to display the species layer.', 'type' => 'select', 'options' => array('taxon_meaning_id' => 'Meaning ID', 'taxon_external_key' => 'External Key'), 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_filter_field', 'caption' => 'Field to filter on', 'description' => 'Set to the name of a field exposed by the feature type which can be used to filter for the species data to display. Examples include ' . 'taxon_external_key, taxon_meaning_id.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_sld', 'caption' => 'SLD file from GeoServer for Indicia species layer', 'description' => 'Set to the name of an SLD file available on the GeoServer for the rendering of the Indicia species layer, or leave blank for default.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'additional_wms_species_layer_title', 'caption' => 'Additional WMS layer title', 'description' => 'Title of an additional species layer to load from a WMS service', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'additional_wms_species_layer_url', 'caption' => 'Additional WMS layer URL', 'description' => 'URL of an additional species layer to load from a WMS service. {external_key} is replaced by the species external key.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'additional_wms_species_layer_settings', 'caption' => 'Additional WMS layer settings', 'description' => 'JSON settings object for an additional species layer to load from a WMS service. {external_key} is replaced by the species external key.', 'type' => 'textarea', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'additional_wms_species_layer_ol_settings', 'caption' => 'Additional WMS layer OpenLayers settings', 'description' => 'JSON settings object for the Open Layers settings object for an additional species layer to load from a WMS service.', 'type' => 'textarea', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'view_records_report_path', 'caption' => 'View records report path', 'description' => 'Path to page used to show a list of records, e.g. when clicking on the record counts on the Experience tab', 'type' => 'string', 'required' => 'false'), array('name' => 'clear_verification_task_notifications', 'caption' => 'Clear verification task notifications?', 'description' => 'Automatically clear any verification task notifications when the user opens the verification screen.', 'type' => 'boolean', 'group' => 'Notification Settings', 'default' => false, 'required' => 'false')));
        // Set default values for the report
        foreach ($r as &$param) {
            if ($param['name'] == 'report_name') {
                $param['default'] = 'library/occurrences/verification_list_3';
            } elseif ($param['name'] == 'param_presets') {
                $param['default'] = 'survey_id=
date_from=
date_to=
smpattrs=
occattrs=';
            } elseif ($param['name'] == 'param_defaults') {
                $param['default'] = 'id=
record_status=C
records=unverified
searchArea=
idlist=';
            }
        }
        return $r;
    }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:64,代码来源:verification_4.php

示例2: get_parameters

 /**
  * 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')));
 }
开发者ID:BirenRathod,项目名称:drupal-6,代码行数:11,代码来源:mnhnl_bird_transect_walks.php

示例3: get_parameters

 /**
  * 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(), 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' => 'list_id', 'caption' => 'Species List ID', 'description' => 'The Indicia ID for the species list that species can be selected from.', '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')));
 }
开发者ID:BirenRathod,项目名称:drupal-6,代码行数:11,代码来源:mnhnl_bird_transect_walks.php

示例4: get_parameters

    /**
     * Get the list of parameters for this form.
     * @return array List of parameters that this form requires.
     */
    public static function get_parameters()
    {
        $r = array_merge(iform_map_get_map_parameters(), iform_report_get_minimal_report_parameters(), array(array('name' => 'mapping_report_name', 'caption' => 'Report for map output', 'description' => 'Report used to obtain the output for the map. Should have the same parameters as the grid report but only needs to ' . 'return the sample id, geom and any shape formatting.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'library/samples/filterable_explore_list_mapping'), array('name' => 'record_details_report', 'caption' => 'Report for record details', 'description' => 'Report used to obtain the details of a sample. See reports_for_prebuilt_forms/verification_3/record_data.xml for an example.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'reports_for_prebuilt_forms/verification_samples/record_data'), array('name' => 'record_attrs_report', 'caption' => 'Report for record attributes', 'description' => 'Report used to obtain the custom attributes of a record. See reports_for_prebuilt_forms/verification_3/record_data_attributes.xml for an example.', 'type' => 'report_helper::report_picker', 'group' => 'Report Settings', 'default' => 'reports_for_prebuilt_forms/verification_samples/record_data_attributes'), array('name' => 'columns_config', 'caption' => 'Columns Configuration', 'description' => 'Define a list of columns with various configuration options when you want to override the ' . 'default output of the report.', 'type' => 'jsonwidget', 'default' => '[]', 'schema' => '{
    "type":"seq",
    "title":"Columns List",
    "sequence":
    [
      {
        "type":"map",
        "title":"Column",
        "mapping": {
          "fieldname": {"type":"str","desc":"Name of the field to output in this column. Does not need to be specified when using the template option."},
          "display": {"type":"str","desc":"Caption of the column, which defaults to the fieldname if not specified."},
          "actions": {
            "type":"seq",
            "title":"Actions List",
            "sequence": [{
              "type":"map",
              "title":"Actions",
              "desc":"List of actions to make available for each row in the grid.",
              "mapping": {
                "caption": {"type":"str","desc":"Display caption for the action\'s link."},
                "visibility_field": {"type":"str","desc":"Optional name of a field in the data which contains true or false to define the visibility of this action."},
                "url": {"type":"str","desc":"A url that the action link will point to, unless overridden by JavaScript. The url can contain tokens which ' . 'will be subsituted for field values, e.g. for http://www.example.com/image/{id} the {id} is replaced with a field called id in the current row. ' . 'Can also use the subsitution {currentUrl} to link back to the current page, {rootFolder} to represent the folder on the server that the current PHP page is running from, and ' . '{imageFolder} for the image upload folder"},
                "urlParams": {
                  "type":"map",
                  "subtype":"str",
                  "desc":"List of parameters to append to the URL link, with field value replacements such as {id} begin replaced ' . 'by the value of the id field for the current row."
                },
                "class": {"type":"str","desc":"CSS class to attach to the action link."},
                "javascript": {"type":"str","desc":"JavaScript that will be run when the link is clicked. Can contain field value substitutions ' . 'such as {id} which is replaced by the value of the id field for the current row. Because the javascript may pass the field values as parameters to functions, ' . 'there are escaped versions of each of the replacements available for the javascript action type. Add -escape-quote or ' . '-escape-dblquote to the fieldname. For example this would be valid in the action javascript: foo(\\"{bar-escape-dblquote}\\"); ' . 'even if the field value contains a double quote which would have broken the syntax."}
              }
            }]
          },
          "visible": {"type":"bool","desc":"Should this column be shown? Hidden columns can still be used in templates or actions."},
          "template": {"type":"str","desc":"Allows you to create columns that contain dynamic content using a template, rather than just the output ' . 'of a field. The template text can contain fieldnames in braces, which will be replaced by the respective field values. ' . 'Note that template columns cannot be sorted by clicking grid headers." }
        }
      }
    ]
  }', 'group' => 'Report Settings', 'required' => false), array('name' => 'email_subject_send_to_verifier', 'caption' => 'Send to Expert Email Subject', 'description' => 'Default subject for the send to expert email. Replacements allowed include %id%.', 'type' => 'string', 'default' => 'Requesting your opinion on a sample (ID:%id%)', 'group' => 'Verifier emails'), array('name' => 'email_body_send_to_verifier', 'caption' => 'Send to Expert Email Body', 'description' => 'Default body for the send to expert email. Replacements allowed include %id% and %record% which is replaced to give details of the record.', 'type' => 'textarea', 'default' => 'We would appreciate your opinion on the following record. Please reply to this mail with "accepted", "not accepted" or "query" ' . 'in the email body, followed by any comments you have including the proposed re-identification if relevant on the next line.' . "\n\n%record%", 'group' => 'Verifier emails'), array('name' => 'email_subject_send_to_recorder', 'caption' => 'Send to Recorder Email Subject', 'description' => 'Default subject for the send query to recorder email. Replacements allowed include %id%.', 'type' => 'string', 'default' => 'Query on your sample (ID:%id%)', 'group' => 'Recorder emails'), array('name' => 'email_body_send_to_recorder', 'caption' => 'Send to Recorder Email Body', 'description' => 'Default body for the send to recorder email. Replacements allowed include %id% and %record% which is replaced to give details of the record.', 'type' => 'textarea', 'default' => 'The following record requires confirmation. Please could you reply to this email stating how confident you are that the record is correct ' . 'and any other information you have which may help to confirm this.' . "\n\n%record%", 'group' => 'Recorder emails'), array('name' => 'auto_discard_rows', 'caption' => 'Automatically remove rows', 'description' => 'If checked, then when changing the status of a record the record is removed from the grid if it no ' . 'longer matches the grid filter.', 'type' => 'checkbox', 'default' => 'true', 'required' => false), array('name' => 'indexed_location_type_ids', 'caption' => 'Indexed location type IDs', 'description' => 'Comma separated list of location type IDs for location layers that are available to search against.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'other_location_type_ids', 'caption' => 'Other location type IDs', 'description' => 'Comma separated list of location type IDs for location layers that are available to search against.', 'type' => 'text_input', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'clear_verification_task_notifications', 'caption' => 'Clear verification task notifications?', 'description' => 'Automatically clear any verification task notifications when the user opens the verification screen.', 'type' => 'boolean', 'group' => 'Notification Settings', 'default' => false, 'required' => 'false')));
        // Set default values for the report
        foreach ($r as &$param) {
            if ($param['name'] == 'report_name') {
                $param['default'] = 'library/samples/filterable_explore_list';
            } elseif ($param['name'] == 'param_presets') {
                $param['default'] = 'survey_id=
date_from=
date_to=
smpattrs=';
            } elseif ($param['name'] == 'param_defaults') {
                $param['default'] = 'id=
record_status=C
records=unverified
searchArea=
idlist=';
            }
        }
        return $r;
    }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:63,代码来源:verification_samples.php

示例5: get_parameters

    /**
     * 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()
    {
        $r = array_merge(iform_map_get_map_parameters(), iform_report_get_minimal_report_parameters(), array(array('name' => 'downloadOwnDataOnly', 'caption' => 'Download own data only', 'description' => 'If ticked then the user is only allowed to download data when showing just their own data.', 'type' => 'checkbox', 'default' => false, 'required' => false), array('name' => 'includeEditLink', 'caption' => 'Include edit link', 'description' => 'Include an edit link for each row that was input by the current user', 'type' => 'checkbox', 'default' => true, 'required' => false), array('name' => 'includeEditLinkPath', 'caption' => 'Path to page used for edits', 'description' => 'The path to the page used for edits. This is just the site relative path, e.g. http://www.example.com/index.php?q=enter-records needs ' . 'to be input as just enter-records. The path is called with the id of the record in a parameter called occurrence_id.', 'type' => 'text_input', 'default' => '', 'required' => false), array('name' => 'columns_config', 'caption' => 'Columns Configuration', 'description' => 'Define a list of columns with various configuration options when you want to override the ' . 'default output of the report.', 'type' => 'jsonwidget', 'schema' => '{
  "type":"seq",
  "title":"Columns List",
  "sequence":
  [
    {
      "type":"map",
      "title":"Column",
      "mapping": {
        "fieldname": {"type":"str","desc":"Name of the field to output in this column. Does not need to be specified when using the template option."},
        "display": {"type":"str","desc":"Caption of the column, which defaults to the fieldname if not specified."},
        "actions": {
          "type":"seq",
          "title":"Actions List",
          "sequence": [{
            "type":"map",
            "title":"Actions",
            "desc":"List of actions to make available for each row in the grid.",
            "mapping": {
              "caption": {"type":"str","desc":"Display caption for the action\'s link."},
              "visibility_field": {"type":"str","desc":"Optional name of a field in the data which contains true or false to define the visibility of this action."},
              "img": {"type":"str","desc":"Set img to the path to an image to use an image for the action instead of a text caption - the caption ' . 'then becomes the image\'s title. The image path can contain {rootFolder} to be replaced by the root folder of the site, in this ' . 'case it excludes the path parameter used in Drupal when dirty URLs are used (since this is a direct link to a URL)."},
              "url": {"type":"str","desc":"A url that the action link will point to, unless overridden by JavaScript. The url can contain tokens which ' . 'will be subsituted for field values, e.g. for http://www.example.com/image/{id} the {id} is replaced with a field called id in the current row. ' . 'Can also use the subsitution {currentUrl} to link back to the current page, {rootFolder} to represent the folder on the server that the current PHP page is running from, and ' . '{imageFolder} for the image upload folder"},
              "urlParams": {
                "type":"map",
                "subtype":"str",
                "desc":"List of parameters to append to the URL link, with field value replacements such as {id} begin replaced ' . 'by the value of the id field for the current row."
              },
              "class": {"type":"str","desc":"CSS class to attach to the action link."},
              "javascript": {"type":"str","desc":"JavaScript that will be run when the link is clicked. Can contain field value substitutions ' . 'such as {id} which is replaced by the value of the id field for the current row. Because the javascript may pass the field values as parameters to functions, ' . 'there are escaped versions of each of the replacements available for the javascript action type. Add -escape-quote or ' . '-escape-dblquote to the fieldname. For example this would be valid in the action javascript: foo(\\"{bar-escape-dblquote}\\"); ' . 'even if the field value contains a double quote which would have broken the syntax."}
            }
          }]
        },
        "visible": {"type":"bool","desc":"Should this column be shown? Hidden columns can still be used in templates or actions."},
        "template": {"type":"txt","desc":"Allows you to create columns that contain dynamic content using a template, rather than just the output ' . 'of a field. The template text can contain fieldnames in braces, which will be replaced by the respective field values. ' . 'Note that template columns cannot be sorted by clicking grid headers." }
      }
    }
  ]
}', 'required' => false, 'group' => 'Report Settings')));
        // @todo Set the default report name
        foreach ($r as &$param) {
            if ($param['name'] === 'report_name') {
                $param['default'] = 'library/occurrences/explore_list';
                $param['description'] .= '<br/>The report used must meet a set of criteria to be used for this form, as illustrated by the library/occurrences/explore_list ' . 'report. The report should have the following columns:<br/>' . '<strong>belongs_to_user</strong> - a boolean indicating if the record belongs to (i.e. is editable by) the logged in user.<br/>' . '<strong>certainty</strong> - text output which identifies the certainty of the record if known. This is appended to the word ' . 'certainty to make a class which is attached to the row HTML, allowing you to use CSS to style the row output. E.g. if the report ' . 'outputs C in this column then the row HTML will have a class certaintyC.<br/>' . '<br/>The report should have the following parameters:<br/>' . '<strong>location_id</strong> - Warehouse ID of the user\'s preferred recording location passed automatically from the user\'s account. Only applied if own_locality is 1.<br/>' . '<strong>ownLocality</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the contents of the location identified by location_id.<br/>' . '<strong>taxon_groups</strong> Takes a comma separated list of taxon_group_ids as a string suitable for insertion into an SQL in (...) clause. ' . 'Will be passed the user\'s preferred species groups from their user account if the Easy Login feature is installed. Only applied if ownGroups is 1.<br/>' . '<strong>ownGroups</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the contents of the taxon groups identified by taxon_groups.<br/>' . '<strong>currentUser</strong> Warehouse User ID of the logged in user, used to filter records to their own data. Only applied if ownData is 1.<br/>' . '<strong>ownData</strong> - Boolean (1 or 0) parameter which defines if the output should be filtered to the user\'s own records.';
            } elseif ($param['name'] === 'param_presets') {
                $param['default'] = "smpattrs=\noccattrs=\nlocation_id={profile_location}\ntaxon_groups={profile_taxon_groups}\ncurrentUser={profile_indicia_user_id}";
            } elseif ($param['name'] === 'param_defaults') {
                $param['default'] = "idlist=\nsearchArea=";
            } elseif ($param['name'] === 'standard_controls') {
                $param['default'] = "layerSwitcher\npanZoomBar";
            }
        }
        return $r;
    }
开发者ID:joewoodhouse,项目名称:client_helpers,代码行数:61,代码来源:map_explorer.php

示例6: get_parameters

    /** 
     * Return an array of parameters for the edit tab. 
     * @return array The parameters for the form.
     */
    public static function get_parameters()
    {
        $retVal = array_merge(iform_map_get_map_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'), 'default' => 'one_page', 'group' => 'User Interface'), array('name' => 'fields', 'caption' => 'Fields to include or exclude', 'description' => 'List of data fields to hide, one per line.' . 'Type in the field name as seen exactly in the Species Details section. For custom attributes you should use the system function values ' . 'to filter instead of the caption if defined below.', 'type' => 'textarea', 'required' => false, 'default' => '', 'group' => 'Fields for Species details'), array('name' => 'operator', 'caption' => 'Include or exclude', 'description' => "Do you want to include only the list of fields you've defined, or exclude them?", 'type' => 'select', 'options' => array('in' => 'Include', 'not in' => 'Exclude'), 'default' => 'not in', 'group' => 'Fields for Species details'), array('name' => 'testagainst', 'caption' => 'Test attributes against', 'description' => 'For custom attributes, do you want to filter the list to show using the caption or the system function? If the latter, then ' . 'any custom attributes referred to in the fields list above should be referred to by their system function which might be one of: email, ' . 'cms_user_id, cms_username, first_name, last_name, full_name, biotope, sex_stage, sex_stage_count, certainty, det_first_name, det_last_name.', 'type' => 'select', 'options' => array('caption' => 'Caption', 'system_function' => 'System Function'), 'default' => 'caption', 'group' => 'Fields for Species details'), array('name' => 'structure', 'caption' => 'Form Structure', 'description' => 'Define the structure of the form. Each component must be placed on a new line. <br/>' . "The following types of component can be specified. <br/>" . "<strong>[control name]</strong> indicates a predefined control is to be added to the form with the following predefined controls available: <br/>" . "&nbsp;&nbsp;<strong>[speciesdetails]</strong> - displays information relating to the occurrence and its sample<br/>" . "&nbsp;&nbsp;<strong>[explore]</strong> - a button “Explore this species' records” which takes you to explore all records, filtered to the species.<br/>" . "&nbsp;&nbsp;<strong>[photos]</strong> - photos associated with the occurrence<br/>" . "&nbsp;&nbsp;<strong>[map]</strong> - a map that links to the spatial reference and location<br/>" . "<strong>=tab/page name=</strong> is used to specify the name of a tab or wizard page (alpha-numeric characters only). " . "If the page interface type is set to one page, then each tab/page name is displayed as a seperate section on the page. " . "Note that in one page mode, the tab/page names are not displayed on the screen.<br/>" . "<strong>|</strong> is used to split a tab/page/section into two columns, place a [control name] on the previous line and following line to split.<br/>", 'type' => 'textarea', 'default' => '
=General=
[speciesdetails]
[photos]
[explore]
| 
[map]', 'group' => 'User Interface'), array('name' => 'explore_url', 'caption' => 'Explore URL', 'description' => 'When you click on the Explore this species\' records button you are taken to this URL. Use {rootfolder} as a replacement ' . 'token for the site\'s root URL.', 'type' => 'string', 'required' => false, 'default' => '', 'group' => 'User Interface'), array('name' => 'explore_param_name', 'caption' => 'Explore Parameter Name', 'description' => 'Name of the parameter added to the Explore URL to pass through the taxon_meaning_id of the species being explored. ' . 'The default provided (filter-taxon_meaning_list) is correct if your report uses the standard parameters configuration.', 'type' => 'string', 'required' => false, 'default' => 'filter-taxon_meaning_list', 'group' => 'User Interface'), array('name' => 'include_layer_list', 'caption' => 'Include Legend', 'description' => 'Should a legend be shown on the page?', 'type' => 'boolean', 'required' => false, 'default' => false, 'group' => 'Other Map Settings'), array('name' => 'include_layer_list_switchers', 'caption' => 'Include Layer switchers', 'description' => 'Should the legend include checkboxes and/or radio buttons for controlling layer visibility?', 'type' => 'boolean', 'required' => false, 'default' => false, 'group' => 'Other Map Settings'), array('name' => 'include_layer_list_types', 'caption' => 'Types of layer to include in legend', 'description' => 'Select which types of layer to include in the legend.', 'type' => 'select', 'options' => array('base,overlay' => 'All', 'base' => 'Base layers only', 'overlay' => 'Overlays only'), 'default' => 'base,overlay', 'group' => 'Other Map Settings'), array('name' => 'layer_title', 'caption' => 'Layer Caption', 'description' => 'Caption to display for the species distribution map layer. Can contain replacement strings {species} or {survey}.', 'type' => 'textfield', 'group' => 'Distribution Layer'), array('name' => 'wms_feature_type', 'caption' => 'Feature Type', 'description' => 'Name of the feature type (layer) exposed in GeoServer to contain the occurrences. This must expose a taxon_meaning_id and a website_id attribute. ' . 'for the filtering. The detail_occurrences view is suitable for this purpose, though make sure you include the namespace, e.g. indicia:detail_occurrences. ' . 'The list of feature type names can be viewed by clicking on the Layer Preview link in the GeoServer installation.', 'type' => 'textfield', 'group' => 'Distribution Layer'), array('name' => 'wms_style', 'caption' => 'Style', 'description' => 'Name of the SLD style file that describes how the distribution points are shown. Leave blank if not sure.', 'type' => 'textfield', 'required' => false, 'group' => 'Distribution Layer'), array('name' => 'cql_filter', 'caption' => 'Distribution layer filter.', 'description' => 'Any additional filter to apply to the loaded data, using the CQL format. For example "record_status<>\'R\'"', 'type' => 'textarea', 'group' => 'Distribution Layer', 'required' => false), array('name' => 'refresh_timer', 'caption' => 'Automatic reload seconds', 'description' => 'Set this value to the number of seconds you want to elapse before the report will be automatically reloaded, useful for ' . 'displaying live data updates at BioBlitzes. Combine this with Page to reload to define a sequence of pages that load in turn.', 'type' => 'int', 'required' => false), array('name' => 'load_on_refresh', 'caption' => 'Page to reload', 'description' => 'Provide the full URL of a page to reload after the number of seconds indicated above.', 'type' => 'string', 'required' => false)));
        return $retVal;
    }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:15,代码来源:species_details.php

示例7: get_parameters

 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $paramArray = array_merge(iform_map_get_map_parameters(), iform_report_get_minimal_report_parameters(), array(array('name' => 'first_year', 'caption' => 'First Year of Data', 'description' => 'Used to determine first year displayed in the year control. Final Year will be current year.', 'type' => 'int', 'group' => 'Controls'), array('name' => 'twinMaps', 'caption' => 'Twin Maps', 'description' => 'Display a second map, for data comparison.', 'type' => 'boolean', 'required' => false, 'default' => false, 'group' => 'Controls'), array('name' => 'advancedUI', 'caption' => 'Advanced UI', 'description' => 'Advanced User Interface: use a slider for date and dot size controls, and a graphical button. Relies on jQuery_ui.', 'type' => 'boolean', 'required' => false, 'default' => false, 'group' => 'Controls'), array('name' => 'dotSize', 'caption' => 'Dot Size', 'description' => 'Initial size in pixels of observation dots on map. Can be overriden by a control.', 'type' => 'select', 'options' => array('2' => '2', '3' => '3', '4' => '4', '5' => '5'), 'default' => '3', 'group' => 'Controls'), array('name' => 'numberOfDates', 'caption' => 'Number of Dates', 'description' => 'The maximum number of dates displayed on the X-axis. Used to prevent crowding. The minimum spacing is one date displayed per week. Date range is determined by the data.', 'type' => 'int', 'default' => 11, 'group' => 'Controls'), array('name' => 'frameRate', 'caption' => 'Animation Frame Rate', 'description' => 'Number of frames displayed per second.', 'type' => 'int', 'default' => 4, 'group' => 'Controls'), array('name' => 'triggerEvents', 'caption' => 'Event Definition', 'description' => 'JSON encode event definition: an array, one per event type, each with a "name" element, a "type" (either...), an "attr", and a "values"', 'type' => 'textarea', 'group' => 'Events')));
     $retVal = array();
     foreach ($paramArray as $param) {
         if (!in_array($param['name'], array('map_width', 'remember_pos', 'location_boundary_id', 'items_per_page', 'param_ignores', 'param_defaults'))) {
             $retVal[] = $param;
         }
     }
     return $retVal;
 }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:15,代码来源:tree_map_2.php

示例8: get_parameters

    /**
     * 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(), array(array('name' => 'report_name', 'caption' => 'Report Name', 'description' => 'The report to load into the verification grid, excluding the .xml suffix. This report should have ' . 'at least the following columns: occurrence_id, taxon. If you don\'t know which report to use, try the recent_occurrences_in_survey report.', 'type' => 'report_helper::report_picker', 'default' => 'library/occurrences/verification_list', 'group' => 'Report Settings'), array('name' => 'param_presets', 'caption' => 'Preset Parameter Values', 'description' => 'To provide preset values for any report parameter and avoid the user having to enter them, enter each parameter into this ' . 'box one per line. Each parameter is followed by an equals then the value, e.g. survey_id=6. You can use {user_id} as a value which will be replaced by the ' . 'user ID from the CMS logged in user or {username} as a value replaces with the logged in username. Preset Parameter Values can\'t be overridden by the user.', 'type' => 'textarea', 'required' => false, 'group' => 'Report Settings', 'default' => 'survey_id=
date_from=
date_to=
smpattrs=
occattrs='), array('name' => 'param_defaults', 'caption' => 'Default Parameter Values', 'description' => 'To provide default values for any report parameter which allow the report to run initially but can be overridden, enter each parameter into this ' . 'box one per line. Each parameter is followed by an equals then the value, e.g. survey_id=6. You can use {user_id} as a value which will be replaced by the ' . 'user ID from the CMS logged in user or {username} as a value replaces with the logged in username. Unlike preset parameter values, parameters referred ' . 'to by default parameter values are displayed in the parameters form and can therefore be changed by the user.', 'type' => 'textarea', 'required' => false, 'group' => 'Report Settings', 'default' => 'id=
taxon_group_id=
record_status=C'), array('name' => 'columns_config', 'caption' => 'Columns Configuration', 'description' => 'Define a list of columns with various configuration options when you want to override the ' . 'default output of the report.', 'type' => 'jsonwidget', 'default' => '[
              {"fieldname":"occurrence_id","template":"<div class=\'status-{record_status}\'>{occurrence_id}<\\/div>","display":"ID"},
              {"fieldname":"taxon","display":"Species","template":"<div class=\'zero-{zero_abundance}\'>{taxon}<br\\/>{common}<\\/div>"},
              {"fieldname":"record_status","visible":false},
              {"fieldname":"common","visible":false},
              {"fieldname":"zero_abundance","visible":false}
            ]', 'schema' => '{
    "type":"seq",
    "title":"Columns List",
    "sequence":
    [
      {
        "type":"map",
        "title":"Column",
        "mapping": {
          "fieldname": {"type":"str","desc":"Name of the field to output in this column. Does not need to be specified when using the template option."},
          "display": {"type":"str","desc":"Caption of the column, which defaults to the fieldname if not specified."},
          "actions": {
            "type":"seq",
            "title":"Actions List",
            "sequence": [{
              "type":"map",
              "title":"Actions",
              "desc":"List of actions to make available for each row in the grid.",
              "mapping": {
                "caption": {"type":"str","desc":"Display caption for the action\'s link."},
                "visibility_field": {"type":"str","desc":"Optional name of a field in the data which contains true or false to define the visibility of this action."},
                "url": {"type":"str","desc":"A url that the action link will point to, unless overridden by JavaScript. The url can contain tokens which ' . 'will be subsituted for field values, e.g. for http://www.example.com/image/{id} the {id} is replaced with a field called id in the current row. ' . 'Can also use the subsitution {currentUrl} to link back to the current page, {rootFolder} to represent the folder on the server that the current PHP page is running from, and ' . '{imageFolder} for the image upload folder"},
                "urlParams": {
                  "type":"map",
                  "subtype":"str",
                  "desc":"List of parameters to append to the URL link, with field value replacements such as {id} begin replaced ' . 'by the value of the id field for the current row."
                },
                "class": {"type":"str","desc":"CSS class to attach to the action link."},
                "javascript": {"type":"str","desc":"JavaScript that will be run when the link is clicked. Can contain field value substitutions ' . 'such as {id} which is replaced by the value of the id field for the current row. Because the javascript may pass the field values as parameters to functions, ' . 'there are escaped versions of each of the replacements available for the javascript action type. Add -escape-quote or ' . '-escape-dblquote to the fieldname. For example this would be valid in the action javascript: foo(\\"{bar-escape-dblquote}\\"); ' . 'even if the field value contains a double quote which would have broken the syntax."}
              }
            }]
          },
          "visible": {"type":"bool","desc":"Should this column be shown? Hidden columns can still be used in templates or actions."},
          "template": {"type":"str","desc":"Allows you to create columns that contain dynamic content using a template, rather than just the output ' . 'of a field. The template text can contain fieldnames in braces, which will be replaced by the respective field values. ' . 'Note that template columns cannot be sorted by clicking grid headers." }
        }
      }
    ]
  }', 'required' => false), array('name' => 'verifiers_mapping', 'caption' => 'Verifiers Mapping', 'description' => 'Provide either the ID of a single Indicia user to act as the verifier, or provide a comma separated list ' . 'of <drupal user id>=<indicia user id> pairs to define the mapping from Drupal to Indicia users. E.g. ' . '"1=2,2=3"', 'type' => 'textarea', 'default' => 1), array('name' => 'email_subject_send_to_verifier', 'caption' => 'Send to Verifier Email Subject', 'description' => 'Default subject for the send to verifier email. Replacements allowed include %taxon% and %id%.', 'type' => 'string', 'default' => 'Record of %taxon% requires verification (ID:%id%)', 'group' => 'Notification emails'), array('name' => 'email_body_send_to_verifier', 'caption' => 'Send to Verifier Email Body', 'description' => 'Default body for the acceptance email. Replacements allowed include %taxon%, %id% and %record% which is replaced to give details of the record.', 'type' => 'textarea', 'default' => 'The following record requires verification. Please reply to this mail with the word Verified or Rejected ' . 'in the email body, followed by any comments you have including the proposed re-identification if relevant on the next line.' . "\n\n%record%", 'group' => 'Notification emails'), array('name' => 'auto_discard_rows', 'caption' => 'Automatically remove rows', 'description' => 'If checked, then when changing the status of a record the record is removed from the grid if it no ' . 'longer matches the grid filter.', 'type' => 'checkbox', 'default' => 'on', 'required' => false)));
    }
开发者ID:BirenRathod,项目名称:drupal-6,代码行数:57,代码来源:verification_3.php

示例9: get_parameters

 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $r = array_merge(iform_report_get_report_parameters(), iform_map_get_map_parameters(), array(array('name' => 'indicia_species_layer_feature_type', 'caption' => 'Feature type for Indicia species layer', 'description' => 'Set to the name of a feature type on GeoServer that will be loaded to display the Indicia species data for the selected record. ' . 'Leave empty for no layer. Normally this should be set to a feature type that exposes the cache_occurrences table.', 'type' => 'text_input', 'required' => true, 'default' => 'indicia:cache_occurrences', 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_filter_field', 'caption' => 'Field to filter on', 'description' => 'Set to the name of a field exposed by the feature type which contains the external key defined for the species ' . 'and can therefore be used to filter the layer. ', 'type' => 'text_input', 'required' => true, 'default' => 'taxa_taxon_list_external_key', 'group' => 'Other Map Settings'), array('name' => 'indicia_species_layer_slds', 'caption' => 'SLD files from GeoServer for Indicia species layer', 'description' => 'Set to the names of SLD files available on the GeoServer for the rendering of the Indicia species layer, or leave blank for default. ' . 'Provide one per species layer you are going to allow on the map. Layer styles will be cycled through.', 'type' => 'textarea', 'required' => false, 'default' => "dist_point_red\ndist_point_blue", 'group' => 'Other Map Settings')));
     foreach ($r as &$param) {
         if ($param['name'] === 'report_name') {
             $param['default'] = 'library/taxa/occurrence_counts_summary_by_external_key';
         } elseif ($param['name'] === 'indicia_species_layer_filter_field') {
             $param['default'] = 'taxa_taxon_list_external_key';
         } elseif ($param['name'] === 'param_presets') {
             $param['default'] = "date_from=\ndate_to=\nsurvey_id=\nquality=C\nlocation_id={profile_location}\ntaxon_groups={profile_taxon_groups}\ncurrentUser={profile_indicia_user_id}";
         }
     }
     return $r;
 }
开发者ID:joewoodhouse,项目名称:client_helpers,代码行数:18,代码来源:quick_species_maps.php

示例10: get_parameters

    /** 
     * Return an array of parameters for the edit tab. 
     * @return array The parameters for the form.
     */
    public static function get_parameters()
    {
        $retVal = array_merge(iform_map_get_map_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'), 'default' => 'one_page', 'group' => 'User Interface'), array('name' => 'fields', 'caption' => 'Fields to include or exclude', 'description' => 'List of data fields to hide, one per line. ' . 'Type in the field name as seen exactly in the Record Details section. For custom attributes you should use the system function values ' . 'to filter instead of the caption if defined below.', 'type' => 'textarea', 'default' => 'CMS Username
CMS User ID
Email
Sample ID
Record ID', 'group' => 'Fields for record details'), array('name' => 'operator', 'caption' => 'Include or exclude', 'description' => "Do you want to include only the list of fields you've defined, or exclude them?", 'type' => 'select', 'options' => array('in' => 'Include', 'not in' => 'Exclude'), 'default' => 'not in', 'group' => 'Fields for record details'), array('name' => 'testagainst', 'caption' => 'Test attributes against', 'description' => 'For custom attributes, do you want to filter the list to show using the caption or the system function? If the latter, then ' . 'any custom attributes referred to in the fields list above should be referred to by their system function which might be one of: email, ' . 'cms_user_id, cms_username, first_name, last_name, full_name, biotope, sex_stage, sex, stage, sex_stage_count, certainty, det_first_name, det_last_name.', 'type' => 'select', 'options' => array('caption' => 'Caption', 'system_function' => 'System Function'), 'default' => 'caption', 'group' => 'Fields for record details'), array('name' => 'structure', 'caption' => 'Form Structure', 'description' => 'Define the structure of the form. Each component must be placed on a new line. <br/>' . "The following types of component can be specified. <br/>" . "<strong>[control name]</strong> indicates a predefined control is to be added to the form with the following predefined controls available: <br/>" . "&nbsp;&nbsp;<strong>[recorddetails]</strong> - displays information relating to the occurrence and its sample<br/>" . "&nbsp;&nbsp;<strong>[buttons]</strong> - outputs a row of edit and explore buttons. Use the @buttons option to change the list of buttons to output " . "by setting this to an array, e.g. [edit] will output just the edit button, [explore] outputs just the explore button, [species details] outputs a species details button. " . "The edit button is automatically skipped if the user does not have rights to edit the record.<br/>" . "&nbsp;&nbsp;<strong>[comments]</strong> - lists any comments associated with the occurrence. Also includes the ability to add a comment<br/>" . "&nbsp;&nbsp;<strong>[photos]</strong> - photos associated with the occurrence<br/>" . "&nbsp;&nbsp;<strong>[map]</strong> - a map that links to the spatial reference and location<br/>" . "&nbsp;&nbsp;<strong>[previous determinations]</strong> - a list of previous determinations for this record<br/>" . "<strong>=tab/page name=</strong> is used to specify the name of a tab or wizard page (alpha-numeric characters only). " . "If the page interface type is set to one page, then each tab/page name is displayed as a seperate section on the page. " . "Note that in one page mode, the tab/page names are not displayed on the screen.<br/>" . "<strong>|</strong> is used to split a tab/page/section into two columns, place a [control name] on the previous line and following line to split.<br/>", 'type' => 'textarea', 'default' => '=Record Details and Comments=
[recorddetails]
[buttons]
|
[previous determinations]
[comments]
=Map and Photos=
[map]
|
[photos]', 'group' => 'User Interface'), array('name' => 'default_input_form', 'caption' => 'Default input form path', 'description' => 'Default path to use to the edit form for old records which did not have their input form recorded in the database. Specify the ' . 'path to a general purpose list entry form.', 'type' => 'text_input', 'group' => 'Path configuration'), array('name' => 'explore_url', 'caption' => 'Explore URL', 'description' => 'When you click on the Explore this species\' records button you are taken to this URL. Use {rootfolder} as a replacement ' . 'token for the site\'s root URL.', 'type' => 'string', 'required' => false, 'default' => '', 'group' => 'Path configuration'), array('name' => 'species_details_url', 'caption' => 'Species details URL', 'description' => 'When you click on the ... species page button you are taken to this URL with taxon_meaning_id as a parameter. Use {rootfolder} as a replacement ' . 'token for the site\'s root URL.', 'type' => 'string', 'required' => false, 'default' => '', 'group' => 'Path configuration'), array('name' => 'explore_param_name', 'caption' => 'Explore Parameter Name', 'description' => 'Name of the parameter added to the Explore URL to pass through the taxon_meaning_id of the species being explored. ' . 'The default provided (filter-taxon_meaning_list) is correct if your report uses the standard parameters configuration.', 'type' => 'string', 'required' => false, 'default' => '', 'group' => 'Path configuration')));
        return $retVal;
    }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:22,代码来源:record_details_2.php

示例11: get_parameters

 /**
  * 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()
 {
     $filters = array('none' => 'No Filter', 'taxon_meaning_id' => 'Species', 'external_key' => 'Species using External Key', 'survey_id' => 'Survey', 'sample_id' => 'Submitted data');
     return array_merge(iform_map_get_map_parameters(), array(array('name' => 'hide_grid', 'caption' => 'Hide grid', 'description' => 'Check this box to hide the grid of the records just entered.', 'type' => 'checkbox', 'group' => 'Other IForm Parameters', 'required' => false, 'default' => false), array('name' => 'wms_dist_1_title', 'caption' => 'Layer Caption', 'description' => 'Caption to display for the optional WMS full species distribution map layer. Can contain replacement strings {species} or {survey}.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_internal', 'caption' => 'Layer 1 uses GeoServer to access Indicia database?', 'description' => 'Check this box if layer 1 uses a GeoServer instance to access the Indicia database.', 'type' => 'checkbox', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_url', 'caption' => 'Service URL (External Layers Only)', 'description' => 'URL of the WMS service to display for this layer. Leave blank ' . 'if using GeoServer to access this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_layer', 'caption' => 'Layer Name', 'description' => 'Layer name of the WMS service layer. If using GeoServer to access this instance of Indicia, please ensure that the ' . 'detail_occurrences view is exposed as a feature type and the name and prefix is given here.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_filter_against', 'caption' => 'What to Filter Against?', 'description' => 'Select what to match this layer against. The layer shown will be those points which match the previously saved record ' . 'on the selected value.', 'type' => 'select', 'options' => $filters, 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_filter_field', 'caption' => 'Field in WMS Dataset to Filter Against (External Layers Only)', 'description' => 'If using an external layer, specify the name of the field in the database table underlying the WMS layer which you want to filter against. ' . 'Leave blank for layers using the GeoServer set up for this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_style', 'caption' => 'Style', 'description' => 'Name of the style to load for this layer (e.g. the style registered on GeoServer you want to use). This style must exist, ' . 'and the setting is case sensitive.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_1_opacity', 'caption' => 'Opacity', 'description' => 'Opacity of layer 1, ranging from 0 (not visible) to 1 (fully opaque). If you want to print this map using Internet Explorer 8 or earlier it is recommended ' . 'that you set this to 1 otherwise the printout may not render correctly.', 'type' => 'textfield', 'group' => 'Distribution Layer 1', 'required' => false), array('name' => 'wms_dist_2_title', 'caption' => 'Layer Caption', 'description' => 'Caption to display for the optional WMS full species distribution map layer. Can contain replacement strings {species} or {survey}.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_internal', 'caption' => 'Layer 2 uses GeoServer to access Indicia database?', 'description' => 'Check this box if layer 2 uses a GeoServer instance to access the Indicia database.', 'type' => 'checkbox', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_url', 'caption' => 'Service URL  (External Layers Only)', 'description' => 'URL of the WMS service to display for this layer. Leave blank ' . 'if using GeoServer to access this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_layer', 'caption' => 'Layer Name', 'description' => 'Layer name of the WMS service layer. If using GeoServer to access this instance of Indicia, please ensure that the ' . 'detail_occurrences view is exposed as a feature type and the name and prefix is given here.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_filter_against', 'caption' => 'What to Filter Against?', 'description' => 'Select what to match this layer against. The layer shown will be those points which match the previously saved record ' . 'on the selected value.', 'type' => 'select', 'options' => $filters, 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_filter_field', 'caption' => 'Field in WMS Dataset to Filter Against  (External Layers Only)', 'description' => 'If using an external layer, specify the name of the field in the database table underlying the WMS layer which you want to filter against. ' . 'Leave blank for layers using the GeoServer set up for this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_style', 'caption' => 'Style', 'description' => 'Name of the style to load for this layer (e.g. the style registered on GeoServer you want to use). This style must exist, ' . 'and the setting is case sensitive.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_2_opacity', 'caption' => 'Opacity', 'description' => 'Opacity of layer 2, ranging from 0 (not visible) to 1 (fully opaque). If you want to print this map using Internet Explorer 8 or earlier it is recommended ' . 'that you set this to 1 otherwise the printout may not render correctly.', 'type' => 'textfield', 'group' => 'Distribution Layer 2', 'required' => false), array('name' => 'wms_dist_3_title', 'caption' => 'Layer Caption', 'description' => 'Caption to display for the optional WMS full species distribution map layer. Can contain replacement strings {species} or {survey}.', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_internal', 'caption' => 'Layer 3 uses GeoServer to access Indicia database?', 'description' => 'Check this box if layer 3 uses a GeoServer instance to access the Indicia database.', 'type' => 'checkbox', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_url', 'caption' => 'Service URL', 'description' => 'URL of the WMS service to display for this layer. Leave blank ' . 'if using GeoServer to access this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_layer', 'caption' => 'Layer Name', 'description' => 'Layer name of the WMS service layer. If using GeoServer to access this instance of Indicia, please ensure that the ' . 'detail_occurrences view is exposed as a feature type and the name and prefix is given here.', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_filter_against', 'caption' => 'What to Filter Against?', 'description' => 'Select what to match this layer against. The layer shown will be those points which match the previously saved record ' . 'on the selected value.', 'type' => 'select', 'options' => $filters, 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_filter_field', 'caption' => 'Field in WMS Dataset to Filter Against', 'description' => 'If using an external layer, specify the name of the field in the database table underlying the WMS layer which you want to filter against. ' . 'Leave blank for layers using the GeoServer set up for this instance of Indicia.', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_style', 'caption' => 'Style', 'description' => 'Name of the style to load for this layer (e.g. the style registered on GeoServer you want to use).', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'wms_dist_3_opacity', 'caption' => 'Opacity', 'description' => 'Opacity of layer 3, ranging from 0 (not visible) to 1 (fully opaque). If you want to print this map using Internet Explorer 8 or earlier it is recommended ' . 'that set this to 1 otherwise the printout may not render correctly.', 'type' => 'textfield', 'group' => 'Distribution Layer 3', 'required' => false), array('name' => 'add_another_link', 'caption' => 'Add another link', 'description' => 'If populated, then an "Add another" button will be shown linking to this path. Use replacements #taxon_meaning_id# or ' . '#external_key# to identify the recorded taxon, though note that these will only work if a single taxon was recorded.', 'type' => 'textfield', 'required' => false)));
 }
开发者ID:joewoodhouse,项目名称:client_helpers,代码行数:10,代码来源:my_dot_map.php

示例12: get_parameters

 /**
  * 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()
 {
     require_once 'includes/map.php';
     $r = array_merge(array(array('name' => 'edit_location_path', 'caption' => 'Path to edit location page', 'description' => 'Path to a page allowing locations to be edited and created. Should be a page built using the ' . 'Dynamic Locaiton prebuilt form.', 'type' => 'string', 'required' => false)), iform_map_get_map_parameters());
     return $r;
 }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:11,代码来源:group_locations.php

示例13: get_parameters

 /**
  * 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_map_get_georef_parameters(), array(array('name' => 'managerPermission', 'caption' => 'Drupal Permission for Manager mode', 'description' => 'Enter the Drupal permission name to be used to determine if this user is a manager. Entering this will allow the identified users to delete or modify the site even there are walks (samples) associated with it.', 'type' => 'string', 'required' => false), array('name' => 'branch_assignment_permission', 'label' => 'Drupal Permission name for Branch Manager', 'type' => 'string', 'description' => 'If you do not want to use the Branch Manager functionality, leave this blank. ' . 'Otherwise, specify the name of a permission to which when assigned to a user determines that the user is a branch manager. ' . '<br />Requires a single-value Branch CMS User ID integer attribute on the locations.', 'required' => false, 'group' => 'Transects Editor Settings'), array('name' => 'maxSectionCount', 'label' => 'Max. Section Count', 'type' => 'int', 'description' => 'The maximum number of sections a user is allowed to create for a transect site. If there is no user selectable attribute to set the number of sections, then the number is fixed at this value and the user will not be able to delete sections.', 'group' => 'Transects Editor Settings'), array('name' => 'survey_id', 'caption' => 'Survey', 'description' => 'The survey that data will be posted into.', 'type' => 'select', 'table' => 'survey', 'captionField' => 'title', 'valueField' => 'id', 'siteSpecific' => true), array('name' => 'sites_list_path', 'caption' => 'Site list page path', 'description' => 'Enter the path to the page which the site list is on.', 'type' => 'string', 'required' => true, 'group' => 'Transects Editor Settings'), array('name' => 'transect_type_term', 'caption' => 'Transect type term', 'description' => 'Select the term used for transect location types.', 'type' => 'select', 'table' => 'termlists_term', 'captionField' => 'term', 'valueField' => 'term', 'extraParams' => array('termlist_external_key' => 'indicia:location_types'), 'required' => true, 'group' => 'Transects Editor Settings'), array('name' => 'section_type_term', 'caption' => 'Section type term', 'description' => 'Select the term used for section location types.', 'type' => 'select', 'table' => 'termlists_term', 'captionField' => 'term', 'valueField' => 'term', 'extraParams' => array('termlist_external_key' => 'indicia:location_types'), 'required' => true, 'group' => 'Transects Editor Settings'), array('name' => 'bottom_blocks', 'caption' => 'Form blocks to place at bottom', 'description' => 'A list of the blocks which need to be placed at the bottom of the form, below the map.', 'type' => 'textarea', 'group' => 'Transects Editor Settings', 'siteSpecific' => true, 'required' => false), array('name' => 'site_help', 'caption' => 'Site Help Text', 'description' => 'Help text to be placed on the Site tab, before the attributes.', 'type' => 'textarea', 'group' => 'Transects Editor Settings', 'required' => false), 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' => 'text_input', 'group' => 'Other Map Settings'), array('name' => 'maxPrecision', 'caption' => 'Max Sref Precision', 'description' => 'The maximum precision to be applied when determining the SREF. Leave blank to not set.', 'type' => 'int', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'minPrecision', 'caption' => 'Min Sref Precision', 'description' => 'The minimum precision to be applied when determining the SREF. Leave blank to not set.', 'type' => 'int', 'required' => false, 'group' => 'Other Map Settings'), array('name' => 'route_map_height', 'caption' => 'Your Route Map Height (px)', 'description' => 'Height in pixels of the map.', 'type' => 'int', 'group' => 'Initial Map View', 'default' => 600), array('name' => 'route_map_buffer', 'caption' => 'Your Route Map Buffer', 'description' => 'Factor to multiple the size of the site by, in order to generate a margin around the site when displaying the site on the Your Route tab.', 'type' => 'string', 'group' => 'Initial Map View', 'default' => '0.1'), array('name' => 'allow_user_assignment', 'label' => 'Allow users to be assigned to transects', 'type' => 'boolean', 'description' => 'Can administrators link users to transects that they are allowed to record at? Requires a multi-value CMS User ID attribute on the locations.', 'default' => true, 'required' => false, 'group' => 'Transects Editor Settings'), array('name' => 'autocalc_section_length_attr_id', 'caption' => 'Location attribute to autocalc section length', 'description' => 'Location attribute that stores the section length, if you want it to be autocalculated from the geometry.', 'type' => 'select', 'table' => 'location_attribute', 'valueField' => 'id', 'captionField' => 'caption', 'group' => 'Transects Editor Settings', 'required' => false), array('name' => 'default_section_grid_ref', 'caption' => 'Default grid ref for a section?', 'description' => 'Default the grid ref for a section to what?', 'type' => 'select', 'lookupValues' => array('parent' => 'Same as parent transect', 'sectionCentroid100' => '100m grid square covering the centroid of the section', 'sectionStart100' => '100m grid square covering the start of the section'), 'default' => 'parent', 'group' => 'Transects Editor Settings'), array('name' => 'always_show_section_details', 'caption' => 'Always show the Section Details tab', 'description' => 'If ticked, then the section details tab is shown allowing the section map reference to be set, even when there are no attributes.', 'type' => 'checkbox', 'group' => 'Transects Editor Settings', 'required' => false)));
 }
开发者ID:joewoodhouse,项目名称:client_helpers,代码行数:9,代码来源:sectioned_transects_edit_transect.php

示例14: get_parameters

 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $retVal = array_merge(iform_map_get_map_parameters(), iform_map_get_georef_parameters(), array(array('name' => '2nd_map_height', 'caption' => 'Second Map Height (px)', 'description' => 'Height in pixels of the second (focus on collection) map.', 'type' => 'int', 'group' => 'Initial Map View', 'default' => 300), array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID of the survey that data will be posted into.', 'type' => 'int'), array('name' => 'search_url', 'caption' => 'URL for Search WFS service', 'description' => 'The URL used for the WFS feature lookup when searching.', 'type' => 'string', 'group' => 'Search'), array('name' => 'search_prefix', 'caption' => 'Feature type prefix for Search', 'description' => 'The Feature type prefix used for the WFS feature lookup when searching.', 'type' => 'string', 'group' => 'Search'), array('name' => 'search_ns', 'caption' => 'Name space for Search', 'description' => 'The Name space used for the WFS feature lookup when searching.', 'type' => 'string', 'group' => 'Search'), array('name' => 'collectionsPerPage', 'caption' => 'Collections per page of search results', 'description' => 'Number of Collections per page of search results.', 'type' => 'int', 'default' => 5, 'group' => 'Search'), array('name' => 'insectsPerRow', 'caption' => 'Number of Insects per row.', 'description' => 'Number of Insects per row of search results and on collection insect list.', 'type' => 'int', 'default' => 3, 'group' => 'Search'), array('name' => 'insectsRowsPerPage', 'caption' => 'Number of rows of insects per page of search results', 'description' => 'Number of rows of insects per page of search results.', 'type' => 'int', 'default' => 3, 'group' => 'Search'), array('name' => 'max_features', 'caption' => 'Max number of items returned', 'description' => 'Maximum number of features returned by the WFS search.', 'type' => 'int', 'default' => 1000, 'group' => 'Search'), array('name' => 'INSEE_url', 'caption' => 'URL for INSEE Search WFS service', 'description' => 'The URL used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_prefix', 'caption' => 'Feature type prefix for INSEE Search', 'description' => 'The Feature type prefix used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_type', 'caption' => 'Feature type for INSEE Search', 'description' => 'The Feature type used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_ns', 'caption' => 'Name space for INSEE Search', 'description' => 'The Name space used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'complete_attr_id', 'caption' => 'Completeness Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores whether the collection is complete.', 'type' => 'int', 'group' => 'Collection Attributes'), array('name' => 'uid_attr_id', 'caption' => 'User ID Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the CMS User ID.', 'type' => 'smpAttr', 'group' => 'Collection Attributes'), array('name' => 'username_attr_id', 'caption' => 'Username Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s username.', 'type' => 'smpAttr', 'group' => 'Collection Attributes'), array('name' => 'flower_type_attr_id', 'caption' => 'Flower Type Attribute ID', 'description' => 'Indicia ID for the occurrence attribute that stores how the flower got there.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'flower_type_dont_know', 'caption' => 'Flower Type Dont Know ID', 'description' => 'Indicia ID for the term meaning_id that shows a Flower type of dont know.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'habitat_attr_id', 'caption' => 'habitat Attribute ID', 'description' => 'Indicia ID for the location attribute that describes the habitat.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'start_time_attr_id', 'caption' => 'Start Time Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the start time.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'end_time_attr_id', 'caption' => 'End Time Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the end time.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'sky_state_attr_id', 'caption' => 'Sky State Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the state of the sky.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'temperature_attr_id', 'caption' => 'Temperature Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the temperature.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'wind_attr_id', 'caption' => 'Wind Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the Wind.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'shade_attr_id', 'caption' => 'Shade Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the shade.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'flower_list_id', 'caption' => 'Flower Species List ID', 'description' => 'The Indicia ID for the species list that flowers can be selected from.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'insect_list_id', 'caption' => 'Insect Species List ID', 'description' => 'The Indicia ID for the species list that insects can be selected from.', 'type' => 'int', 'group' => 'Insect Attributes'), array('name' => 'ID_tool_flower_url', 'caption' => 'Flower ID Tool URL', 'description' => 'The URL to call which triggers the Flower Identification Tool functionality.', 'type' => 'string', 'group' => 'ID Tool', 'default' => 'http://spipoll.org/identification/flore.php?requestId='), array('name' => 'ID_tool_flower_poll_dir', 'caption' => 'Flower ID Tool Module poll directory', 'description' => 'The directory which to poll for the results of the Flower ID Tool', 'type' => 'string', 'group' => 'ID Tool', 'default' => 'http://{HOST}/cgi-bin/proxy.cgi?url=http://ns367998.ovh.net/identification/resultats/flore/'), array('name' => 'ID_tool_insect_url', 'caption' => 'Insect ID Tool URL', 'description' => 'The URL to call which triggers the Insect Identification Tool functionality.', 'type' => 'string', 'group' => 'ID Tool', 'default' => 'http://spipoll.org/identification/insectes.php?requestId='), array('name' => 'ID_tool_insect_poll_dir', 'caption' => 'Insect ID Tool Module poll directory', 'description' => 'The directory which to poll for the results of the Insect ID Tool', 'type' => 'string', 'group' => 'ID Tool', 'default' => 'http://{HOST}/cgi-bin/proxy.cgi?url=http://ns367998.ovh.net/identification/resultats/insectes/'), array('name' => 'ID_tool_poll_interval', 'caption' => 'Time in ms between polls of results directory', 'description' => 'Time in ms between polls of results directory', 'type' => 'int', 'group' => 'ID Tool', 'default' => 1500), array('name' => 'ID_tool_poll_timeout', 'caption' => 'Time in ms before the ID Tool is aborted.', 'description' => 'Time in ms before the ID Tool is aborted.', 'type' => 'int', 'group' => 'ID Tool', 'default' => 1800000), array('name' => 'Flower_Image_Ratio', 'caption' => 'Flower image aspect ratio.', 'description' => 'Expected Ratio of width to height for flower images - 4/3 is horizontal, 3/4 is vertical.', 'type' => 'string', 'group' => 'Images', 'default' => '4/3'), array('name' => 'Environment_Image_Ratio', 'caption' => 'Environment image aspect ratio.', 'description' => 'Expected Ratio of width to height for environment images - 4/3 is horizontal, 3/4 is vertical.', 'type' => 'string', 'group' => 'Images', 'default' => '4/3'), array('name' => 'Insect_Image_Ratio', 'caption' => 'Insect image aspect ratio.', 'description' => 'Expected Ratio of width to height for insect images - 4/3 is horizontal, 3/4 is vertical.', 'type' => 'string', 'group' => 'Images', 'default' => '1/1'), array('name' => 'alert_js_function', 'caption' => 'Alert JS Function', 'description' => 'JS function called when an alert is generated', 'type' => 'string', 'group' => 'JS Calls', 'required' => false), array('name' => 'preferred_js_function', 'caption' => 'Preferred JS Function', 'description' => 'JS function called when an object is to be added to the users preferred list', 'type' => 'string', 'group' => 'JS Calls', 'required' => false)));
     return $retVal;
 }
开发者ID:BirenRathod,项目名称:drupal-6,代码行数:9,代码来源:pollenator_gallery.php

示例15: get_parameters

 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $retVal = array_merge(iform_map_get_map_parameters(), array(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' => 'fr', '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' => 'France', 'group' => 'Map'), array('name' => 'survey_id', 'caption' => 'Survey ID', 'description' => 'The Indicia ID of the survey that data will be posted into.', 'type' => 'int'), array('name' => 'percent_insects', 'caption' => 'Insect Identification Percentage', 'description' => 'The percentage of insects that must be identified before the collection may be completed.', 'type' => 'int'), array('name' => 'gallery_node', 'caption' => 'Gallery Node', 'description' => 'The DRUPAL node number for the Gallery/Filter node.', 'type' => 'int'), array('name' => 'protocol_attr_id', 'caption' => 'Protocol Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the Protocol.', 'type' => 'int', 'group' => 'Collection Attributes'), array('name' => 'complete_attr_id', 'caption' => 'Completeness Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores whether the collection is complete.', 'type' => 'int', 'group' => 'Collection Attributes'), array('name' => 'uid_attr_id', 'caption' => 'User ID Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the CMS User ID.', 'type' => 'smpAttr', 'group' => 'Collection Attributes'), array('name' => 'username_attr_id', 'caption' => 'Username Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s username.', 'type' => 'smpAttr', 'group' => 'Collection Attributes'), array('name' => 'email_attr_id', 'caption' => 'Email Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the user\'s email.', 'type' => 'smpAttr', 'group' => 'Collection Attributes'), array('name' => 'flower_list_id', 'caption' => 'Flower Species List ID', 'description' => 'The Indicia ID for the species list that flowers can be selected from.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'flower_type_attr_id', 'caption' => 'Flower Type Attribute ID', 'description' => 'Indicia ID for the occurrence attribute that stores how the flower got there.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'habitat_attr_id', 'caption' => 'habitat Attribute ID', 'description' => 'Indicia ID for the location attribute that describes the habitat.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'distance_attr_id', 'caption' => 'Distance Attribute ID', 'description' => 'Indicia ID for the location attribute that stores how far the nearest house is.', 'type' => 'int', 'group' => 'Floral Station Attributes'), array('name' => 'start_time_attr_id', 'caption' => 'Start Time Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the start time.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'end_time_attr_id', 'caption' => 'End Time Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the end time.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'sky_state_attr_id', 'caption' => 'Sky State Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the state of the sky.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'temperature_attr_id', 'caption' => 'Temperature Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the temperature.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'wind_attr_id', 'caption' => 'Wind Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the Wind.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'shade_attr_id', 'caption' => 'Shade Attribute ID', 'description' => 'Indicia ID for the sample attribute that stores the shade.', 'type' => 'int', 'group' => 'Session Attributes'), array('name' => 'insect_list_id', 'caption' => 'Insect Species List ID', 'description' => 'The Indicia ID for the species list that insects can be selected from.', 'type' => 'int', 'group' => 'Insect Attributes'), array('name' => 'number_attr_id', 'caption' => 'Insect Number Attribute ID', 'description' => 'The Indicia ID for the occurrence attribute that stores the number of insects.', 'type' => 'int', 'group' => 'Insect Attributes'), array('name' => 'foraging_attr_id', 'caption' => 'Foraging Attribute ID', 'description' => 'The Indicia ID for the occurrence attribute that stores the foraging flag.', 'type' => 'int', 'group' => 'Insect Attributes'), array('name' => 'help_module', 'caption' => 'Help DRUPAL Module', 'description' => 'The DRUPAL module which contains the context sensitive help functionality.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_inclusion_function', 'caption' => 'Help Module inclusion function', 'description' => 'The DRUPAL PHP function which is used to include the relevant Javascript into the page.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_function', 'caption' => 'Help Module invocation function', 'description' => 'The Javascript function which is called when the help buttons are clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_collection_arg', 'caption' => 'Collection Help argument', 'description' => 'The argument(s) passed to the Help Module invocation function when the help button in "Create a collection" is clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_flower_arg', 'caption' => 'Flower Identification Help argument', 'description' => 'The argument(s) passed to the Help Module invocation function when the help button in "Flower Identification" is clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_location_arg', 'caption' => 'Location Help argument', 'description' => 'The argument(s) passed to the Help Module invocation function when the help button in "Location" is clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_session_arg', 'caption' => 'Session Help argument', 'description' => 'The argument(s) passed to the Help Module invocation function when the help button in "Session" is clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'help_insect_arg', 'caption' => 'Insect Identification Help argument', 'description' => 'The argument(s) passed to the Help Module invocation function when the help button in "Insect Identification" is clicked.', 'type' => 'string', 'group' => 'Help', 'required' => false), array('name' => 'ID_tool_flower_url', 'caption' => 'Flower ID Tool URL', 'description' => 'The URL to call which triggers the Flower Identification Tool functionality.', 'type' => 'string', 'group' => 'ID Tool', 'required' => false), array('name' => 'ID_tool_flower_poll_dir', 'caption' => 'Flower ID Tool Module poll directory', 'description' => 'The directory which to poll for the results of the Flower ID Tool', 'type' => 'string', 'group' => 'ID Tool', 'required' => false), array('name' => 'ID_tool_insect_url', 'caption' => 'Insect ID Tool URL', 'description' => 'The URL to call which triggers the Insect Identification Tool functionality.', 'type' => 'string', 'group' => 'ID Tool', 'required' => false), array('name' => 'ID_tool_insect_poll_dir', 'caption' => 'Insect ID Tool Module poll directory', 'description' => 'The directory which to poll for the results of the Insect ID Tool', 'type' => 'string', 'group' => 'ID Tool', 'required' => false), array('name' => 'ID_tool_poll_interval', 'caption' => 'Time in ms between polls of results directory', 'description' => 'Time in ms between polls of results directory', 'type' => 'int', 'group' => 'ID Tool', 'default' => 1500), array('name' => 'ID_tool_poll_timeout', 'caption' => 'Time in ms before the ID Tool is aborted.', 'description' => 'Time in ms before the ID Tool is aborted.', 'type' => 'int', 'group' => 'ID Tool', 'default' => 1800000), array('name' => 'INSEE_url', 'caption' => 'URL for INSEE Search WFS service', 'description' => 'The URL used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_prefix', 'caption' => 'Feature type prefix for INSEE Search', 'description' => 'The Feature type prefix used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_type', 'caption' => 'Feature type for INSEE Search', 'description' => 'The Feature type used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search'), array('name' => 'INSEE_ns', 'caption' => 'Name space for INSEE Search', 'description' => 'The Name space used for the WFS feature lookup when search for INSEE numbers.', 'type' => 'string', 'group' => 'INSEE Search')));
     return $retVal;
 }
开发者ID:BirenRathod,项目名称:drupal-6,代码行数:9,代码来源:pollenators.php


注:本文中的iform_map_get_map_parameters函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。