From e03efbd3c0cc91966887d0b7d3713bd764a00d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denny=20Korsuk=C3=A9witz?= Date: Wed, 8 Feb 2023 16:56:16 +0100 Subject: [PATCH] Version 1.0.2 --- .github/workflows/badges.yml | 65 +++++++++++++++++++ .gitignore | 3 + .vscodeignore | 1 - CHANGELOG.md | 10 +++ README.md | 8 +-- bin/znuny.GenerateVSCSnippets.pl | 26 ++++++-- package.json | 8 ++- .../DBObject/znuny.DBObject.Do.code-snippets | 2 +- .../znuny.DBObject.Prepare.code-snippets | 2 +- ...nuny.EmailObject.SendExecute.code-snippets | 17 +++-- ...ct.ConfigureOutputFileHandle.code-snippets | 2 +- ...uny.EncodeObject.EncodeInput.code-snippets | 4 +- ...ny.EncodeObject.EncodeOutput.code-snippets | 4 +- ...Object.EmbeddedImagesExtract.code-snippets | 4 +- ...ny.HTMLUtilsObject.LinkQuote.code-snippets | 2 +- ...znuny.HTMLUtilsObject.Safety.code-snippets | 2 +- ...perObject.CustomCodeActivate.code-snippets | 2 +- ...znuny.LastViewsObject.Update.code-snippets | 2 +- ...nuny.LayoutObject.Ascii2Html.code-snippets | 2 +- ....LayoutObject.BuildSelection.code-snippets | 2 +- ...tomerUserAddressBookListShow.code-snippets | 2 +- ...y.LayoutObject.HTMLLinkQuote.code-snippets | 2 +- ...znuny.LayoutObject.LinkQuote.code-snippets | 2 +- .../znuny.LayoutObject.Output.code-snippets | 6 +- ...Object.RichTextDocumentServe.code-snippets | 2 +- ...uny.MainObject.DirectoryRead.code-snippets | 2 +- .../znuny.MainObject.FileWrite.code-snippets | 4 +- .../znuny.MainObject.MD5sum.code-snippets | 2 +- ...y.PackageObject.CheckVersion.code-snippets | 2 +- ...ageObject.GetRequiredModules.code-snippets | 12 ++++ ...geObject.GetRequiredPackages.code-snippets | 13 +--- ...t.PackageInstallOrderListGet.code-snippets | 8 +-- ....PackageObject.PackageVerify.code-snippets | 2 +- .../znuny.ParamObject.GetParams.code-snippets | 2 +- ...ject.StatsResultCacheCompute.code-snippets | 2 +- ...tsObject.StatsResultCacheGet.code-snippets | 2 +- .../znuny.StatsObject.StatsRun.code-snippets | 2 +- ...nuny.StatsObject.StatsUpdate.code-snippets | 2 +- .../znuny.StatsObject.SumBuild.code-snippets | 2 +- ...stObject.GetTicketAttributes.code-snippets | 4 +- ...estEmailObject.EmailValidate.code-snippets | 6 +- ...nuny.UnitTestObject.IsDeeply.code-snippets | 8 +-- ...y.UnitTestObject.IsNotDeeply.code-snippets | 4 +- .../znuny.VirtualFSObject.Write.code-snippets | 2 +- .../znuny.XMLObject.XMLHash2D.code-snippets | 2 +- .../znuny.XMLObject.XMLHashAdd.code-snippets | 4 +- ...nuny.XMLObject.XMLHashUpdate.code-snippets | 2 +- .../znuny.XMLObject.XMLParse.code-snippets | 2 +- ...LObject.XMLStructure2XMLHash.code-snippets | 2 +- ...uny.ObjectManager.DiffObject.code-snippets | 2 +- ...jectManager.PostMasterObject.code-snippets | 2 +- .../_Test_/znuny.Test.Snippets.code-snippets | 44 +++++++++++++ src/contributes-snippets-data.json | 4 ++ src/skipped-raw-data.json | 2 + src/snippets-raw-data.json | 30 +++++---- 55 files changed, 262 insertions(+), 97 deletions(-) create mode 100644 .github/workflows/badges.yml create mode 100644 .gitignore create mode 100644 snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredModules.code-snippets create mode 100644 snippets/_Test_/znuny.Test.Snippets.code-snippets diff --git a/.github/workflows/badges.yml b/.github/workflows/badges.yml new file mode 100644 index 00000000..d250bfcb --- /dev/null +++ b/.github/workflows/badges.yml @@ -0,0 +1,65 @@ +--- +name: Badges + +on: + # Runs on pushes targeting the default branch + push: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + Badges: + name: Badges + runs-on: ubuntu-22.04 # ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + env: + fetch-depth: "1" + with: + path: repository + + - name: Get Badge Data + run: | + SNIPPETS_TOTAL=$(find repository/snippets/ -type f | wc -l) + SNIPPETS_FUNCTIONS=$(find repository/snippets/Functions -type f | wc -l) + SNIPPETS_OBJECTMANAGER=$(find repository/snippets/ObjectManager -type f | wc -l) + SNIPPETS_MODULES=$(find repository/snippets/Modules -type f | wc -l) + SNIPPETS_GENERATED=$((SNIPPETS_FUNCTIONS + SNIPPETS_OBJECTMANAGER + SNIPPETS_MODULES)) + SNIPPETS_STATIC=$((SNIPPETS_TOTAL - SNIPPETS_GENERATED)) + { + echo "SNIPPETS_TOTAL=$SNIPPETS_TOTAL" + echo "SNIPPETS_GENERATED=$SNIPPETS_GENERATED" + echo "SNIPPETS_STATIC=$SNIPPETS_STATIC" + } >> "$GITHUB_ENV" + + - name: Create Total Snippet Counter Badge + uses: schneegans/dynamic-badges-action@v1.6.0 + with: + auth: ${{ secrets.GIST }} + gistID: e2729bfd9b81d9c032ded617a3f924e7 + filename: ${{ github.event.repository.name }}:snippets-total.json + label: Snippets Total + message: ${{ env.SNIPPETS_TOTAL }} + color: blue + + - name: Create Generated Snippet Counter Badge + uses: schneegans/dynamic-badges-action@v1.6.0 + with: + auth: ${{ secrets.GIST }} + gistID: e2729bfd9b81d9c032ded617a3f924e7 + filename: ${{ github.event.repository.name }}:snippets-generated.json + label: Snippets Generated + message: ${{ env.SNIPPETS_GENERATED }} + color: blue + + - name: Create Static Snippet Counter Badge + uses: schneegans/dynamic-badges-action@v1.6.0 + with: + auth: ${{ secrets.GIST }} + gistID: e2729bfd9b81d9c032ded617a3f924e7 + filename: ${{ github.event.repository.name }}:snippets-static.json + label: Snippets Static + message: ${{ env.SNIPPETS_STATIC }} + color: blue diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2ecf6ff1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.env +coverage +node_modules \ No newline at end of file diff --git a/.vscodeignore b/.vscodeignore index f369b5e5..19bbe787 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,4 +1,3 @@ .vscode/** .vscode-test/** .gitignore -vsc-extension-quickstart.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f5b5572..4ea821a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to the "Znuny (DK4Znuny-VisualStudioCode)" extension will be documented in this file. +## [1.0.2] + +- Snippets + - Escaped '\$' to use scalarref (scalar reference) + - Escaped '\@' to use arrayref (array reference) + - Escaped '\%' to use hashref (hash reference) + - Escaped '\&' to use coderef (code reference) + - Escaped '\*' to use globref (glob reference) + - Applied new escaped strings to snippets + ## [1.0.1] - Snippets diff --git a/README.md b/README.md index 7b078018..d5d71e5a 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ Znuny (DK4Znuny-VisualStudioCode) is an extension that helps you to make Znuny d | Versions | Status | | ------ | ------ | -| ![GitHub label version](https://img.shields.io/github/labels/dennykorsukewitz/DK4/dev) | [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/dennykorsukewitz/DK4Znuny-VisualStudioCode/1.0.1/dev)](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/compare/1.0.1...dev) ![GitHub Workflow Lint](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/actions/workflows/lint.yml/badge.svg?branch=dev&style=flat&label=Lint) ![GitHub Workflow Pages](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/actions/workflows/pages.yml/badge.svg?branch=dev&style=flat&label=GitHub%20Pages) | +| ![GitHub label version](https://img.shields.io/github/labels/dennykorsukewitz/DK4/dev) | [![GitHub commits since tagged version](https://img.shields.io/github/commits-since/dennykorsukewitz/DK4Znuny-VisualStudioCode/1.0.2/dev)](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/compare/1.0.2...dev) ![GitHub Workflow Lint](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/actions/workflows/lint.yml/badge.svg?branch=dev&style=flat&label=Lint) ![GitHub Workflow Pages](https://github.com/dennykorsukewitz/DK4Znuny-VisualStudioCode/actions/workflows/pages.yml/badge.svg?branch=dev&style=flat&label=GitHub%20Pages) | ## Features -### Snippets +### Snippets ![Snippets Total Counter](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Fdennykorsukewitz%2Fe2729bfd9b81d9c032ded617a3f924e7%2Fraw%2F5d77e9225ca53b6853ce4a5eda187b3edffc2426%2FDK4Znuny-VisualStudioCode%3Asnippets-total.json) Znuny code snippets for fast, consistent and error free coding. ![snippets](doc/images/snippets.gif) -#### Static +#### Static ![Snippets Static Counter](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Fdennykorsukewitz%2Fe2729bfd9b81d9c032ded617a3f924e7%2Fraw%2F5d77e9225ca53b6853ce4a5eda187b3edffc2426%2FDK4Znuny-VisualStudioCode%3Asnippets-static.json) Statically created snippets. @@ -39,7 +39,7 @@ Statically created snippets. - Selenium - VariableCheck -#### Generated +#### Generated ![Snippets Generated Counter](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Fdennykorsukewitz%2Fe2729bfd9b81d9c032ded617a3f924e7%2Fraw%2F5d77e9225ca53b6853ce4a5eda187b3edffc2426%2FDK4Znuny-VisualStudioCode%3Asnippets-generated.json) Snippets created generically using the existing perl POD. diff --git a/bin/znuny.GenerateVSCSnippets.pl b/bin/znuny.GenerateVSCSnippets.pl index 3b5859e8..7981af5e 100755 --- a/bin/znuny.GenerateVSCSnippets.pl +++ b/bin/znuny.GenerateVSCSnippets.pl @@ -943,15 +943,33 @@ =head2 _PrepareContent() sub _PrepareContent { my ( $Content ) = @_; - # $ => \\$ (in json) => \$ (in VSC) + # $ => \\$ (in code-snippets json) => \$ (in VSC) $Content =~ s{\$}{\\\\\$}g; - # } => \\} (in json) => \} (in VSC) - $Content =~ s{\}}{\\\\\}}g; + # \\\$ => \\\\$ (in code-snippets json) => \\$ (in VSC) + $Content =~ s{ \\\\\\\$}{ \\\\\\\\\\\\\$}g; + + # \@ => \\@ (in code-snippets json) => \@ (in VSC) + $Content =~ s{\\@}{\\\\\@}g; + + # \% => \\% (in code-snippets json) => \% (in VSC) + $Content =~ s{\\%}{\\\\\%}g; + + # \& => \\& (in code-snippets json) => \& (in VSC) + $Content =~ s{\\&}{\\\\\&}g; - # " => \\" (in json) => \" (in VSC) + # \* => \\* (in code-snippets json) => \* (in VSC) + $Content =~ s{\\\*}{\\\\\*}g; + + # \: => \\: (in code-snippets json) => \* (in VSC) + $Content =~ s{\\\:}{\\\\\:}g; + + # " => \\" (in code-snippets json) => \" (in VSC) $Content =~ s{\"}{\\\\\"}g; + # } => \\} (in code-snippets json) => \} (in VSC) + $Content =~ s{\}}{\\\\\}}g; + # remove all \n and \z $Content =~ s{\n+\z}{}g; diff --git a/package.json b/package.json index 3e896f72..b2b1b873 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dk4znuny-visualstudiocode", "displayName": "Znuny", "description": "Znuny (DK4Znuny-VisualStudioCode) is an extension that helps you to make Znuny development less painful.", - "version": "1.0.1", + "version": "1.0.2", "publisher": "dennykorsukewitz", "icon": "doc/images/icon.png", "license": "SEE LICENSE IN LICENSE", @@ -20,7 +20,7 @@ "url": "https://github.com/sponsors/dennykorsukewitz" }, "keywords": [ - "OTRS", "Znuny", "Snippets" + "OTRS", "Znuny", "Snippets", "Perl" ], "categories": [ "Snippets" @@ -30,7 +30,9 @@ }, "contributes": { "snippets": [ - + { + "path": "./snippets/_Test_/znuny.Test.Snippets.code-snippets" + }, { "language": "xml", diff --git a/snippets/Functions/DBObject/znuny.DBObject.Do.code-snippets b/snippets/Functions/DBObject/znuny.DBObject.Do.code-snippets index 86b588f9..90e5d90e 100644 --- a/snippets/Functions/DBObject/znuny.DBObject.Do.code-snippets +++ b/snippets/Functions/DBObject/znuny.DBObject.Do.code-snippets @@ -3,7 +3,7 @@ "body": [ "${1:\\$DBObject->Do(", " SQL => \\"INSERT INTO table (name1, name2) VALUES (?, ?)\\",", - " Bind => [ \\\$Var1, \\\$Var2 ],", + " Bind => [ \\\\\\$Var1, \\\\\\$Var2 ],", ");}", "${2:\\$DBObject->Do( SQL => \\"DELETE FROM table\\" );}", "${3:\\$DBObject->Do( SQL => \\"INSERT INTO table (name) VALUES ('dog')\\" );}", diff --git a/snippets/Functions/DBObject/znuny.DBObject.Prepare.code-snippets b/snippets/Functions/DBObject/znuny.DBObject.Prepare.code-snippets index 4227f12a..9ded84b7 100644 --- a/snippets/Functions/DBObject/znuny.DBObject.Prepare.code-snippets +++ b/snippets/Functions/DBObject/znuny.DBObject.Prepare.code-snippets @@ -4,7 +4,7 @@ "${1:\\$DBObject->Prepare(", " SQL => \\"SELECT id, name, content FROM table WHERE name_a = ? AND name_b = ?\\",", " Encode => [ 1, 1, 0 ],", - " Bind => [ \\\$Var1, \\\$Var2 ],", + " Bind => [ \\\\\\$Var1, \\\\\\$Var2 ],", ");}", "${2:\\$DBObject->Prepare(", " SQL => \\"SELECT id, name, content FROM table\\",", diff --git a/snippets/Functions/EmailObject/znuny.EmailObject.SendExecute.code-snippets b/snippets/Functions/EmailObject/znuny.EmailObject.SendExecute.code-snippets index 0a563539..5de45427 100644 --- a/snippets/Functions/EmailObject/znuny.EmailObject.SendExecute.code-snippets +++ b/snippets/Functions/EmailObject/znuny.EmailObject.SendExecute.code-snippets @@ -5,15 +5,22 @@ "my \\$Result = \\$EmailObject->SendExecute(", " From => \\$RealFrom,", " To => \\$To, # can be a string with comma separated mail addresses", - " Header => \\\$Param{Header\\},", - " Body => \\\$Param{Body\\},", + " Header => \\\\\\$Param{Header\\},", + " Body => \\\\\\$Param{Body\\},", " CommunicationLogObject => \\$CommunicationLogObject,", ");}", "${2:my \\$Result = \\$EmailObject->SendExecute(", " From => \\$RealFrom,", - " To => \@ToArray,", - " Header => \\\$Param{Header\\},", - " Body => \\\$Param{Body\\},", + " To => \\$To, # can be a string with comma separated mail addresses", + " Header => \\\\\\$Param{Header\\},", + " Body => \\\\\\$Param{Body\\},", + " CommunicationLogObject => \\$CommunicationLogObject,", + ");}", + "${3:my \\$Result = \\$EmailObject->SendExecute(", + " From => \\$RealFrom,", + " To => \\@ToArray,", + " Header => \\\\\\$Param{Header\\},", + " Body => \\\\\\$Param{Body\\},", " CommunicationLogObject => \\$CommunicationLogObject,", ");}", ], diff --git a/snippets/Functions/EncodeObject/znuny.EncodeObject.ConfigureOutputFileHandle.code-snippets b/snippets/Functions/EncodeObject/znuny.EncodeObject.ConfigureOutputFileHandle.code-snippets index 7a35d9ef..c869d5a3 100644 --- a/snippets/Functions/EncodeObject/znuny.EncodeObject.ConfigureOutputFileHandle.code-snippets +++ b/snippets/Functions/EncodeObject/znuny.EncodeObject.ConfigureOutputFileHandle.code-snippets @@ -1,7 +1,7 @@ { "znuny.EncodeObject.ConfigureOutputFileHandle": { "body": [ - "${1:\\$EncodeObject->ConfigureOutputFileHandle( FileHandle => \*STDOUT );}", + "${1:\\$EncodeObject->ConfigureOutputFileHandle( FileHandle => \\*STDOUT );}", ], "prefix": "znuny.EncodeObject.ConfigureOutputFileHandle", "description": "6.0, 6.4, 6.5", diff --git a/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeInput.code-snippets b/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeInput.code-snippets index b173aff2..1b672319 100644 --- a/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeInput.code-snippets +++ b/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeInput.code-snippets @@ -1,8 +1,8 @@ { "znuny.EncodeObject.EncodeInput": { "body": [ - "${1:\\$EncodeObject->EncodeInput( \\\$String );}", - "${2:\\$EncodeObject->EncodeInput( \@Array );}", + "${1:\\$EncodeObject->EncodeInput( \\\\\\$String );}", + "${2:\\$EncodeObject->EncodeInput( \\@Array );}", ], "prefix": "znuny.EncodeObject.EncodeInput", "description": "6.0, 6.4, 6.5", diff --git a/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeOutput.code-snippets b/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeOutput.code-snippets index ee573803..a43b1c04 100644 --- a/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeOutput.code-snippets +++ b/snippets/Functions/EncodeObject/znuny.EncodeObject.EncodeOutput.code-snippets @@ -1,8 +1,8 @@ { "znuny.EncodeObject.EncodeOutput": { "body": [ - "${1:\\$EncodeObject->EncodeOutput( \\\$String );}", - "${2:\\$EncodeObject->EncodeOutput( \@Array );}", + "${1:\\$EncodeObject->EncodeOutput( \\\\\\$String );}", + "${2:\\$EncodeObject->EncodeOutput( \\@Array );}", ], "prefix": "znuny.EncodeObject.EncodeOutput", "description": "6.0, 6.4, 6.5", diff --git a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.EmbeddedImagesExtract.code-snippets b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.EmbeddedImagesExtract.code-snippets index f10f7497..b387266a 100644 --- a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.EmbeddedImagesExtract.code-snippets +++ b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.EmbeddedImagesExtract.code-snippets @@ -2,8 +2,8 @@ "znuny.HTMLUtilsObject.EmbeddedImagesExtract": { "body": [ "${1:\\$HTMLUtilsObject->EmbeddedImagesExtract(", - " DocumentRef => \\\$Body,", - " AttachmentsRef => \@Attachments,", + " DocumentRef => \\\\\\$Body,", + " AttachmentsRef => \\@Attachments,", ");}", ], "prefix": "znuny.HTMLUtilsObject.EmbeddedImagesExtract", diff --git a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.LinkQuote.code-snippets b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.LinkQuote.code-snippets index 698d4247..091d96d5 100644 --- a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.LinkQuote.code-snippets +++ b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.LinkQuote.code-snippets @@ -7,7 +7,7 @@ " TargetAdd => 1, # add target=\\"_blank\\" to all existing \\"LinkQuote(", - " String => \\\$HTMLStringRef,", + " String => \\\\\\$HTMLStringRef,", ");}", ], "prefix": "znuny.HTMLUtilsObject.LinkQuote", diff --git a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.Safety.code-snippets b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.Safety.code-snippets index db9bed79..5725a58c 100644 --- a/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.Safety.code-snippets +++ b/snippets/Functions/HTMLUtilsObject/znuny.HTMLUtilsObject.Safety.code-snippets @@ -14,7 +14,7 @@ " ReplacementStr => 'string', # optional, string to show instead of applet, object, embed, svg and img tags", ");}", "${2:my %Safe = \\$HTMLUtilsObject->Safety(", - " String => \\\$HTMLStringRef,", + " String => \\\\\\$HTMLStringRef,", " NoApplet => 1,", " NoObject => 1,", " NoEmbed => 1,", diff --git a/snippets/Functions/HelperObject/znuny.HelperObject.CustomCodeActivate.code-snippets b/snippets/Functions/HelperObject/znuny.HelperObject.CustomCodeActivate.code-snippets index 64c79125..3d09da5b 100644 --- a/snippets/Functions/HelperObject/znuny.HelperObject.CustomCodeActivate.code-snippets +++ b/snippets/Functions/HelperObject/znuny.HelperObject.CustomCodeActivate.code-snippets @@ -13,7 +13,7 @@ "sub Request {", " my \\$JSONString = '{\\"Results\\":{\\},\\"ErrorMessage\\":\\"\\",\\"Success\\":1\\}';", " return (", - " Content => \\\$JSONString,", + " Content => \\\\\\$JSONString,", " Status => '200 OK',", " );", "\\}", diff --git a/snippets/Functions/LastViewsObject/znuny.LastViewsObject.Update.code-snippets b/snippets/Functions/LastViewsObject/znuny.LastViewsObject.Update.code-snippets index a6c7a286..bbc1932f 100644 --- a/snippets/Functions/LastViewsObject/znuny.LastViewsObject.Update.code-snippets +++ b/snippets/Functions/LastViewsObject/znuny.LastViewsObject.Update.code-snippets @@ -3,7 +3,7 @@ "body": [ "${1:my \\$Success = \\$LastViewsObject->Update(", " SessionID => \\$Self->{SessionID\\},", - " Request => \%Request,", + " Request => \\%Request,", ");}", ], "prefix": "znuny.LastViewsObject.Update", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.Ascii2Html.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.Ascii2Html.code-snippets index 325a037b..4e603d58 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.Ascii2Html.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.Ascii2Html.code-snippets @@ -12,7 +12,7 @@ " LinkFeature => 0, # do some URL detections", ");}", "${2:my \\$HTMLStringRef = \\$LayoutObject->Ascii2Html(", - " Text => \\\$String,", + " Text => \\\\\\$String,", ");}", ], "prefix": "znuny.LayoutObject.Ascii2Html", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.BuildSelection.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.BuildSelection.code-snippets index e731152a..80a38481 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.BuildSelection.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.BuildSelection.code-snippets @@ -43,7 +43,7 @@ " \\},", " InvolvedAgents => {", " Name => 'Involved in this ticket',", - " Values => \%HashWithData,", + " Values => \\%HashWithData,", " \\},", " \\},", " ExpandFilters => 1, # (optional) default 0 (0|1) expand filters list by default", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.CustomerUserAddressBookListShow.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.CustomerUserAddressBookListShow.code-snippets index 46ae2b7e..561ec46f 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.CustomerUserAddressBookListShow.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.CustomerUserAddressBookListShow.code-snippets @@ -6,7 +6,7 @@ " Total => scalar @{ \\$CustomerUserIDsRef \\}, # total number of customer user ids", " View => \\$Self->{View\\}, # optional, the default value is 'AddressBook'", " Filter => 'All',", - " Filters => \%NavBarFilter,", + " Filters => \\%NavBarFilter,", " LinkFilter => \\$LinkFilter,", " TitleName => 'Overview: CustomerUsers',", " TitleValue => \\$Self->{Filter\\},", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.HTMLLinkQuote.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.HTMLLinkQuote.code-snippets index c5202d67..244eff8f 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.HTMLLinkQuote.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.HTMLLinkQuote.code-snippets @@ -5,7 +5,7 @@ " String => \\$HTMLString,", ");}", "${2:my \\$HTMLWithLinksRef = \\$LayoutObject->HTMLLinkQuote(", - " String => \\\$HTMLString,", + " String => \\\\\\$HTMLString,", ");}", ], "prefix": "znuny.LayoutObject.HTMLLinkQuote", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.LinkQuote.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.LinkQuote.code-snippets index 2c3f4ae2..e1454cf9 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.LinkQuote.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.LinkQuote.code-snippets @@ -5,7 +5,7 @@ " Text => \\$HTMLWithOutLinks,", ");}", "${2:my \\$HTMLWithLinksRef = \\$LayoutObject->LinkQuote(", - " Text => \\\$HTMLWithOutLinksRef,", + " Text => \\\\\\$HTMLWithOutLinksRef,", ");}", ], "prefix": "znuny.LayoutObject.LinkQuote", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.Output.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.Output.code-snippets index 80eb06ad..c8502326 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.Output.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.Output.code-snippets @@ -3,16 +3,16 @@ "body": [ "${1:my \\$HTML = \\$LayoutObject->Output(", " Template => '[% Data.SomeKey | html %]',", - " Data => \%Param,", + " Data => \\%Param,", ");}", "${2:my \\$HTML = \\$LayoutObject->Output(", " TemplateFile => 'AdminLog.tt',", - " Data => \%Param,", + " Data => \\%Param,", " AJAX => 1,", ");}", "${3:my \\$HTML = \\$LayoutObject->Output(", " TemplateFile => 'AdminLog.tt',", - " Data => \%Param,", + " Data => \\%Param,", ");}", ], "prefix": "znuny.LayoutObject.Output", diff --git a/snippets/Functions/LayoutObject/znuny.LayoutObject.RichTextDocumentServe.code-snippets b/snippets/Functions/LayoutObject/znuny.LayoutObject.RichTextDocumentServe.code-snippets index d474e720..705bdac8 100644 --- a/snippets/Functions/LayoutObject/znuny.LayoutObject.RichTextDocumentServe.code-snippets +++ b/snippets/Functions/LayoutObject/znuny.LayoutObject.RichTextDocumentServe.code-snippets @@ -7,7 +7,7 @@ " ContentType => 'text/html; charset=\\"iso-8859-1\\"',", " \\},", " URL => 'AgentTicketAttachment;Subaction=HTMLView;TicketID=123;ArticleID=123;FileID=',", - " Attachments => \%AttachmentListOfInlineAttachments,", + " Attachments => \\%AttachmentListOfInlineAttachments,", "", " LoadInlineContent => 0, # Serve the document including all inline content. WARNING: This might be dangerous.", "", diff --git a/snippets/Functions/MainObject/znuny.MainObject.DirectoryRead.code-snippets b/snippets/Functions/MainObject/znuny.MainObject.DirectoryRead.code-snippets index 1d6397b8..9fa2e6c1 100644 --- a/snippets/Functions/MainObject/znuny.MainObject.DirectoryRead.code-snippets +++ b/snippets/Functions/MainObject/znuny.MainObject.DirectoryRead.code-snippets @@ -21,7 +21,7 @@ ");}", "${5:my @FilesInDirectory = \\$MainObject->DirectoryRead(", " Directory => '/tmp',", - " Filter => \@MyFilters,", + " Filter => \\@MyFilters,", ");}", ], "prefix": "znuny.MainObject.DirectoryRead", diff --git a/snippets/Functions/MainObject/znuny.MainObject.FileWrite.code-snippets b/snippets/Functions/MainObject/znuny.MainObject.FileWrite.code-snippets index 8246c912..f0a790ff 100644 --- a/snippets/Functions/MainObject/znuny.MainObject.FileWrite.code-snippets +++ b/snippets/Functions/MainObject/znuny.MainObject.FileWrite.code-snippets @@ -7,7 +7,7 @@ " # or Location", " Location => 'c:\some\location\file2write.txt',", "", - " Content => \\\$Content,", + " Content => \\\\\\$Content,", " Mode => 'binmode', # binmode|utf8", " Type => 'Local', # optional - Local|Attachment|MD5", " Permission => '644', # optional - unix file permissions", @@ -18,7 +18,7 @@ " # or Location", " Location => 'c:\some\location\file2write.txt',", "", - " Content => \\\$Content,", + " Content => \\\\\\$Content,", ");}", ], "prefix": "znuny.MainObject.FileWrite", diff --git a/snippets/Functions/MainObject/znuny.MainObject.MD5sum.code-snippets b/snippets/Functions/MainObject/znuny.MainObject.MD5sum.code-snippets index a03abac2..b18741ba 100644 --- a/snippets/Functions/MainObject/znuny.MainObject.MD5sum.code-snippets +++ b/snippets/Functions/MainObject/znuny.MainObject.MD5sum.code-snippets @@ -9,7 +9,7 @@ " Filename => '/path/to/me_to_alal.xml',", ");}", "${3:my \\$MD5Sum = \\$MainObject->MD5sum(", - " String => \\\$SomeString,", + " String => \\\\\\$SomeString,", ");}", ], "prefix": "znuny.MainObject.MD5sum", diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.CheckVersion.code-snippets b/snippets/Functions/PackageObject/znuny.PackageObject.CheckVersion.code-snippets index 647669d2..d41e294b 100644 --- a/snippets/Functions/PackageObject/znuny.PackageObject.CheckVersion.code-snippets +++ b/snippets/Functions/PackageObject/znuny.PackageObject.CheckVersion.code-snippets @@ -9,7 +9,7 @@ " )}", ], "prefix": "znuny.PackageObject.CheckVersion", - "description": "6.5", + "description": "6.4, 6.5", "scope": "perl" } } diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredModules.code-snippets b/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredModules.code-snippets new file mode 100644 index 00000000..19dac063 --- /dev/null +++ b/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredModules.code-snippets @@ -0,0 +1,12 @@ +{ + "znuny.PackageObject.GetRequiredModules": { + "body": [ + "${1:my \\$ModuleRequired = \\$PackageObject->GetRequiredModules(", + " Structure => \\%Structure, # return of PackageParse function", + ");}", + ], + "prefix": "znuny.PackageObject.GetRequiredModules", + "description": "6.5", + "scope": "perl" + } +} diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredPackages.code-snippets b/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredPackages.code-snippets index a686e268..258bdfc7 100644 --- a/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredPackages.code-snippets +++ b/snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredPackages.code-snippets @@ -2,20 +2,11 @@ "znuny.PackageObject.GetRequiredPackages": { "body": [ "${1:my \\$PackageRequired = \\$PackageObject->GetRequiredPackages(", - " Structure => \%Structure, # return of PackageParse function", - ");}", - "${2:my \\$PackageRequired = \\$PackageObject->GetRequiredPackages(", - " Structure => \%Structure, # return of C", - ");}", - "${3:my \\$PackageRequired = \\$PackageObject->GetRequiredPackages(", - " Structure => \%Structure, # return of PackageParse function", - ");}", - "${4:my \\$PackageRequired = \\$PackageObject->GetRequiredPackages(", - " Structure => \%Structure, # return of PackageParse()", + " Structure => \\%Structure, # return of PackageParse()", ");}", ], "prefix": "znuny.PackageObject.GetRequiredPackages", - "description": "6.5", + "description": "6.4, 6.5", "scope": "perl" } } diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.PackageInstallOrderListGet.code-snippets b/snippets/Functions/PackageObject/znuny.PackageObject.PackageInstallOrderListGet.code-snippets index 2f6c6ec6..60ac2006 100644 --- a/snippets/Functions/PackageObject/znuny.PackageObject.PackageInstallOrderListGet.code-snippets +++ b/snippets/Functions/PackageObject/znuny.PackageObject.PackageInstallOrderListGet.code-snippets @@ -2,12 +2,12 @@ "znuny.PackageObject.PackageInstallOrderListGet": { "body": [ "${1:my %Result = \\$PackageObject->PackageInstallOrderListGet(", - " InstalledPackages => \@PackageList, # as returned from RepositoryList(Result => 'short')", - " OnlinePackages => \@PackageList, # as returned from PackageOnlineList()", + " InstalledPackages => \\@PackageList, # as returned from RepositoryList(Result => 'short')", + " OnlinePackages => \\@PackageList, # as returned from PackageOnlineList()", ");}", "${2:my %Result = \\$PackageObject->PackageInstallOrderListGet(", - " InstalledPackages => \@PakageList, # as returned from RepositoryList(Result => 'short')", - " OnlinePackages => \@PakageList, # as returned from PackageOnlineList()", + " InstalledPackages => \\@PakageList, # as returned from RepositoryList(Result => 'short')", + " OnlinePackages => \\@PakageList, # as returned from PackageOnlineList()", ");}", ], "prefix": "znuny.PackageObject.PackageInstallOrderListGet", diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.PackageVerify.code-snippets b/snippets/Functions/PackageObject/znuny.PackageObject.PackageVerify.code-snippets index 11eff83f..4c3a561d 100644 --- a/snippets/Functions/PackageObject/znuny.PackageObject.PackageVerify.code-snippets +++ b/snippets/Functions/PackageObject/znuny.PackageObject.PackageVerify.code-snippets @@ -3,7 +3,7 @@ "body": [ "${1:\\$PackageObject->PackageVerify(", " Package => \\$Package,", - " Structure => \%Structure,", + " Structure => \\%Structure,", ");}", "${2:\\$PackageObject->PackageVerify(", " Package => \\$Package,", diff --git a/snippets/Functions/ParamObject/znuny.ParamObject.GetParams.code-snippets b/snippets/Functions/ParamObject/znuny.ParamObject.GetParams.code-snippets index ff14c40d..b84aa711 100644 --- a/snippets/Functions/ParamObject/znuny.ParamObject.GetParams.code-snippets +++ b/snippets/Functions/ParamObject/znuny.ParamObject.GetParams.code-snippets @@ -8,7 +8,7 @@ ");}", ], "prefix": "znuny.ParamObject.GetParams", - "description": "6.5", + "description": "6.4, 6.5", "scope": "perl" } } diff --git a/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheCompute.code-snippets b/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheCompute.code-snippets index 27b03b95..04e2fcff 100644 --- a/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheCompute.code-snippets +++ b/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheCompute.code-snippets @@ -4,7 +4,7 @@ "${1:my \\$StatArray = \\$StatsObject->StatsResultCacheCompute(", " StatID => \\$StatID,", " UserID => \\$UserID, # target UserID", - " UserGetParam => \%UserGetParam, # user settings of non-fixed fields", + " UserGetParam => \\%UserGetParam, # user settings of non-fixed fields", ");}", ], "prefix": "znuny.StatsObject.StatsResultCacheCompute", diff --git a/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheGet.code-snippets b/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheGet.code-snippets index 714b4d28..8f225aa8 100644 --- a/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheGet.code-snippets +++ b/snippets/Functions/StatsObject/znuny.StatsObject.StatsResultCacheGet.code-snippets @@ -4,7 +4,7 @@ "${1:my \\$StatArray = \\$StatsObject->StatsResultCacheGet(", " StatID => \\$StatID,", " UserID => \\$UserID, # target UserID", - " UserGetParam => \%GetParam,", + " UserGetParam => \\%GetParam,", ");}", ], "prefix": "znuny.StatsObject.StatsResultCacheGet", diff --git a/snippets/Functions/StatsObject/znuny.StatsObject.StatsRun.code-snippets b/snippets/Functions/StatsObject/znuny.StatsObject.StatsRun.code-snippets index 67e39f18..6242506d 100644 --- a/snippets/Functions/StatsObject/znuny.StatsObject.StatsRun.code-snippets +++ b/snippets/Functions/StatsObject/znuny.StatsObject.StatsRun.code-snippets @@ -3,7 +3,7 @@ "body": [ "${1:my \\$StatArray = \\$StatsObject->StatsRun(", " StatID => \\$StatID,", - " GetParam => \%GetParam,", + " GetParam => \\%GetParam,", " Preview => 1, # optional, return fake data for preview (only for dynamic stats)", " UserID => \\$UserID,", ");}", diff --git a/snippets/Functions/StatsObject/znuny.StatsObject.StatsUpdate.code-snippets b/snippets/Functions/StatsObject/znuny.StatsObject.StatsUpdate.code-snippets index e5f3b470..c879d809 100644 --- a/snippets/Functions/StatsObject/znuny.StatsObject.StatsUpdate.code-snippets +++ b/snippets/Functions/StatsObject/znuny.StatsObject.StatsUpdate.code-snippets @@ -3,7 +3,7 @@ "body": [ "${1:\\$StatsObject->StatsUpdate(", " StatID => \\$StatID,", - " Hash => \%Hash,", + " Hash => \\%Hash,", " UserID => \\$UserID,", ");}", ], diff --git a/snippets/Functions/StatsObject/znuny.StatsObject.SumBuild.code-snippets b/snippets/Functions/StatsObject/znuny.StatsObject.SumBuild.code-snippets index 4ba07717..b33b1c80 100644 --- a/snippets/Functions/StatsObject/znuny.StatsObject.SumBuild.code-snippets +++ b/snippets/Functions/StatsObject/znuny.StatsObject.SumBuild.code-snippets @@ -2,7 +2,7 @@ "znuny.StatsObject.SumBuild": { "body": [ "${1:\\$StatArray = \\$StatsObject->SumBuild(", - " Array => \@Result,", + " Array => \\@Result,", " SumRow => 1,", " SumCol => 0,", ");}", diff --git a/snippets/Functions/TicketToUnitTestObject/znuny.TicketToUnitTestObject.GetTicketAttributes.code-snippets b/snippets/Functions/TicketToUnitTestObject/znuny.TicketToUnitTestObject.GetTicketAttributes.code-snippets index 4ad5a3a9..4a4604f7 100644 --- a/snippets/Functions/TicketToUnitTestObject/znuny.TicketToUnitTestObject.GetTicketAttributes.code-snippets +++ b/snippets/Functions/TicketToUnitTestObject/znuny.TicketToUnitTestObject.GetTicketAttributes.code-snippets @@ -2,8 +2,8 @@ "znuny.TicketToUnitTestObject.GetTicketAttributes": { "body": [ "${1:my %TicketAttributes = \\$TicketToUnitTestObject->GetTicketAttributes(", - " TicketAttributes => \%TicketAttributes,", - " HistoryTicket => \%HistoryTicket,", + " TicketAttributes => \\%TicketAttributes,", + " HistoryTicket => \\%HistoryTicket,", ");}", ], "prefix": "znuny.TicketToUnitTestObject.GetTicketAttributes", diff --git a/snippets/Functions/UnitTestEmailObject/znuny.UnitTestEmailObject.EmailValidate.code-snippets b/snippets/Functions/UnitTestEmailObject/znuny.UnitTestEmailObject.EmailValidate.code-snippets index aede2905..770d1051 100644 --- a/snippets/Functions/UnitTestEmailObject/znuny.UnitTestEmailObject.EmailValidate.code-snippets +++ b/snippets/Functions/UnitTestEmailObject/znuny.UnitTestEmailObject.EmailValidate.code-snippets @@ -5,9 +5,9 @@ " UnitTestObject => \\$Self,", " UnitTestFalse => 1, # optional, validation should get negated", " Message => 'Sent emails must contain expected data.', # Message printed for unit test", - " Email => \@Emails, # optional, result of EmailGet() will be used by default", - " Header => qr{To\:\sto\@test.com\\}xms, # Regex or array of regexes that the headers of the sent emails have to match", - " # example: [ qr{To\:\sto\@test.com\\}xms, qr{To\:\scc\@test.com\\}xms, ],", + " Email => \\@Emails, # optional, result of EmailGet() will be used by default", + " Header => qr{To\\:\sto\\@test.com\\}xms, # Regex or array of regexes that the headers of the sent emails have to match", + " # example: [ qr{To\\:\sto\\@test.com\\}xms, qr{To\\:\scc\\@test.com\\}xms, ],", " Body => qr{Hello [ ] World\\}xms, # Regex or string that the body of the sent emails have to match", " ToArray => 'email1realrecipient1@test.com', # Array of strings, string, array of regexes or regex with recipients the sent emails have to match", ");}", diff --git a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsDeeply.code-snippets b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsDeeply.code-snippets index ab0a60cc..cadcce93 100644 --- a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsDeeply.code-snippets +++ b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsDeeply.code-snippets @@ -2,14 +2,14 @@ "znuny.UnitTestObject.IsDeeply": { "body": [ "${1:\\$Self->IsDeeply(", - " \%ResultHash, # test data", - " \%ExpectedHash, # expected value", + " \\%ResultHash, # test data", + " \\%ExpectedHash, # expected value", " 'Dummy Test Name',", ");}", "${2:\\$Self->IsDeeply(\\$ParamA, \\$ParamB, 'Test Name');}", "${3:my \\$IsDeeplyResult = \\$Self->IsDeeply(", - " \%ResultHash, # test data", - " \%ExpectedHash, # expected value", + " \\%ResultHash, # test data", + " \\%ExpectedHash, # expected value", " 'Dummy Test Name',", ");}", ], diff --git a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsNotDeeply.code-snippets b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsNotDeeply.code-snippets index 7beb05c2..31863ea4 100644 --- a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsNotDeeply.code-snippets +++ b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.IsNotDeeply.code-snippets @@ -2,8 +2,8 @@ "znuny.UnitTestObject.IsNotDeeply": { "body": [ "${1:\\$Self->IsNotDeeply(", - " \%ResultHash, # test data", - " \%ExpectedHash, # expected value", + " \\%ResultHash, # test data", + " \\%ExpectedHash, # expected value", " 'Dummy Test Name',", ");}", "${2:\\$Self->IsNotDeeply(\\$ParamA, \\$ParamB, 'Test Name');}", diff --git a/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.code-snippets b/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.code-snippets index 214c7b31..75fdd931 100644 --- a/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.code-snippets +++ b/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.code-snippets @@ -2,7 +2,7 @@ "znuny.VirtualFSObject.Write": { "body": [ "${1:my \\$Success = \\$VirtualFSObject->Write(", - " Content => \\\$Content,", + " Content => \\\\\\$Content,", " Filename => '/Object/SomeFileName.txt',", " Mode => 'binary' # (binary|utf8)", "", diff --git a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHash2D.code-snippets b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHash2D.code-snippets index 598e07db..f1cf1074 100644 --- a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHash2D.code-snippets +++ b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHash2D.code-snippets @@ -1,7 +1,7 @@ { "znuny.XMLObject.XMLHash2D": { "body": [ - "${1:my %Hash = \\$XMLObject->XMLHash2D( XMLHash => \@XMLHash );}", + "${1:my %Hash = \\$XMLObject->XMLHash2D( XMLHash => \\@XMLHash );}", ], "prefix": "znuny.XMLObject.XMLHash2D", "description": "6.0, 6.4, 6.5", diff --git a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashAdd.code-snippets b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashAdd.code-snippets index e7fb09c6..b4ee1a83 100644 --- a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashAdd.code-snippets +++ b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashAdd.code-snippets @@ -4,12 +4,12 @@ "${1:my \\$AutoKey = \\$XMLObject->XMLHashAdd(", " Type => 'SomeType',", " KeyAutoIncrement => 1,", - " XMLHash => \@XMLHash,", + " XMLHash => \\@XMLHash,", ");}", "${2:my \\$Key = \\$XMLObject->XMLHashAdd(", " Type => 'SomeType',", " Key => '123',", - " XMLHash => \@XMLHash,", + " XMLHash => \\@XMLHash,", ");}", ], "prefix": "znuny.XMLObject.XMLHashAdd", diff --git a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashUpdate.code-snippets b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashUpdate.code-snippets index 08076da3..0f9b40dc 100644 --- a/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashUpdate.code-snippets +++ b/snippets/Functions/XMLObject/znuny.XMLObject.XMLHashUpdate.code-snippets @@ -4,7 +4,7 @@ "${1:\\$XMLObject->XMLHashUpdate(", " Type => 'SomeType',", " Key => '123',", - " XMLHash => \@XMLHash,", + " XMLHash => \\@XMLHash,", ");}", ], "prefix": "znuny.XMLObject.XMLHashUpdate", diff --git a/snippets/Functions/XMLObject/znuny.XMLObject.XMLParse.code-snippets b/snippets/Functions/XMLObject/znuny.XMLObject.XMLParse.code-snippets index 04615706..2eddd375 100644 --- a/snippets/Functions/XMLObject/znuny.XMLObject.XMLParse.code-snippets +++ b/snippets/Functions/XMLObject/znuny.XMLObject.XMLParse.code-snippets @@ -2,7 +2,7 @@ "znuny.XMLObject.XMLParse": { "body": [ "${1:my @XMLStructure = \\$XMLObject->XMLParse( String => \\$FileString );}", - "${2:my @XMLStructure = \\$XMLObject->XMLParse( String => \\\$FileStringScalar );}", + "${2:my @XMLStructure = \\$XMLObject->XMLParse( String => \\\\\\$FileStringScalar );}", ], "prefix": "znuny.XMLObject.XMLParse", "description": "6.0, 6.4, 6.5", diff --git a/snippets/Functions/XMLObject/znuny.XMLObject.XMLStructure2XMLHash.code-snippets b/snippets/Functions/XMLObject/znuny.XMLObject.XMLStructure2XMLHash.code-snippets index 1c7a6d6c..5fa84b8f 100644 --- a/snippets/Functions/XMLObject/znuny.XMLObject.XMLStructure2XMLHash.code-snippets +++ b/snippets/Functions/XMLObject/znuny.XMLObject.XMLStructure2XMLHash.code-snippets @@ -1,7 +1,7 @@ { "znuny.XMLObject.XMLStructure2XMLHash": { "body": [ - "${1:my @XMLHash = \\$XMLObject->XMLStructure2XMLHash( XMLStructure => \@XMLStructure );}", + "${1:my @XMLHash = \\$XMLObject->XMLStructure2XMLHash( XMLStructure => \\@XMLStructure );}", ], "prefix": "znuny.XMLObject.XMLStructure2XMLHash", "description": "6.0, 6.4, 6.5", diff --git a/snippets/ObjectManager/znuny.ObjectManager.DiffObject.code-snippets b/snippets/ObjectManager/znuny.ObjectManager.DiffObject.code-snippets index c855a958..773f4681 100644 --- a/snippets/ObjectManager/znuny.ObjectManager.DiffObject.code-snippets +++ b/snippets/ObjectManager/znuny.ObjectManager.DiffObject.code-snippets @@ -4,7 +4,7 @@ "my \\$DiffObject = \\$Kernel::OM->Get('Kernel::System::Diff');", ], "prefix": "znuny.ObjectManager.DiffObject", - "description": "6.0, 6.4, 6.5", + "description": "6.4, 6.5", "scope": "perl" } } diff --git a/snippets/ObjectManager/znuny.ObjectManager.PostMasterObject.code-snippets b/snippets/ObjectManager/znuny.ObjectManager.PostMasterObject.code-snippets index 1978bf23..143d2cd9 100644 --- a/snippets/ObjectManager/znuny.ObjectManager.PostMasterObject.code-snippets +++ b/snippets/ObjectManager/znuny.ObjectManager.PostMasterObject.code-snippets @@ -4,7 +4,7 @@ "my \\$PostMasterObject = \\$Kernel::OM->Create(", " 'Kernel::System::PostMaster',", " ObjectParams => {", - " Email => \@ArrayOfEmailContent,", + " Email => \\@ArrayOfEmailContent,", " Trusted => 1, # 1|0 ignore X-OTRS header if false", " \\},", " );", diff --git a/snippets/_Test_/znuny.Test.Snippets.code-snippets b/snippets/_Test_/znuny.Test.Snippets.code-snippets new file mode 100644 index 00000000..6b1d9f21 --- /dev/null +++ b/snippets/_Test_/znuny.Test.Snippets.code-snippets @@ -0,0 +1,44 @@ +{ + "znuny.Test.Snippets": { + "body": [ + "${1: + "Variables:", + "----------", + "\\$String,", + "\\\\\\$ScalarRef,", + "@Array,", + "\\@ArrayRef,", + "\\$Array[0],", + "%Hash,", + "\\%HashRef,", + "\\$Hash{Header\\},", + "\\$HashRef{'Key'\\},", + "", + "Special characters:", + "-------------------", + "dollar 2 - | \\$ |", + "slash dollar 4 - | \\\\$ |", + "at 0 - | @ |", + "slash at 2 - | \\@ |", + "percent 0 - | % |", + "slash percent 2 - | \\% |", + "and 0 - | & |", + "slash and 2 - | \\& |", + "star 1 - | * |", + "star 2 - | \\* |", + "colon 0 - | : |", + "slash colon 2 - | \\: |", + "single quotation marks 0 - | ' |", + "single quotation marks 0 - | ' |", + "double quotation marks 1 - | \" |", + "double quotation marks 3 - | \\\" |", + "open bracket 0 - | [ |", + "close bracket 0 - | ] |", + "open brace 0 - | { |", + "close brace 2 - | \\} |", + "}", + ], + "prefix": "znuny.Test.Snippets", + "description": "Test Snippets", + } +} \ No newline at end of file diff --git a/src/contributes-snippets-data.json b/src/contributes-snippets-data.json index cefb5d74..01ac37a4 100644 --- a/src/contributes-snippets-data.json +++ b/src/contributes-snippets-data.json @@ -2833,6 +2833,10 @@ "language" : "perl", "path" : "./snippets/Functions/PackageObject/znuny.PackageObject.DeployCheckInfo.code-snippets" }, + { + "language" : "perl", + "path" : "./snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredModules.code-snippets" + }, { "language" : "perl", "path" : "./snippets/Functions/PackageObject/znuny.PackageObject.GetRequiredPackages.code-snippets" diff --git a/src/skipped-raw-data.json b/src/skipped-raw-data.json index b6c38e8c..22b50d74 100644 --- a/src/skipped-raw-data.json +++ b/src/skipped-raw-data.json @@ -508,6 +508,7 @@ "6.5" ], "_LastViewParameters" : [ + "6.4", "6.5" ], "_LinkObjectContentStringCreate" : [ @@ -760,6 +761,7 @@ "6.5" ], "_ServiceGetCurrentIncidentState" : [ + "6.4", "6.5" ], "_SetArticleTransmissionError" : [ diff --git a/src/snippets-raw-data.json b/src/snippets-raw-data.json index 607e79d0..24fe43b6 100644 --- a/src/snippets-raw-data.json +++ b/src/snippets-raw-data.json @@ -2613,7 +2613,6 @@ }, "DiffObject" : { "FrameworkVersion" : [ - "6.0", "6.4", "6.5" ], @@ -2825,6 +2824,9 @@ "6.4", "6.5" ], + "my $Result = $EmailObject->SendExecute(\n From => $RealFrom,\n To => $To, # can be a string with comma separated mail addresses\n Header => \\$Param{Header},\n Body => \\$Param{Body},\n CommunicationLogObject => $CommunicationLogObject,\n);" : [ + "6.4" + ], "my $Result = $EmailObject->SendExecute(\n From => $RealFrom,\n To => \\@ToArray,\n Header => \\$Param{Header},\n Body => \\$Param{Body},\n CommunicationLogObject => $CommunicationLogObject,\n);" : [ "6.0", "6.4", @@ -5564,6 +5566,7 @@ }, "CheckVersion" : { " my $CheckOk = $PackageObject->CheckVersion(\n VersionNew => '1.3.92',\n VersionInstalled => '1.3.91',\n Type => 'Min', # 'Min' or 'Max'\n ExternalPackage => 1, # optional\n )\n\n" : [ + "6.4", "6.5" ] }, @@ -5592,18 +5595,14 @@ "6.5" ] }, - "GetRequiredModules" : {}, - "GetRequiredPackages" : { - "my $PackageRequired = $PackageObject->GetRequiredPackages(\n Structure => \\%Structure, # return of PackageParse function\n);" : [ - "6.5" - ], - "my $PackageRequired = $PackageObject->GetRequiredPackages(\n Structure => \\%Structure, # return of C\n);" : [ + "GetRequiredModules" : { + "my $ModuleRequired = $PackageObject->GetRequiredModules(\n Structure => \\%Structure, # return of PackageParse function\n);" : [ "6.5" - ], - "my $PackageRequired = $PackageObject->GetRequiredPackages(\n Structure => \\%Structure, # return of PackageParse function\n);" : [ - "6.5" - ], + ] + }, + "GetRequiredPackages" : { "my $PackageRequired = $PackageObject->GetRequiredPackages(\n Structure => \\%Structure, # return of PackageParse()\n);" : [ + "6.4", "6.5" ] }, @@ -5853,6 +5852,7 @@ }, "GetParams" : { "my %Params = $ParamObject->GetParams(\n Params => [ 'TicketID', 'Queue', ] # optional, only these parameters are fetched and returned\n Raw => 1, # optional, input data is not changed\n JSONDecodeParams => ['ParamNameWithJSONData1',] # optional, this JSON-decodes the given parameters\n);" : [ + "6.4", "6.5" ] }, @@ -6363,6 +6363,7 @@ "Functions" : { "SLAAdd" : { "my $SLAID = $SLAObject->SLAAdd(\n ServiceIDs => [ 1, 5, 7 ], # (optional)\n Name => 'SLA Name',\n Calendar => 'Calendar1', # (optional)\n FirstResponseTime => 120, # (optional)\n FirstResponseNotify => 60, # (optional) notify agent if first response escalation is 60% reached\n UpdateTime => 180, # (optional)\n UpdateNotify => 80, # (optional) notify agent if update escalation is 80% reached\n SolutionTime => 580, # (optional)\n SolutionNotify => 80, # (optional) notify agent if solution escalation is 80% reached\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n\n # ITSMCore (if installed)\n TypeID => $TypeID,\n MinTimeBetweenIncidents => 3443, # (optional)\n);" : [ + "6.4", "6.5" ], "my $SLAID = $SLAObject->SLAAdd(\n ServiceIDs => [ 1, 5, 7 ], # (optional)\n Name => 'SLA Name',\n Calendar => 'Calendar1', # (optional)\n FirstResponseTime => 120, # (optional)\n FirstResponseNotify => 60, # (optional) notify agent if first response escalation is 60% reached\n UpdateTime => 180, # (optional)\n UpdateNotify => 80, # (optional) notify agent if update escalation is 80% reached\n SolutionTime => 580, # (optional)\n SolutionNotify => 80, # (optional) notify agent if solution escalation is 80% reached\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n);" : [ @@ -6413,6 +6414,7 @@ }, "SLAUpdate" : { "my $True = $SLAObject->SLAUpdate(\n SLAID => $SLAID,\n ServiceIDs => [ 1, 2, 3 ], # (optional)\n Name => 'Service Name',\n Calendar => 'Calendar1', # (optional)\n FirstResponseTime => 120, # (optional)\n FirstResponseNotify => 60, # (optional) notify agent if first response escalation is 60% reached\n UpdateTime => 180, # (optional)\n UpdateNotify => 80, # (optional) notify agent if update escalation is 80% reached\n SolutionTime => 580, # (optional)\n SolutionNotify => 80, # (optional) notify agent if solution escalation is 80% reached\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n\n # ITSMCore\n TypeID => $TypeID,\n MinTimeBetweenIncidents => 3443, # (optional)\n);" : [ + "6.4", "6.5" ], "my $True = $SLAObject->SLAUpdate(\n SLAID => $SLAID,\n ServiceIDs => [ 1, 2, 3 ], # (optional)\n Name => 'Service Name',\n Calendar => 'Calendar1', # (optional)\n FirstResponseTime => 120, # (optional)\n FirstResponseNotify => 60, # (optional) notify agent if first response escalation is 60% reached\n UpdateTime => 180, # (optional)\n UpdateNotify => 80, # (optional) notify agent if update escalation is 80% reached\n SolutionTime => 580, # (optional)\n SolutionNotify => 80, # (optional) notify agent if solution escalation is 80% reached\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n);" : [ @@ -7134,6 +7136,7 @@ }, "ServiceAdd" : { "my $ServiceID = $ServiceObject->ServiceAdd(\n Name => 'Service Name',\n ParentID => $ParentID, # (optional)\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n\n # ITSMCore (if installed)\n TypeID => $TypeID,\n Criticality => '3 normal',\n);" : [ + "6.4", "6.5" ], "my $ServiceID = $ServiceObject->ServiceAdd(\n Name => 'Service Name',\n ParentID => $ParentID, # (optional)\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n);" : [ @@ -7144,6 +7147,7 @@ }, "ServiceGet" : { "# With installed ITSM:\nmy %ServiceData = $ServiceObject->ServiceGet(\n ServiceID => $ServiceID,\n IncidentState => 1, # Optional, returns CurInciState etc.\n UserID => $UserID,\n);" : [ + "6.4", "6.5" ], "my %ServiceData = $ServiceObject->ServiceGet(\n Name => 'Service::SubService',\n UserID => $UserID,\n);" : [ @@ -7206,6 +7210,7 @@ }, "ServiceSearch" : { "my @ServiceList = $ServiceObject->ServiceSearch(\n Name => 'Service Name', # (optional)\n Limit => 122, # (optional) default 1000\n UserID => $UserID,\n\n # ITSMCore (if installed)\n TypeIDs => 2,\n Criticalities => [ '2 low', '3 normal' ],\n);" : [ + "6.4", "6.5" ], "my @ServiceList = $ServiceObject->ServiceSearch(\n Name => 'Service Name', # (optional)\n Limit => 122, # (optional) default 1000\n UserID => $UserID,\n);" : [ @@ -7216,6 +7221,7 @@ }, "ServiceUpdate" : { "my $True = $ServiceObject->ServiceUpdate(\n ServiceID => $ServiceID,\n ParentID => $ParentID, # (optional)\n Name => 'Service Name',\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n\n # ITSMCore (if installed)\n TypeID => $TypeID,\n Criticality => '3 normal',\n);" : [ + "6.4", "6.5" ], "my $True = $ServiceObject->ServiceUpdate(\n ServiceID => $ServiceID,\n ParentID => $ParentID, # (optional)\n Name => 'Service Name',\n ValidID => $ValidID,\n Comment => 'Comment', # (optional)\n UserID => $UserID,\n);" : [ @@ -9096,6 +9102,7 @@ "6.5" ], "my @TicketIDs = $TicketObject->TicketSearch(\n # result (optional, default is 'HASH')\n Result => 'ARRAY' || 'HASH' || 'COUNT',\n\n # limit the number of found tickets (optional, default is 10000)\n Limit => 100,\n\n # Use TicketSearch as a ticket filter on a single ticket,\n # or a predefined ticket list\n TicketID => $TicketID,\n TicketID => [$TicketID, 1235],\n\n # ticket number (optional) as STRING or as ARRAYREF\n # The value will be treated as a SQL query expression.\n TicketNumber => '%123546%',\n TicketNumber => ['%123546%', '%123666%'],\n\n # ticket title (optional) as STRING or as ARRAYREF\n # The value will be treated as a SQL query expression.\n # When ConditionInline is set then remaining whitespace will be treated as a && condition and\n # and the settings of ContentSearchPrefix and ContentSearchSuffix will be honored.\n Title => '%SomeText%',\n Title => ['%SomeTest1%', '%SomeTest2%'],\n\n Queues => ['system queue', 'other queue'],\n QueueIDs => [1, 42, 512],\n\n # use also sub queues of Queue|Queues in search\n UseSubQueues => 0,\n\n # You can use types like normal, ...\n Types => ['normal', 'change', 'incident'],\n TypeIDs => [3, 4],\n\n # You can use states like new, open, pending reminder, ...\n States => ['new', 'open'],\n StateIDs => [3, 4],\n\n # (Open|Closed) tickets for all closed or open tickets.\n StateType => 'Open',\n\n # You also can use real state types like new, open, closed,\n # pending reminder, pending auto, removed and merged.\n StateType => ['open', 'new'],\n StateTypeIDs => [1, 2, 3],\n\n Priorities => ['1 very low', '2 low', '3 normal'],\n PriorityIDs => [1, 2, 3],\n\n Services => ['Service A', 'Service B'],\n ServiceIDs => [1, 2, 3],\n\n SLAs => ['SLA A', 'SLA B'],\n SLAIDs => [1, 2, 3],\n\n Locks => ['unlock'],\n LockIDs => [1, 2, 3],\n\n OwnerIDs => [1, 12, 455, 32]\n\n ResponsibleIDs => [1, 12, 455, 32]\n\n WatchUserIDs => [1, 12, 455, 32]\n\n # CustomerID (optional) as STRING or as ARRAYREF\n # The value will be treated as a SQL query expression.\n CustomerID => $CustomerID,\n CustomerID => [$CustomerID],\n\n # CustomerIDRaw (optional) as STRING or as ARRAYREF\n # CustomerID without QueryCondition checking.\n # The param CustomerID will be ignored when CustomerIDRaw is set.\n # The raw values will be quoted and combined with 'OR' for the query.\n CustomerIDRaw => '123 + 345',\n CustomerIDRaw => ['123', 'ABC','123 && 456','ABC % efg'],\n\n # CustomerUserLogin (optional) as STRING as ARRAYREF\n # The value will be treated as a SQL query expression.\n CustomerUserLogin => 'uid123',\n CustomerUserLogin => ['uid123', 'uid777'],\n\n # CustomerUserLoginRaw (optional) as STRING as ARRAYREF\n # CustomerUserLogin without QueryCondition checking.\n # The param CustomerUserLogin will be ignored when CustomerUserLoginRaw is set.\n # The raw values will be quoted and combined with 'OR' for the query.\n CustomerUserLoginRaw => 'uid',\n CustomerUserLoginRaw => 'uid + 123',\n CustomerUserLoginRaw => ['uid - 123', 'uid # 777 + 321'],\n\n # create ticket properties (optional)\n CreatedUserIDs => [1, 12, 455, 32]\n CreatedTypes => ['normal', 'change', 'incident'],\n CreatedTypeIDs => [1, 2, 3],\n CreatedPriorities => ['1 very low', '2 low', '3 normal'],\n CreatedPriorityIDs => [1, 2, 3],\n CreatedStates => ['new', 'open'],\n CreatedStateIDs => [3, 4],\n CreatedQueues => ['system queue', 'other queue'],\n CreatedQueueIDs => [1, 42, 512],\n\n # DynamicFields\n # At least one operator must be specified. Operators will be connected with AND,\n # values in an operator with OR.\n # You can also pass more than one argument to an operator: ['value1', 'value2']\n DynamicField_FieldNameX => {\n Empty => 1, # will return dynamic fields without a value\n # set to 0 to search fields with a value present\n Equals => 123,\n Like => 'value*', # \"equals\" operator with wildcard support\n GreaterThan => '2001-01-01 01:01:01',\n GreaterThanEquals => '2001-01-01 01:01:01',\n SmallerThan => '2002-02-02 02:02:02',\n SmallerThanEquals => '2002-02-02 02:02:02',\n },\n\n # User ID for searching tickets by ticket flags (optional, defaults to UserID)\n TicketFlagUserID => $TicketFlagUserID,\n\n # search for ticket flags\n TicketFlag => {\n Seen => 1,\n },\n\n # search for ticket flag that is absent, or a different value than the\n # one given:\n NotTicketFlag => {\n Seen => 1,\n },\n\n # User ID for searching tickets by article flags (optional, defaults to UserID)\n ArticleFlagUserID => $ArticleFlagUserID,\n\n\n # search for tickets by the presence of flags on articles\n ArticleFlag => {\n Important => 1,\n },\n\n # article stuff (optional)\n MIMEBase_From => '%spam@example.com%',\n MIMEBase_To => '%service@example.com%',\n MIMEBase_Cc => '%client@example.com%',\n MIMEBase_Subject => '%VIRUS 32%',\n MIMEBase_Body => '%VIRUS 32%',\n\n # attachment stuff (optional, applies only for ArticleStorageDB)\n AttachmentName => '%anyfile.txt%',\n\n # use full article text index if configured (optional, defaults to off)\n FullTextIndex => 1,\n\n # article content search (AND or OR for From, To, Cc, Subject and Body) (optional, defaults to 'AND')\n ContentSearch => 'AND',\n\n # article content search prefix (for From, To, Cc, Subject and Body) (optional, defaults to '*')\n # For Title the default is the empty string.\n ContentSearchPrefix => '*',\n\n # article content search suffix (for From, To, Cc, Subject and Body) (optional, defaults to '*')\n # For Title the default is the empty string.\n ContentSearchSuffix => '*',\n\n # content conditions for From, To, Cc, Subject, Body,\n # and Title (all optional)\n # For Title it also activates ContentSearchPrefix and ContentSearchSuffix,\n ConditionInline => 1,\n\n # articles created more than 60 minutes ago (article older than 60 minutes) (optional)\n ArticleCreateTimeOlderMinutes => 60,\n # articles created less than 120 minutes ago (article newer than 60 minutes) (optional)\n ArticleCreateTimeNewerMinutes => 120,\n\n # articles with create time after ... (article newer than this date) (optional)\n ArticleCreateTimeNewerDate => '2006-01-09 00:00:01',\n # articles with created time before ... (article older than this date) (optional)\n ArticleCreateTimeOlderDate => '2006-01-19 23:59:59',\n\n # tickets created more than 60 minutes ago (ticket older than 60 minutes) (optional)\n TicketCreateTimeOlderMinutes => 60,\n # tickets created less than 120 minutes ago (ticket newer than 120 minutes) (optional)\n TicketCreateTimeNewerMinutes => 120,\n\n # tickets with create time after ... (ticket newer than this date) (optional)\n TicketCreateTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with created time before ... (ticket older than this date) (optional)\n TicketCreateTimeOlderDate => '2006-01-19 23:59:59',\n\n # ticket history entries that created more than 60 minutes ago (optional)\n TicketChangeTimeOlderMinutes => 60,\n # ticket history entries that created less than 120 minutes ago (optional)\n TicketChangeTimeNewerMinutes => 120,\n\n # ticket history entry create time after ... (ticket history entries newer than this date) (optional)\n TicketChangeTimeNewerDate => '2006-01-09 00:00:01',\n # ticket history entry create time before ... (ticket history entries older than this date) (optional)\n TicketChangeTimeOlderDate => '2006-01-19 23:59:59',\n\n # tickets changed more than 60 minutes ago (optional)\n TicketLastChangeTimeOlderMinutes => 60,\n # tickets changed less than 120 minutes ago (optional)\n TicketLastChangeTimeNewerMinutes => 120,\n\n # tickets with changed time after ... (ticket changed newer than this date) (optional)\n TicketLastChangeTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with changed time before ... (ticket changed older than this date) (optional)\n TicketLastChangeTimeOlderDate => '2006-01-19 23:59:59',\n\n # tickets closed more than 60 minutes ago (optional)\n TicketCloseTimeOlderMinutes => 60,\n # tickets closed less than 120 minutes ago (optional)\n TicketCloseTimeNewerMinutes => 120,\n\n # tickets with closed time after ... (ticket closed newer than this date) (optional)\n TicketCloseTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with closed time before ... (ticket closed older than this date) (optional)\n TicketCloseTimeOlderDate => '2006-01-19 23:59:59',\n\n # tickets with last close time more than 60 minutes ago (optional)\n TicketLastCloseTimeOlderMinutes => 60,\n # tickets with last close time less than 120 minutes ago (optional)\n TicketLastCloseTimeNewerMinutes => 120,\n\n # tickets with last close time after ... (ticket last close newer than this date) (optional)\n TicketLastCloseTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with last close time before ... (ticket last close older than this date) (optional)\n TicketLastCloseTimeOlderDate => '2006-01-19 23:59:59',\n\n # tickets with pending time of more than 60 minutes ago (optional)\n TicketPendingTimeOlderMinutes => 60,\n # tickets with pending time of less than 120 minutes ago (optional)\n TicketPendingTimeNewerMinutes => 120,\n\n # tickets with pending time after ... (optional)\n TicketPendingTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with pending time before ... (optional)\n TicketPendingTimeOlderDate => '2006-01-19 23:59:59',\n\n # you can use all following escalation options with this four different ways of escalations\n # TicketEscalationTime...\n # TicketEscalationUpdateTime...\n # TicketEscalationResponseTime...\n # TicketEscalationSolutionTime...\n\n # ticket escalation time of more than 60 minutes ago (optional)\n TicketEscalationTimeOlderMinutes => -60,\n # ticket escalation time of less than 120 minutes ago (optional)\n TicketEscalationTimeNewerMinutes => -120,\n\n # tickets with escalation time after ... (optional)\n TicketEscalationTimeNewerDate => '2006-01-09 00:00:01',\n # tickets with escalation time before ... (optional)\n TicketEscalationTimeOlderDate => '2006-01-09 23:59:59',\n\n # search in archive (optional)\n # if archiving is on, if not specified the search processes unarchived only\n # 'y' searches archived tickets, 'n' searches unarchived tickets\n # if specified together all tickets are searched\n ArchiveFlags => ['y', 'n'],\n\n # OrderBy (optional, default is 'Down')\n OrderBy => 'Down', # Down|Up\n # SortBy (optional, default is 'Age')\n SortBy => 'Age', # Created|Owner|Responsible|CustomerID|State|TicketNumber|Queue|Priority|Age|Type|Lock\n # Changed|Title|Service|SLA|PendingTime|EscalationTime\n # EscalationUpdateTime|EscalationResponseTime|EscalationSolutionTime\n # DynamicField_FieldNameX\n\n # OrderBy and SortBy as ARRAY for sub sorting (optional)\n OrderBy => ['Down', 'Up'],\n SortBy => ['Priority', 'Age'],\n\n # user search (UserID is required)\n UserID => $UserID,\n Permission => 'ro' || 'rw', # optional, default is 'ro'\n\n # customer search (CustomerUserID is required)\n CustomerUserID => $CustomerUserID,\n Permission => 'ro' || 'rw', # optional, default is 'ro'\n\n # CacheTTL, cache search result in seconds (optional, the default is four minutes)\n CacheTTL => 60 * 15,\n);" : [ + "6.4", "6.5" ] }, @@ -9733,6 +9740,7 @@ "6.0" ], "$Self->Run(\n Tests => ['JSON', 'User'], # optional, execute certain test files only\n Directory => ['Selenium', 'User'], # optional, execute tests in subdirectory\n ExcludeDirectory => ['Selenium/Agent/Admin'], # optional, all test files in the specified directory will be Excluded.\n SOPMFile => ['ITSMCore.sopm'], # optional, execute all test files which are defined in these sopm.\n Verbose => 1, # optional (default 0), only show result details for all tests, not just failing\n SubmitURL => $URL, # optional, send results to unit test result server\n SubmitAuth => $SubmitAuth, # optional authentication string for unit test result server\n SubmitResultAsExitCode => 1, # optional, specify if exit code should not indicate if tests were ok/not ok, but if submission was successful instead\n JobID => $JobID, # optional job ID for unit test submission to server\n Scenario => 'Znuny 6 git', # optional scenario identifier for unit test submission to server\n PostTestScripts => ['...'], # Script(s) to execute after a test has been run.\n # You can specify %File%, %TestOk% and %TestNotOk% as dynamic arguments.\n PreSubmitScripts => ['...'], # Script(s) to execute after all tests have been executed\n # and the results are about to be sent to the server.\n NumberOfTestRuns => 10, # optional (default 1), number of successive runs for every single unit test\n);" : [ + "6.4", "6.5" ], "$Self->Run(\n Tests => ['JSON', 'User'], # optional, execute certain test files only\n Directory => ['Selenium', 'User'], # optional, execute tests in subdirectory\n ExcludeDirectory => ['Selenium/Agent/Admin'], # optional, all test files in the specified directory will be Excluded.\n SOPMFile => ['ITSMCore.sopm'], # optional, execute all test files which are defined in these sopm.\n Verbose => 1, # optional (default 0), only show result details for all tests, not just failing\n SubmitURL => $URL, # optional, send results to unit test result server\n SubmitAuth => '0abc86125f0fd37baae' # optional authentication string for unit test result server\n SubmitResultAsExitCode => 1, # optional, specify if exit code should not indicate if tests were ok/not ok, but if submission was successful instead\n JobID => $JobID, # optional job ID for unit test submission to server\n Scenario => 'Znuny 6 git', # optional scenario identifier for unit test submission to server\n PostTestScripts => ['...'], # Script(s) to execute after a test has been run.\n # You can specify %File%, %TestOk% and %TestNotOk% as dynamic arguments.\n PreSubmitScripts => ['...'], # Script(s) to execute after all tests have been executed\n # and the results are about to be sent to the server.\n NumberOfTestRuns => 10, # optional (default 1), number of successive runs for every single unit test\n);" : [