• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP iform_map_get_map_parameters函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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',  

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP iform_map_get_ol_options函数代码示例发布时间:2022-05-15
下一篇:
PHP iform_map_get_map_options函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap