From ffab6c03fbded976171af9796e8cae2f3d718537 Mon Sep 17 00:00:00 2001 From: Niklas Schmitt Date: Mon, 20 Mar 2023 11:45:41 +0100 Subject: [PATCH] Updated Sublime Snippets. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Denny Korsukéwitz --- ...eSearchIndexRebuildFlagSet.sublime-snippet | 2 +- ...kendObject.EditFieldRender.sublime-snippet | 2 +- ...ndObject.EditFieldValueGet.sublime-snippet | 6 +- ...icationLogObject.ObjectLog.sublime-snippet | 4 +- ...ionLogObject.ObjectLogStop.sublime-snippet | 2 +- ...rObject.CustomerUserUpdate.sublime-snippet | 2 +- ...ny.DBObject.QueryCondition.sublime-snippet | 2 +- ...nuny.DebugLogObject.LogAdd.sublime-snippet | 6 +- ....GenericAgentObject.JobRun.sublime-snippet | 2 +- ...elperObject.TestUserCreate.sublime-snippet | 4 +- ...ny.LinkObject.ObjectSearch.sublime-snippet | 2 +- ...y.LoaderObject.MinifyFiles.sublime-snippet | 4 +- ...znuny.MailQueueObject.List.sublime-snippet | 10 +-- ...nuny.MainObject.FileDelete.sublime-snippet | 2 +- .../znuny.PDFObject.HLine.sublime-snippet | 2 +- .../znuny.PDFObject.Image.sublime-snippet | 2 +- ...PackageObject.PackageBuild.sublime-snippet | 4 +- ....ParamObject.SaveFormDraft.sublime-snippet | 2 +- ...ny.QueueObject.QueueUpdate.sublime-snippet | 4 +- ...uny.SeleniumObject.WaitFor.sublime-snippet | 4 +- ...Object.ConfigurationSearch.sublime-snippet | 2 +- ...SettingEffectiveValueCheck.sublime-snippet | 2 +- ...bject.SystemMaintenanceAdd.sublime-snippet | 4 +- ...GeneratorObject.Attributes.sublime-snippet | 2 +- ...teGeneratorObject.Template.sublime-snippet | 2 +- ...uny.TicketObject.TicketAcl.sublime-snippet | 4 +- .../znuny.UnitTestObject.Run.sublime-snippet | 18 +++++ ...nuny.VirtualFSObject.Write.sublime-snippet | 2 +- ...ct.WebserviceHistoryUpdate.sublime-snippet | 2 +- src/snippets-raw-data.json | 69 ++++++++++--------- 30 files changed, 98 insertions(+), 77 deletions(-) diff --git a/snippets/Functions/ArticleObject/znuny.ArticleObject.ArticleSearchIndexRebuildFlagSet.sublime-snippet b/snippets/Functions/ArticleObject/znuny.ArticleObject.ArticleSearchIndexRebuildFlagSet.sublime-snippet index 316e7ea5..0e3d8703 100644 --- a/snippets/Functions/ArticleObject/znuny.ArticleObject.ArticleSearchIndexRebuildFlagSet.sublime-snippet +++ b/snippets/Functions/ArticleObject/znuny.ArticleObject.ArticleSearchIndexRebuildFlagSet.sublime-snippet @@ -2,7 +2,7 @@ ArticleSearchIndexRebuildFlagSet( ArticleIDs => [ 123, 234, 345 ] # (Either 'ArticleIDs' or 'All' must be provided) The ArticleIDs to be updated. - All => 1 # (Either 'ArticleIDs' or 'All' must be provided) Set all articles to \$Value. Default: 0, + All => 1, # (Either 'ArticleIDs' or 'All' must be provided) Set all articles to \$Value. Default: 0, Value => 1, # 0/1 default 0 );} diff --git a/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldRender.sublime-snippet b/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldRender.sublime-snippet index ff88c11f..9f827b33 100644 --- a/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldRender.sublime-snippet +++ b/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldRender.sublime-snippet @@ -10,7 +10,7 @@ ${1:my \$FieldHTML = \$BackendObject->EditFieldRender( \}, Template => \{ # Optional data structure of GenericAgent etc. Owner => 2, # Value is accessable via field name (DynamicField_ + field name) - Title => 'Generic Agent Job was here' # and could be a scalar, Hash- or ArrayRef + Title => 'Generic Agent Job was here', # and could be a scalar, Hash- or ArrayRef ... DynamicField_ExampleField1 => 'Value 1' \}, diff --git a/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldValueGet.sublime-snippet b/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldValueGet.sublime-snippet index cd439bfb..1911813e 100644 --- a/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldValueGet.sublime-snippet +++ b/snippets/Functions/BackendObject/znuny.BackendObject.EditFieldValueGet.sublime-snippet @@ -3,11 +3,11 @@ ${1:my \$Value = \$BackendObject->EditFieldValueGet( DynamicFieldConfig => \$DynamicFieldConfig, # complete config of the DynamicField ParamObject => \$ParamObject, # the current request data - TransformDates => 0 # 1 || 0, default 1, to transform the dynamic fields that + TransformDates => 0, # 1 || 0, default 1, to transform the dynamic fields that # use dates to the user time zone (i.e. Date, DateTime # dynamic fields) - Template => \$Template # stored values from DB like Search profile or Generic Agent job + Template => \$Template, # stored values from DB like Search profile or Generic Agent job ReturnTemplateStructure => 1, # 0 || 1, default 0 # Returns the structured values as got from the http request # (only for backend internal use). @@ -16,7 +16,7 @@ ${2:my \$Value = \$BackendObject->EditFieldValueGet( DynamicFieldConfig => \$DynamicFieldConfig, # complete config of the DynamicField ParamObject => \$ParamObject, # the current request data LayoutObject => \$LayoutObject, # used to transform dates to user time zone - TransformDates => 1 # 1 || 0, default 1, to transform the dynamic fields that + TransformDates => 1, # 1 || 0, default 1, to transform the dynamic fields that # use dates to the user time zone (i.e. Date, DateTime # dynamic fields) Template => \$Template, diff --git a/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLog.sublime-snippet b/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLog.sublime-snippet index d22d709c..84234fb2 100644 --- a/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLog.sublime-snippet +++ b/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLog.sublime-snippet @@ -1,8 +1,8 @@ ObjectLog( - ObjectLogType => '...' # (required) To be defined by the related LogObject - ObjectLogID => \$ObjectLogID, # (required) The ObjectID of the started object type + ObjectLogType => '...', # (required) To be defined by the related LogObject + ObjectLogID => \$ObjectLogID, # (required) The ObjectID of the started object type );} ]]> diff --git a/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLogStop.sublime-snippet b/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLogStop.sublime-snippet index 802add34..10e558d2 100644 --- a/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLogStop.sublime-snippet +++ b/snippets/Functions/CommunicationLogObject/znuny.CommunicationLogObject.ObjectLogStop.sublime-snippet @@ -1,7 +1,7 @@ ObjectLogStop( - ObjectLogType => 'Connection' # (required) Can be 'Connection' or 'Message' + ObjectLogType => 'Connection', # (required) Can be 'Connection' or 'Message' ObjectLogID => \$ObjectLogID, # (required) The ObjectID of the started object type );} diff --git a/snippets/Functions/CustomerUserObject/znuny.CustomerUserObject.CustomerUserUpdate.sublime-snippet b/snippets/Functions/CustomerUserObject/znuny.CustomerUserObject.CustomerUserUpdate.sublime-snippet index 7988a4aa..85eaaf00 100644 --- a/snippets/Functions/CustomerUserObject/znuny.CustomerUserObject.CustomerUserUpdate.sublime-snippet +++ b/snippets/Functions/CustomerUserObject/znuny.CustomerUserObject.CustomerUserUpdate.sublime-snippet @@ -2,7 +2,7 @@ CustomerUserUpdate( Source => 'CustomerUser', # CustomerUser source config - ID => 'mh' # current user login + ID => 'mh', # current user login UserLogin => 'mhuber', # new user login UserFirstname => 'Huber', UserLastname => 'Manfred', diff --git a/snippets/Functions/DBObject/znuny.DBObject.QueryCondition.sublime-snippet b/snippets/Functions/DBObject/znuny.DBObject.QueryCondition.sublime-snippet index e332a73d..9d7f0f5e 100644 --- a/snippets/Functions/DBObject/znuny.DBObject.QueryCondition.sublime-snippet +++ b/snippets/Functions/DBObject/znuny.DBObject.QueryCondition.sublime-snippet @@ -4,7 +4,7 @@ ${1:my \$SQL = \$DBObject->QueryCondition( Key => 'some_col', Value => '(ABC+DEF)', SearchPrefix => '', - SearchSuffix => '*' + SearchSuffix => '*', Extended => 1, # use also " " as "&&", e.g. "bob smith" -> "bob&&smith" );} ${2:my \$SQL = \$DBObject->QueryCondition( diff --git a/snippets/Functions/DebugLogObject/znuny.DebugLogObject.LogAdd.sublime-snippet b/snippets/Functions/DebugLogObject/znuny.DebugLogObject.LogAdd.sublime-snippet index f94f2477..c2dcec1e 100644 --- a/snippets/Functions/DebugLogObject/znuny.DebugLogObject.LogAdd.sublime-snippet +++ b/snippets/Functions/DebugLogObject/znuny.DebugLogObject.LogAdd.sublime-snippet @@ -3,9 +3,9 @@ ${1:my \$Success = \$DebugLogObject->LogAdd( CommunicationID => \$CommunicationID, CommunicationType => 'Provider', # 'Provider' or 'Requester' - Data => 'additional data' # optional - DebugLevel => 'info', # 'debug', 'info', 'notice', 'error' - RemoteIP => '192.168.0.1', # optional, must be valid IPv4 or IPv6 address + Data => 'additional data', # optional + DebugLevel => 'info', # 'debug', 'info', 'notice', 'error' + RemoteIP => '192.168.0.1', # optional, must be valid IPv4 or IPv6 address Summary => 'description of log entry', WebserviceID => \$WebserviceID, );} diff --git a/snippets/Functions/GenericAgentObject/znuny.GenericAgentObject.JobRun.sublime-snippet b/snippets/Functions/GenericAgentObject/znuny.GenericAgentObject.JobRun.sublime-snippet index d5766351..2d207ad6 100644 --- a/snippets/Functions/GenericAgentObject/znuny.GenericAgentObject.JobRun.sublime-snippet +++ b/snippets/Functions/GenericAgentObject/znuny.GenericAgentObject.JobRun.sublime-snippet @@ -3,7 +3,7 @@ ${1:\$GenericAgentObject->JobRun( Job => 'JobName', OnlyTicketID => \$OnlyTicketID, # (optional) for event based Job execution - SleepTime => 100_000 # (optional) sleeptime per ticket in microseconds + SleepTime => 100_000, # (optional) sleeptime per ticket in microseconds UserID => \$UserID, );} diff --git a/snippets/Functions/HelperObject/znuny.HelperObject.TestUserCreate.sublime-snippet b/snippets/Functions/HelperObject/znuny.HelperObject.TestUserCreate.sublime-snippet index 07af0564..651d9e64 100644 --- a/snippets/Functions/HelperObject/znuny.HelperObject.TestUserCreate.sublime-snippet +++ b/snippets/Functions/HelperObject/znuny.HelperObject.TestUserCreate.sublime-snippet @@ -2,7 +2,7 @@ TestUserCreate( Groups => ['admin', 'users'], # optional, list of groups to add this user to (rw rights) - Language => 'de' # optional, defaults to 'en' if not set + Language => 'de', # optional, defaults to 'en' if not set KeepValid => 1, # optional, defaults to 0 );} ${2:my \$TestUserLogin = \$HelperObject->TestUserCreate( @@ -11,7 +11,7 @@ ${2:my \$TestUserLogin = \$HelperObject->TestUserCreate( );} ${3:my ( \$TestUserLogin, \$TestUserID ) = \$HelperObject->TestUserCreate( Groups => ['admin', 'users'], - Language => 'de' + Language => 'de', KeepValid => 1, );} diff --git a/snippets/Functions/LinkObject/znuny.LinkObject.ObjectSearch.sublime-snippet b/snippets/Functions/LinkObject/znuny.LinkObject.ObjectSearch.sublime-snippet index d28c1fed..51536b2d 100644 --- a/snippets/Functions/LinkObject/znuny.LinkObject.ObjectSearch.sublime-snippet +++ b/snippets/Functions/LinkObject/znuny.LinkObject.ObjectSearch.sublime-snippet @@ -2,7 +2,7 @@ ObjectSearch( Object => 'ITSMConfigItem', - SubObject => 'Computer' # (optional) + SubObject => 'Computer', # (optional) SearchParams => \$HashRef, # (optional) UserID => \$UserID, );} diff --git a/snippets/Functions/LoaderObject/znuny.LoaderObject.MinifyFiles.sublime-snippet b/snippets/Functions/LoaderObject/znuny.LoaderObject.MinifyFiles.sublime-snippet index 59b9d604..5cb3b1b0 100644 --- a/snippets/Functions/LoaderObject/znuny.LoaderObject.MinifyFiles.sublime-snippet +++ b/snippets/Functions/LoaderObject/znuny.LoaderObject.MinifyFiles.sublime-snippet @@ -5,8 +5,8 @@ ${1:my \$TargetFilename = \$LoaderObject->MinifyFiles( \$Filename, \$Filename2, ], - Checksum => '...' # optional, pass a checksum for the minified file - Content => '...' # optional, pass direct (already minified) content instead of a file list + Checksum => '...', # optional, pass a checksum for the minified file + Content => '...', # optional, pass direct (already minified) content instead of a file list Type => 'CSS', # CSS | JavaScript TargetDirectory => \$TargetDirectory, TargetFilenamePrefix => 'CommonCSS', # optional, prefix for the target filename diff --git a/snippets/Functions/MailQueueObject/znuny.MailQueueObject.List.sublime-snippet b/snippets/Functions/MailQueueObject/znuny.MailQueueObject.List.sublime-snippet index 66264865..63a4240f 100644 --- a/snippets/Functions/MailQueueObject/znuny.MailQueueObject.List.sublime-snippet +++ b/snippets/Functions/MailQueueObject/znuny.MailQueueObject.List.sublime-snippet @@ -1,11 +1,11 @@ List( - ID => '...' # optional - ArticleID => \$ArticleID # optional - Sender => '...' # optional - Recipient => '...' # optional - Attempts => '...' # optional + ID => '...', # optional + ArticleID => \$ArticleID, # optional + Sender => '...', # optional + Recipient => '...', # optional + Attempts => '...', # optional );} ]]> diff --git a/snippets/Functions/MainObject/znuny.MainObject.FileDelete.sublime-snippet b/snippets/Functions/MainObject/znuny.MainObject.FileDelete.sublime-snippet index bf204b1a..9f3beda3 100644 --- a/snippets/Functions/MainObject/znuny.MainObject.FileDelete.sublime-snippet +++ b/snippets/Functions/MainObject/znuny.MainObject.FileDelete.sublime-snippet @@ -4,7 +4,7 @@ ${1:my \$Success = \$MainObject->FileDelete( Directory => 'c:\some\location', Filename => 'me_to/alal.xml', # or Location - Location => 'c:\some\location\me_to\alal.xml' + Location => 'c:\some\location\me_to\alal.xml', Type => 'Local', # optional - Local|Attachment|MD5 DisableWarnings => 1, # optional diff --git a/snippets/Functions/PDFObject/znuny.PDFObject.HLine.sublime-snippet b/snippets/Functions/PDFObject/znuny.PDFObject.HLine.sublime-snippet index 7a8d36be..cd77fd24 100644 --- a/snippets/Functions/PDFObject/znuny.PDFObject.HLine.sublime-snippet +++ b/snippets/Functions/PDFObject/znuny.PDFObject.HLine.sublime-snippet @@ -2,7 +2,7 @@ HLine( Width => 300, # (optional) default 'end of printable dimension' - Type => 'ReturnFalse' # (optional) default Cut (ReturnFalse|Cut) + Type => 'ReturnFalse', # (optional) default Cut (ReturnFalse|Cut) Color => '#101010', # (optional) default black LineWidth => 1, # (optional) default 1 );} diff --git a/snippets/Functions/PDFObject/znuny.PDFObject.Image.sublime-snippet b/snippets/Functions/PDFObject/znuny.PDFObject.Image.sublime-snippet index e748eaaf..89aee5c7 100644 --- a/snippets/Functions/PDFObject/znuny.PDFObject.Image.sublime-snippet +++ b/snippets/Functions/PDFObject/znuny.PDFObject.Image.sublime-snippet @@ -2,7 +2,7 @@ Image( File => '/path/image.gif', # (gif|jpg|png) - Type => 'ReturnFalse' # (optional) default Reduce (ReturnFalse|Reduce) + Type => 'ReturnFalse', # (optional) default Reduce (ReturnFalse|Reduce) Width => 300, # width of image Height => 150, # height of image );} diff --git a/snippets/Functions/PackageObject/znuny.PackageObject.PackageBuild.sublime-snippet b/snippets/Functions/PackageObject/znuny.PackageObject.PackageBuild.sublime-snippet index 226646b3..02bcb792 100644 --- a/snippets/Functions/PackageObject/znuny.PackageObject.PackageBuild.sublime-snippet +++ b/snippets/Functions/PackageObject/znuny.PackageObject.PackageBuild.sublime-snippet @@ -28,12 +28,12 @@ ${1:my \$Package = \$PackageObject->PackageBuild( ], Filelist = [ \{ - Location => 'Kernel/System/Lala.pm' + Location => 'Kernel/System/Lala.pm', Permission => '644', Content => \$FileInString, \}, \{ - Location => 'Kernel/System/Lulu.pm' + Location => 'Kernel/System/Lulu.pm', Permission => '644', Content => \$FileInString, \}, diff --git a/snippets/Functions/ParamObject/znuny.ParamObject.SaveFormDraft.sublime-snippet b/snippets/Functions/ParamObject/znuny.ParamObject.SaveFormDraft.sublime-snippet index 954e0426..9320152c 100644 --- a/snippets/Functions/ParamObject/znuny.ParamObject.SaveFormDraft.sublime-snippet +++ b/snippets/Functions/ParamObject/znuny.ParamObject.SaveFormDraft.sublime-snippet @@ -1,7 +1,7 @@ SaveFormDraft( - UserID => \$UserID + UserID => \$UserID, ObjectType => 'Ticket', ObjectID => \$ObjectID, OverrideParams => \{ # optional, can contain strings and array references diff --git a/snippets/Functions/QueueObject/znuny.QueueObject.QueueUpdate.sublime-snippet b/snippets/Functions/QueueObject/znuny.QueueObject.QueueUpdate.sublime-snippet index bcf014c2..a0745dbd 100644 --- a/snippets/Functions/QueueObject/znuny.QueueObject.QueueUpdate.sublime-snippet +++ b/snippets/Functions/QueueObject/znuny.QueueObject.QueueUpdate.sublime-snippet @@ -18,8 +18,8 @@ ${1:my \$Success = \$QueueObject->QueueUpdate( UserID => \$UserID, FollowUpID => \$FollowUpID, Comment => 'Some Comment2', - DefaultSignKey => '' - UnlockTimeOut => '' + DefaultSignKey => '', + UnlockTimeOut => '', FollowUpLock => 1, ParentQueueID => \$ParentQueueID, );} diff --git a/snippets/Functions/SeleniumObject/znuny.SeleniumObject.WaitFor.sublime-snippet b/snippets/Functions/SeleniumObject/znuny.SeleniumObject.WaitFor.sublime-snippet index 2a317ca0..c6c3a8c1 100644 --- a/snippets/Functions/SeleniumObject/znuny.SeleniumObject.WaitFor.sublime-snippet +++ b/snippets/Functions/SeleniumObject/znuny.SeleniumObject.WaitFor.sublime-snippet @@ -10,18 +10,18 @@ ${1:my \$Success = \$SeleniumObject->WaitFor( JavaScript => 'return \$(".someclass").length', # JavaScript code that checks condition WindowCount => 2, # Wait until this many windows are open Time => 20, # optional, wait time in seconds (default 20) - SkipDie => 1, # Instead of a dying process do return the result of the wait for );} ${2:my \$Success = \$SeleniumObject->WaitFor( AlertPresent => 1, # Wait until an alert, confirm or prompt dialog is present Callback => sub \{ ... \} # Wait until function returns true - ElementExists => 'xpath-selector' # Wait until an element is present + ElementExists => 'xpath-selector', # Wait until an element is present ElementExists => ['css-selector', 'css'], ElementMissing => 'xpath-selector', # Wait until an element is not present ElementMissing => ['css-selector', 'css'], JavaScript => 'return \$(".someclass").length', # JavaScript code that checks condition WindowCount => 2, # Wait until this many windows are open Time => 20, # optional, wait time in seconds (default 20) + SkipDie => 1, # Instead of a dying process do return the result of the wait for );} ]]> diff --git a/snippets/Functions/SysConfigObject/znuny.SysConfigObject.ConfigurationSearch.sublime-snippet b/snippets/Functions/SysConfigObject/znuny.SysConfigObject.ConfigurationSearch.sublime-snippet index 848a9caa..4342df04 100644 --- a/snippets/Functions/SysConfigObject/znuny.SysConfigObject.ConfigurationSearch.sublime-snippet +++ b/snippets/Functions/SysConfigObject/znuny.SysConfigObject.ConfigurationSearch.sublime-snippet @@ -2,7 +2,7 @@ ConfigurationSearch( Search => 'The search string', # (optional) - Category => 'OTRS' # (optional) + Category => 'OTRS', # (optional) IncludeInvisible => 1, # (optional) Default 0. );} diff --git a/snippets/Functions/SysConfigObject/znuny.SysConfigObject.SettingEffectiveValueCheck.sublime-snippet b/snippets/Functions/SysConfigObject/znuny.SysConfigObject.SettingEffectiveValueCheck.sublime-snippet index 2ea6828d..d71917f3 100644 --- a/snippets/Functions/SysConfigObject/znuny.SysConfigObject.SettingEffectiveValueCheck.sublime-snippet +++ b/snippets/Functions/SysConfigObject/znuny.SysConfigObject.SettingEffectiveValueCheck.sublime-snippet @@ -14,7 +14,7 @@ ${1:my %Result = \$SysConfigObject->SettingEffectiveValueCheck( ], \}, StoreCache => 1, # (optional) Store result in the Cache. Default 0. - SettingUID => \$SettingUID # (required if StoreCache) + SettingUID => \$SettingUID, # (required if StoreCache) NoValidation => 1, # (optional) no value type validation. CurrentSystemTime => 1507894796935, # (optional) Use provided 1507894796935, otherwise calculate ExpireTime => 1507894896935, # (optional) Use provided ExpireTime for cache, otherwise calculate diff --git a/snippets/Functions/SystemMaintenanceObject/znuny.SystemMaintenanceObject.SystemMaintenanceAdd.sublime-snippet b/snippets/Functions/SystemMaintenanceObject/znuny.SystemMaintenanceObject.SystemMaintenanceAdd.sublime-snippet index 757816dc..59a6aa48 100644 --- a/snippets/Functions/SystemMaintenanceObject/znuny.SystemMaintenanceObject.SystemMaintenanceAdd.sublime-snippet +++ b/snippets/Functions/SystemMaintenanceObject/znuny.SystemMaintenanceObject.SystemMaintenanceAdd.sublime-snippet @@ -1,8 +1,8 @@ SystemMaintenanceAdd( - StartDate => 1485346000 # mandatory - StopDate => 1485349600 # mandatory + StartDate => 1485346000, # mandatory + StopDate => 1485349600, # mandatory Comment => 'Comment', # mandatory LoginMessage => 'A login message.', # optional ShowLoginMessage => 1, # optional diff --git a/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Attributes.sublime-snippet b/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Attributes.sublime-snippet index bb2e3d52..f2abe2f4 100644 --- a/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Attributes.sublime-snippet +++ b/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Attributes.sublime-snippet @@ -3,7 +3,7 @@ ${1:my %Attributes = \$TemplateGeneratorObject->Attributes( TicketID => \$TicketID, ArticleID => \$ArticleID, - ResponseID => \$ResponseID + ResponseID => \$ResponseID, UserID => \$UserID, Action => 'Forward', # Possible values are Reply and Forward, Reply is default. );} diff --git a/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Template.sublime-snippet b/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Template.sublime-snippet index f5cf153e..33dd9dbb 100644 --- a/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Template.sublime-snippet +++ b/snippets/Functions/TemplateGeneratorObject/znuny.TemplateGeneratorObject.Template.sublime-snippet @@ -1,7 +1,7 @@ Template( - TemplateID => \$TemplateID + TemplateID => \$TemplateID, TicketID => \$TicketID, # Optional Data => \$ArticleHashRef, # Optional UserID => \$UserID, diff --git a/snippets/Functions/TicketObject/znuny.TicketObject.TicketAcl.sublime-snippet b/snippets/Functions/TicketObject/znuny.TicketObject.TicketAcl.sublime-snippet index 1ab8030c..2180e499 100644 --- a/snippets/Functions/TicketObject/znuny.TicketObject.TicketAcl.sublime-snippet +++ b/snippets/Functions/TicketObject/znuny.TicketObject.TicketAcl.sublime-snippet @@ -50,13 +50,13 @@ ${2:my \$Success = \$TicketObject->TicketAcl( OwnerID => \$OwnerID, # Optional NewOwnerID => \$NewOwnerID, # Optional, OwnerID or NewOwnerID can be # used and they both refers to OwnerID - Owner => 'some user login' # Optional + Owner => 'some user login', # Optional ResponsibleID => \$ResponsibleID, # Optional NewResponsibleID => \$NewResponsibleID, # Optional, ResponsibleID or NewResposibleID # can be used and they both refers to # ResponsibleID - Responsible => 'some user login' # Optional + Responsible => 'some user login', # Optional ReturnType => 'Action', # To match Possible, PossibleAdd or # PossibleNot key in ACL diff --git a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.Run.sublime-snippet b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.Run.sublime-snippet index a572411b..be5162d8 100644 --- a/snippets/Functions/UnitTestObject/znuny.UnitTestObject.Run.sublime-snippet +++ b/snippets/Functions/UnitTestObject/znuny.UnitTestObject.Run.sublime-snippet @@ -1,6 +1,24 @@ Run( + Tests => ['JSON', 'User'], # optional, execute certain test files + Directory => ['Selenium', 'User'], # optional, execute tests in subdirectory + Package => ['ITSMCore'], # optional, execute tests of installed package + ExcludeDirectory => ['Selenium/Agent/Admin'], # optional, all test files in the specified directory will be Excluded. + SOPMFile => ['ITSMCore.sopm'], # optional, execute all test files which are defined in these sopm. + Verbose => 1, # optional (default 0), only show result details for all tests, not just failing + SubmitURL => \$URL, # optional, send results to unit test result server + SubmitAuth => \$SubmitAuth, # optional authentication string for unit test result server + SubmitResultAsExitCode => 1, # optional, specify if exit code should not indicate if tests were ok/not ok, but if submission was successful instead + JobID => \$JobID, # optional job ID for unit test submission to server + Scenario => 'Znuny 6 git', # optional scenario identifier for unit test submission to server + PostTestScripts => ['...'], # Script(s) to execute after a test has been run. + # You can specify %File%, %TestOk% and %TestNotOk% as dynamic arguments. + PreSubmitScripts => ['...'], # Script(s) to execute after all tests have been executed + # and the results are about to be sent to the server. + NumberOfTestRuns => 10, # optional (default 1), number of successive runs for every single unit test +);} +${2:\$Self->Run( Tests => ['JSON', 'User'], # optional, execute certain test files only Directory => ['Selenium', 'User'], # optional, execute tests in subdirectory ExcludeDirectory => ['Selenium/Agent/Admin'], # optional, all test files in the specified directory will be Excluded. diff --git a/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.sublime-snippet b/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.sublime-snippet index 3889749b..be9d5bb8 100644 --- a/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.sublime-snippet +++ b/snippets/Functions/VirtualFSObject/znuny.VirtualFSObject.Write.sublime-snippet @@ -3,7 +3,7 @@ ${1:my \$Success = \$VirtualFSObject->Write( Content => \\$Content, Filename => '/Object/SomeFileName.txt', - Mode => 'binary' # (binary|utf8) + Mode => 'binary', # (binary|utf8) # optional, preferences data Preferences => \{ diff --git a/snippets/Functions/WebserviceHistoryObject/znuny.WebserviceHistoryObject.WebserviceHistoryUpdate.sublime-snippet b/snippets/Functions/WebserviceHistoryObject/znuny.WebserviceHistoryObject.WebserviceHistoryUpdate.sublime-snippet index 361e1946..7718f7b4 100644 --- a/snippets/Functions/WebserviceHistoryObject/znuny.WebserviceHistoryObject.WebserviceHistoryUpdate.sublime-snippet +++ b/snippets/Functions/WebserviceHistoryObject/znuny.WebserviceHistoryObject.WebserviceHistoryUpdate.sublime-snippet @@ -2,7 +2,7 @@ WebserviceHistoryUpdate( ID => 123, - WebserviceID => \$WebserviceID + WebserviceID => \$WebserviceID, Config => \$ConfigHashRef, UserID => \$UserID, );} diff --git a/src/snippets-raw-data.json b/src/snippets-raw-data.json index 698a5753..0f7fb21a 100644 --- a/src/snippets-raw-data.json +++ b/src/snippets-raw-data.json @@ -425,7 +425,7 @@ ] }, "ArticleSearchIndexRebuildFlagSet" : { - "my $Success = $ArticleObject->ArticleSearchIndexRebuildFlagSet(\n ArticleIDs => [ 123, 234, 345 ] # (Either 'ArticleIDs' or 'All' must be provided) The ArticleIDs to be updated.\n All => 1 # (Either 'ArticleIDs' or 'All' must be provided) Set all articles to $Value. Default: 0,\n Value => 1, # 0/1 default 0\n);" : [ + "my $Success = $ArticleObject->ArticleSearchIndexRebuildFlagSet(\n ArticleIDs => [ 123, 234, 345 ] # (Either 'ArticleIDs' or 'All' must be provided) The ArticleIDs to be updated.\n All => 1, # (Either 'ArticleIDs' or 'All' must be provided) Set all articles to $Value. Default: 0,\n Value => 1, # 0/1 default 0\n);" : [ "6.0", "6.4", "6.5" @@ -705,19 +705,19 @@ ] }, "EditFieldRender" : { - "my $FieldHTML = $BackendObject->EditFieldRender(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject,\n LayoutObject => $LayoutObject,\n PossibleValuesFilter => { # Optional. Some backends may support this.\n 'Key1' => 'Value1', # This may be needed to realize ACL support for ticket masks,\n 'Key2' => 'Value2', # where the possible values can be limited with and ACL.\n },\n Template => { # Optional data structure of GenericAgent etc.\n Owner => 2, # Value is accessable via field name (DynamicField_ + field name)\n Title => 'Generic Agent Job was here' # and could be a scalar, Hash- or ArrayRef\n ...\n DynamicField_ExampleField1 => 'Value 1'\n },\n Value => 'Any value', # Optional\n Mandatory => 1, # 0 or 1,\n Class => 'AnyCSSClass OrOneMore', # Optional\n ServerError => 1, # 0 or 1,\n ErrorMessage => $ErrorMessage, # Optional or a default will be used in error case\n UseDefaultValue => 1, # 0 or 1, 1 default\n OverridePossibleNone => 1, # Optional, 0 or 1. If defined orverrides the Possible None\n # setting of all dynamic fields (where applies) with the\n # defined value\n ConfirmationNeeded => 0, # Optional, 0 or 1, default 0. To display a confirmation element\n # on fields that apply (like checkbox)\n AJAXUpdate => 1, # Optional, 0 ir 1. To create JS code for field change to update\n # the form using ACLs triggered by the field.\n UpdatableFields => [ # Optional, to use if AJAXUpdate is 1. List of fields to display a\n 'NetxStateID', # spinning wheel when reloading via AJAXUpdate.\n 'PriorityID',\n ],\n MaxLength => 100 # Optional, defines the maximum number of characters on fields\n # where applies (like TextArea)\n);" : [ + "my $FieldHTML = $BackendObject->EditFieldRender(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject,\n LayoutObject => $LayoutObject,\n PossibleValuesFilter => { # Optional. Some backends may support this.\n 'Key1' => 'Value1', # This may be needed to realize ACL support for ticket masks,\n 'Key2' => 'Value2', # where the possible values can be limited with and ACL.\n },\n Template => { # Optional data structure of GenericAgent etc.\n Owner => 2, # Value is accessable via field name (DynamicField_ + field name)\n Title => 'Generic Agent Job was here', # and could be a scalar, Hash- or ArrayRef\n ...\n DynamicField_ExampleField1 => 'Value 1'\n },\n Value => 'Any value', # Optional\n Mandatory => 1, # 0 or 1,\n Class => 'AnyCSSClass OrOneMore', # Optional\n ServerError => 1, # 0 or 1,\n ErrorMessage => $ErrorMessage, # Optional or a default will be used in error case\n UseDefaultValue => 1, # 0 or 1, 1 default\n OverridePossibleNone => 1, # Optional, 0 or 1. If defined orverrides the Possible None\n # setting of all dynamic fields (where applies) with the\n # defined value\n ConfirmationNeeded => 0, # Optional, 0 or 1, default 0. To display a confirmation element\n # on fields that apply (like checkbox)\n AJAXUpdate => 1, # Optional, 0 ir 1. To create JS code for field change to update\n # the form using ACLs triggered by the field.\n UpdatableFields => [ # Optional, to use if AJAXUpdate is 1. List of fields to display a\n 'NetxStateID', # spinning wheel when reloading via AJAXUpdate.\n 'PriorityID',\n ],\n MaxLength => 100 # Optional, defines the maximum number of characters on fields\n # where applies (like TextArea)\n);" : [ "6.0", "6.4", "6.5" ] }, "EditFieldValueGet" : { - "my $Value = $BackendObject->EditFieldValueGet(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject, # the current request data\n TransformDates => 0 # 1 || 0, default 1, to transform the dynamic fields that\n # use dates to the user time zone (i.e. Date, DateTime\n # dynamic fields)\n\n Template => $Template # stored values from DB like Search profile or Generic Agent job\n ReturnTemplateStructure => 1, # 0 || 1, default 0\n # Returns the structured values as got from the http request\n # (only for backend internal use).\n);" : [ + "my $Value = $BackendObject->EditFieldValueGet(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject, # the current request data\n TransformDates => 0, # 1 || 0, default 1, to transform the dynamic fields that\n # use dates to the user time zone (i.e. Date, DateTime\n # dynamic fields)\n\n Template => $Template, # stored values from DB like Search profile or Generic Agent job\n ReturnTemplateStructure => 1, # 0 || 1, default 0\n # Returns the structured values as got from the http request\n # (only for backend internal use).\n);" : [ "6.0", "6.4", "6.5" ], - "my $Value = $BackendObject->EditFieldValueGet(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject, # the current request data\n LayoutObject => $LayoutObject, # used to transform dates to user time zone\n TransformDates => 1 # 1 || 0, default 1, to transform the dynamic fields that\n # use dates to the user time zone (i.e. Date, DateTime\n # dynamic fields)\n Template => $Template,\n ReturnValueStructure => 0, # 0 || 1, default 0\n # Returns special structure\n # (only for backend internal use).\n ReturnTemplateStructure => 0, # 0 || 1, default 0\n # Returns the structured values as got from the http request\n);" : [ + "my $Value = $BackendObject->EditFieldValueGet(\n DynamicFieldConfig => $DynamicFieldConfig, # complete config of the DynamicField\n ParamObject => $ParamObject, # the current request data\n LayoutObject => $LayoutObject, # used to transform dates to user time zone\n TransformDates => 1, # 1 || 0, default 1, to transform the dynamic fields that\n # use dates to the user time zone (i.e. Date, DateTime\n # dynamic fields)\n Template => $Template,\n ReturnValueStructure => 0, # 0 || 1, default 0\n # Returns special structure\n # (only for backend internal use).\n ReturnTemplateStructure => 0, # 0 || 1, default 0\n # Returns the structured values as got from the http request\n);" : [ "6.0", "6.4", "6.5" @@ -1333,7 +1333,7 @@ ] }, "ObjectLog" : { - "my $Success = $CommunicationLogObject->ObjectLog(\n ObjectLogType => '...' # (required) To be defined by the related LogObject\n ObjectLogID => $ObjectLogID, # (required) The ObjectID of the started object type\n);" : [ + "my $Success = $CommunicationLogObject->ObjectLog(\n ObjectLogType => '...', # (required) To be defined by the related LogObject\n ObjectLogID => $ObjectLogID, # (required) The ObjectID of the started object type\n);" : [ "6.0", "6.4", "6.5" @@ -1347,7 +1347,7 @@ ] }, "ObjectLogStop" : { - "my $Success = $CommunicationLogObject->ObjectLogStop(\n ObjectLogType => 'Connection' # (required) Can be 'Connection' or 'Message'\n ObjectLogID => $ObjectLogID, # (required) The ObjectID of the started object type\n);" : [ + "my $Success = $CommunicationLogObject->ObjectLogStop(\n ObjectLogType => 'Connection', # (required) Can be 'Connection' or 'Message'\n ObjectLogID => $ObjectLogID, # (required) The ObjectID of the started object type\n);" : [ "6.0", "6.4", "6.5" @@ -1806,7 +1806,7 @@ ] }, "CustomerUserUpdate" : { - "$CustomerUserObject->CustomerUserUpdate(\n Source => 'CustomerUser', # CustomerUser source config\n ID => 'mh' # current user login\n UserLogin => 'mhuber', # new user login\n UserFirstname => 'Huber',\n UserLastname => 'Manfred',\n UserPassword => 'some-pass', # not required\n UserEmail => 'email@example.com',\n ValidID => $ValidID,\n UserID => $UserID,\n);" : [ + "$CustomerUserObject->CustomerUserUpdate(\n Source => 'CustomerUser', # CustomerUser source config\n ID => 'mh', # current user login\n UserLogin => 'mhuber', # new user login\n UserFirstname => 'Huber',\n UserLastname => 'Manfred',\n UserPassword => 'some-pass', # not required\n UserEmail => 'email@example.com',\n ValidID => $ValidID,\n UserID => $UserID,\n);" : [ "6.0", "6.4", "6.5" @@ -2139,7 +2139,7 @@ ] }, "QueryCondition" : { - "my $SQL = $DBObject->QueryCondition(\n Key => 'some_col',\n Value => '(ABC+DEF)',\n SearchPrefix => '',\n SearchSuffix => '*'\n Extended => 1, # use also \" \" as \"&&\", e.g. \"bob smith\" -> \"bob&&smith\"\n);" : [ + "my $SQL = $DBObject->QueryCondition(\n Key => 'some_col',\n Value => '(ABC+DEF)',\n SearchPrefix => '',\n SearchSuffix => '*',\n Extended => 1, # use also \" \" as \"&&\", e.g. \"bob smith\" -> \"bob&&smith\"\n);" : [ "6.0", "6.4", "6.5" @@ -2474,7 +2474,7 @@ ], "Functions" : { "LogAdd" : { - "my $Success = $DebugLogObject->LogAdd(\n CommunicationID => $CommunicationID,\n CommunicationType => 'Provider', # 'Provider' or 'Requester'\n Data => 'additional data' # optional\n DebugLevel => 'info', # 'debug', 'info', 'notice', 'error'\n RemoteIP => '192.168.0.1', # optional, must be valid IPv4 or IPv6 address\n Summary => 'description of log entry',\n WebserviceID => $WebserviceID,\n);" : [ + "my $Success = $DebugLogObject->LogAdd(\n CommunicationID => $CommunicationID,\n CommunicationType => 'Provider', # 'Provider' or 'Requester'\n Data => 'additional data', # optional\n DebugLevel => 'info', # 'debug', 'info', 'notice', 'error'\n RemoteIP => '192.168.0.1', # optional, must be valid IPv4 or IPv6 address\n Summary => 'description of log entry',\n WebserviceID => $WebserviceID,\n);" : [ "6.0", "6.4", "6.5" @@ -3175,7 +3175,7 @@ ] }, "JobRun" : { - "$GenericAgentObject->JobRun(\n Job => 'JobName',\n OnlyTicketID => $OnlyTicketID, # (optional) for event based Job execution\n SleepTime => 100_000 # (optional) sleeptime per ticket in microseconds\n UserID => $UserID,\n);" : [ + "$GenericAgentObject->JobRun(\n Job => 'JobName',\n OnlyTicketID => $OnlyTicketID, # (optional) for event based Job execution\n SleepTime => 100_000, # (optional) sleeptime per ticket in microseconds\n UserID => $UserID,\n);" : [ "6.0", "6.4", "6.5" @@ -3755,14 +3755,14 @@ ] }, "TestUserCreate" : { - "my $TestUserLogin = $HelperObject->TestUserCreate(\n Groups => ['admin', 'users'], # optional, list of groups to add this user to (rw rights)\n Language => 'de' # optional, defaults to 'en' if not set\n KeepValid => 1, # optional, defaults to 0\n);" : [ + "my $TestUserLogin = $HelperObject->TestUserCreate(\n Groups => ['admin', 'users'], # optional, list of groups to add this user to (rw rights)\n Language => 'de', # optional, defaults to 'en' if not set\n KeepValid => 1, # optional, defaults to 0\n);" : [ "6.4", "6.5" ], "my $TestUserLogin = $HelperObject->TestUserCreate(\n Groups => ['admin', 'users'], # optional, list of groups to add this user to (rw rights)\n Language => 'de' # optional, defaults to 'en' if not set\n);" : [ "6.0" ], - "my ( $TestUserLogin, $TestUserID ) = $HelperObject->TestUserCreate(\n Groups => ['admin', 'users'],\n Language => 'de'\n KeepValid => 1,\n);" : [ + "my ( $TestUserLogin, $TestUserID ) = $HelperObject->TestUserCreate(\n Groups => ['admin', 'users'],\n Language => 'de',\n KeepValid => 1,\n);" : [ "6.4", "6.5" ] @@ -4532,7 +4532,7 @@ ] }, "ObjectSearch" : { - "$ObjectList = $LinkObject->ObjectSearch(\n Object => 'ITSMConfigItem',\n SubObject => 'Computer' # (optional)\n SearchParams => $HashRef, # (optional)\n UserID => $UserID,\n);" : [ + "$ObjectList = $LinkObject->ObjectSearch(\n Object => 'ITSMConfigItem',\n SubObject => 'Computer', # (optional)\n SearchParams => $HashRef, # (optional)\n UserID => $UserID,\n);" : [ "6.0", "6.4", "6.5" @@ -4670,7 +4670,7 @@ ] }, "MinifyFiles" : { - "my $TargetFilename = $LoaderObject->MinifyFiles(\n List => [ # optional, minify list of files\n $Filename,\n $Filename2,\n ],\n Checksum => '...' # optional, pass a checksum for the minified file\n Content => '...' # optional, pass direct (already minified) content instead of a file list\n Type => 'CSS', # CSS | JavaScript\n TargetDirectory => $TargetDirectory,\n TargetFilenamePrefix => 'CommonCSS', # optional, prefix for the target filename\n);" : [ + "my $TargetFilename = $LoaderObject->MinifyFiles(\n List => [ # optional, minify list of files\n $Filename,\n $Filename2,\n ],\n Checksum => '...', # optional, pass a checksum for the minified file\n Content => '...', # optional, pass direct (already minified) content instead of a file list\n Type => 'CSS', # CSS | JavaScript\n TargetDirectory => $TargetDirectory,\n TargetFilenamePrefix => 'CommonCSS', # optional, prefix for the target filename\n);" : [ "6.0", "6.4", "6.5" @@ -4886,7 +4886,7 @@ ] }, "List" : { - "my $List = $MailQueueObject->List(\n ID => '...' # optional\n ArticleID => $ArticleID # optional\n Sender => '...' # optional\n Recipient => '...' # optional\n Attempts => '...' # optional\n);" : [ + "my $List = $MailQueueObject->List(\n ID => '...', # optional\n ArticleID => $ArticleID, # optional\n Sender => '...', # optional\n Recipient => '...', # optional\n Attempts => '...', # optional\n);" : [ "6.0", "6.4", "6.5" @@ -4969,7 +4969,7 @@ ] }, "FileDelete" : { - "my $Success = $MainObject->FileDelete(\n Directory => 'c:\\some\\location',\n Filename => 'me_to/alal.xml',\n # or Location\n Location => 'c:\\some\\location\\me_to\\alal.xml'\n\n Type => 'Local', # optional - Local|Attachment|MD5\n DisableWarnings => 1, # optional\n);" : [ + "my $Success = $MainObject->FileDelete(\n Directory => 'c:\\some\\location',\n Filename => 'me_to/alal.xml',\n # or Location\n Location => 'c:\\some\\location\\me_to\\alal.xml',\n\n Type => 'Local', # optional - Local|Attachment|MD5\n DisableWarnings => 1, # optional\n);" : [ "6.0", "6.4", "6.5" @@ -5442,14 +5442,14 @@ ] }, "HLine" : { - "$True = $PDFObject->HLine(\n Width => 300, # (optional) default 'end of printable dimension'\n Type => 'ReturnFalse' # (optional) default Cut (ReturnFalse|Cut)\n Color => '#101010', # (optional) default black\n LineWidth => 1, # (optional) default 1\n);" : [ + "$True = $PDFObject->HLine(\n Width => 300, # (optional) default 'end of printable dimension'\n Type => 'ReturnFalse', # (optional) default Cut (ReturnFalse|Cut)\n Color => '#101010', # (optional) default black\n LineWidth => 1, # (optional) default 1\n);" : [ "6.0", "6.4", "6.5" ] }, "Image" : { - "$True = $PDFObject->Image(\n File => '/path/image.gif', # (gif|jpg|png)\n Type => 'ReturnFalse' # (optional) default Reduce (ReturnFalse|Reduce)\n Width => 300, # width of image\n Height => 150, # height of image\n);" : [ + "$True = $PDFObject->Image(\n File => '/path/image.gif', # (gif|jpg|png)\n Type => 'ReturnFalse', # (optional) default Reduce (ReturnFalse|Reduce)\n Width => 300, # width of image\n Height => 150, # height of image\n);" : [ "6.0", "6.4", "6.5" @@ -5612,7 +5612,7 @@ ] }, "PackageBuild" : { - "my $Package = $PackageObject->PackageBuild(\n Name => {\n Content => 'SomePackageName',\n },\n Version => {\n Content => '1.0',\n },\n Vendor => {\n Content => 'OTRS AG',\n },\n URL => {\n Content => 'L',\n },\n License => {\n Content => 'GNU GENERAL PUBLIC LICENSE Version 3, November 2007',\n }\n Description => [\n {\n Lang => 'en',\n Content => 'english description',\n },\n {\n Lang => 'de',\n Content => 'german description',\n },\n ],\n Filelist = [\n {\n Location => 'Kernel/System/Lala.pm'\n Permission => '644',\n Content => $FileInString,\n },\n {\n Location => 'Kernel/System/Lulu.pm'\n Permission => '644',\n Content => $FileInString,\n },\n ],\n);" : [ + "my $Package = $PackageObject->PackageBuild(\n Name => {\n Content => 'SomePackageName',\n },\n Version => {\n Content => '1.0',\n },\n Vendor => {\n Content => 'OTRS AG',\n },\n URL => {\n Content => 'L',\n },\n License => {\n Content => 'GNU GENERAL PUBLIC LICENSE Version 3, November 2007',\n }\n Description => [\n {\n Lang => 'en',\n Content => 'english description',\n },\n {\n Lang => 'de',\n Content => 'german description',\n },\n ],\n Filelist = [\n {\n Location => 'Kernel/System/Lala.pm',\n Permission => '644',\n Content => $FileInString,\n },\n {\n Location => 'Kernel/System/Lulu.pm',\n Permission => '644',\n Content => $FileInString,\n },\n ],\n);" : [ "6.0", "6.4", "6.5" @@ -5883,7 +5883,7 @@ ] }, "SaveFormDraft" : { - "my $FormDraftID = $ParamObject->SaveFormDraft(\n UserID => $UserID\n ObjectType => 'Ticket',\n ObjectID => $ObjectID,\n OverrideParams => { # optional, can contain strings and array references\n Subaction => undef,\n UserID => $UserID,\n CustomParam => [ 1, 2, 3, ],\n ...\n },\n);" : [ + "my $FormDraftID = $ParamObject->SaveFormDraft(\n UserID => $UserID,\n ObjectType => 'Ticket',\n ObjectID => $ObjectID,\n OverrideParams => { # optional, can contain strings and array references\n Subaction => undef,\n UserID => $UserID,\n CustomParam => [ 1, 2, 3, ],\n ...\n },\n);" : [ "6.0", "6.4", "6.5" @@ -6313,7 +6313,7 @@ ] }, "QueueUpdate" : { - "my $Success = $QueueObject->QueueUpdate(\n QueueID => $QueueID,\n Name => 'Some::Queue',\n ValidID => $ValidID,\n GroupID => $GroupID,\n Calendar => '1', # (optional) default ''\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 SystemAddressID => $SystemAddressID,\n SalutationID => $SalutationID,\n SignatureID => $SignatureID,\n UserID => $UserID,\n FollowUpID => $FollowUpID,\n Comment => 'Some Comment2',\n DefaultSignKey => ''\n UnlockTimeOut => ''\n FollowUpLock => 1,\n ParentQueueID => $ParentQueueID,\n);" : [ + "my $Success = $QueueObject->QueueUpdate(\n QueueID => $QueueID,\n Name => 'Some::Queue',\n ValidID => $ValidID,\n GroupID => $GroupID,\n Calendar => '1', # (optional) default ''\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 SystemAddressID => $SystemAddressID,\n SalutationID => $SalutationID,\n SignatureID => $SignatureID,\n UserID => $UserID,\n FollowUpID => $FollowUpID,\n Comment => 'Some Comment2',\n DefaultSignKey => '',\n UnlockTimeOut => '',\n FollowUpLock => 1,\n ParentQueueID => $ParentQueueID,\n);" : [ "6.0", "6.4", "6.5" @@ -7073,12 +7073,12 @@ ] }, "WaitFor" : { - "my $Success = $SeleniumObject->WaitFor(\n AlertPresent => 1, # Wait until an alert, confirm or prompt dialog is present\n Callback => sub { ... } # Wait until function returns true\n ElementExists => 'xpath-selector' # Wait until an element is present\n ElementExists => ['css-selector', 'css'],\n ElementMissing => 'xpath-selector', # Wait until an element is not present\n ElementMissing => ['css-selector', 'css'],\n JavaScript => 'return $(\".someclass\").length', # JavaScript code that checks condition\n WindowCount => 2, # Wait until this many windows are open\n Time => 20, # optional, wait time in seconds (default 20)\n SkipDie => 1, # Instead of a dying process do return the result of the wait for\n);" : [ - "6.4", - "6.5" - ], "my $Success = $SeleniumObject->WaitFor(\n AlertPresent => 1, # Wait until an alert, confirm or prompt dialog is present\n Callback => sub { ... } # Wait until function returns true\n ElementExists => 'xpath-selector' # Wait until an element is present\n ElementExists => ['css-selector', 'css'],\n ElementMissing => 'xpath-selector', # Wait until an element is not present\n ElementMissing => ['css-selector', 'css'],\n JavaScript => 'return $(\".someclass\").length', # JavaScript code that checks condition\n WindowCount => 2, # Wait until this many windows are open\n Time => 20, # optional, wait time in seconds (default 20)\n);" : [ "6.0" + ], + "my $Success = $SeleniumObject->WaitFor(\n AlertPresent => 1, # Wait until an alert, confirm or prompt dialog is present\n Callback => sub { ... } # Wait until function returns true\n ElementExists => 'xpath-selector', # Wait until an element is present\n ElementExists => ['css-selector', 'css'],\n ElementMissing => 'xpath-selector', # Wait until an element is not present\n ElementMissing => ['css-selector', 'css'],\n JavaScript => 'return $(\".someclass\").length', # JavaScript code that checks condition\n WindowCount => 2, # Wait until this many windows are open\n Time => 20, # optional, wait time in seconds (default 20)\n SkipDie => 1, # Instead of a dying process do return the result of the wait for\n);" : [ + "6.4", + "6.5" ] }, "WaitForjQueryEventBound" : { @@ -8059,7 +8059,7 @@ ] }, "ConfigurationSearch" : { - "my @Result = $SysConfigObject->ConfigurationSearch(\n Search => 'The search string', # (optional)\n Category => 'OTRS' # (optional)\n IncludeInvisible => 1, # (optional) Default 0.\n);" : [ + "my @Result = $SysConfigObject->ConfigurationSearch(\n Search => 'The search string', # (optional)\n Category => 'OTRS', # (optional)\n IncludeInvisible => 1, # (optional) Default 0.\n);" : [ "6.0", "6.4", "6.5" @@ -8127,7 +8127,7 @@ ] }, "SettingEffectiveValueCheck" : { - "my %Result = $SysConfigObject->SettingEffectiveValueCheck(\n EffectiveValue => 'open', # (optional)\n XMLContentParsed => { # (required)\n Value => [\n {\n 'Item' => [\n {\n 'Content' => \"Scalar value\",\n },\n ],\n },\n ],\n },\n StoreCache => 1, # (optional) Store result in the Cache. Default 0.\n SettingUID => $SettingUID # (required if StoreCache)\n NoValidation => 1, # (optional) no value type validation.\n CurrentSystemTime => 1507894796935, # (optional) Use provided 1507894796935, otherwise calculate\n ExpireTime => 1507894896935, # (optional) Use provided ExpireTime for cache, otherwise calculate\n UserID => $UserID, # (required) UserID\n);" : [ + "my %Result = $SysConfigObject->SettingEffectiveValueCheck(\n EffectiveValue => 'open', # (optional)\n XMLContentParsed => { # (required)\n Value => [\n {\n 'Item' => [\n {\n 'Content' => \"Scalar value\",\n },\n ],\n },\n ],\n },\n StoreCache => 1, # (optional) Store result in the Cache. Default 0.\n SettingUID => $SettingUID, # (required if StoreCache)\n NoValidation => 1, # (optional) no value type validation.\n CurrentSystemTime => 1507894796935, # (optional) Use provided 1507894796935, otherwise calculate\n ExpireTime => 1507894896935, # (optional) Use provided ExpireTime for cache, otherwise calculate\n UserID => $UserID, # (required) UserID\n);" : [ "6.0", "6.4", "6.5" @@ -8366,7 +8366,7 @@ ], "Functions" : { "SystemMaintenanceAdd" : { - "my $ID = $SystemMaintenanceObject->SystemMaintenanceAdd(\n StartDate => 1485346000 # mandatory\n StopDate => 1485349600 # mandatory\n Comment => 'Comment', # mandatory\n LoginMessage => 'A login message.', # optional\n ShowLoginMessage => 1, # optional\n NotifyMessage => 'Notification message.', # optional\n ValidID => $ValidID, # mandatory\n UserID => $UserID, # mandatory\n);" : [ + "my $ID = $SystemMaintenanceObject->SystemMaintenanceAdd(\n StartDate => 1485346000, # mandatory\n StopDate => 1485349600, # mandatory\n Comment => 'Comment', # mandatory\n LoginMessage => 'A login message.', # optional\n ShowLoginMessage => 1, # optional\n NotifyMessage => 'Notification message.', # optional\n ValidID => $ValidID, # mandatory\n UserID => $UserID, # mandatory\n);" : [ "6.0", "6.4", "6.5" @@ -8433,7 +8433,7 @@ ], "Functions" : { "Attributes" : { - "my %Attributes = $TemplateGeneratorObject->Attributes(\n TicketID => $TicketID,\n ArticleID => $ArticleID,\n ResponseID => $ResponseID\n UserID => $UserID,\n Action => 'Forward', # Possible values are Reply and Forward, Reply is default.\n);" : [ + "my %Attributes = $TemplateGeneratorObject->Attributes(\n TicketID => $TicketID,\n ArticleID => $ArticleID,\n ResponseID => $ResponseID,\n UserID => $UserID,\n Action => 'Forward', # Possible values are Reply and Forward, Reply is default.\n);" : [ "6.0", "6.4", "6.5" @@ -8492,7 +8492,7 @@ ] }, "Template" : { - "my $Template = $TemplateGeneratorObject->Template(\n TemplateID => $TemplateID\n TicketID => $TicketID, # Optional\n Data => $ArticleHashRef, # Optional\n UserID => $UserID,\n);" : [ + "my $Template = $TemplateGeneratorObject->Template(\n TemplateID => $TemplateID,\n TicketID => $TicketID, # Optional\n Data => $ArticleHashRef, # Optional\n UserID => $UserID,\n);" : [ "6.0", "6.4", "6.5" @@ -8657,7 +8657,7 @@ "6.4", "6.5" ], - "my $Success = $TicketObject->TicketAcl(\n Data => { # Values to restrict\n 1 => AgentTicketZoom,\n # ...\n },\n\n Action => 'AgentTicketZoom', # Optional\n TicketID => $TicketID, # Optional\n DynamicField => { # Optional\n DynamicField_NameX => 123,\n DynamicField_NameZ => 'some value',\n },\n\n QueueID => $QueueID, # Optional\n Queue => 'some queue name', # Optional\n NewQueueID => $NewQueueID, # Optional, QueueID or NewQueueID can be\n # used and they both refers to QueueID\n\n ServiceID => $ServiceID, # Optional\n Service => 'some service name', # Optional\n\n TypeID => $TypeID,\n Type => 'some ticket type name', # Optional\n\n PriorityID => $PriorityID, # Optional\n NewPriorityID => $NewPriorityID, # Optional, PriorityID or NewPriorityID can be\n # used and they both refers to PriorityID\n Priority => 'some priority name', # Optional\n\n SLAID => $SLAID,\n SLA => 'some SLA name', # Optional\n\n StateID => $StateID, # Optional\n NextStateID => $NextStateID, # Optional, StateID or NextStateID can be\n # used and they both refers to StateID\n State => 'some ticket state name', # Optional\n\n OwnerID => $OwnerID, # Optional\n NewOwnerID => $NewOwnerID, # Optional, OwnerID or NewOwnerID can be\n # used and they both refers to OwnerID\n Owner => 'some user login' # Optional\n\n ResponsibleID => $ResponsibleID, # Optional\n NewResponsibleID => $NewResponsibleID, # Optional, ResponsibleID or NewResposibleID\n # can be used and they both refers to\n # ResponsibleID\n Responsible => 'some user login' # Optional\n\n ReturnType => 'Action', # To match Possible, PossibleAdd or\n # PossibleNot key in ACL\n ReturnSubType => '-', # To match Possible, PossibleAdd or\n # PossibleNot sub-key in ACL\n\n UserID => $UserID, # UserID => 1 is not affected by this function\n CustomerUserID => $CustomerUserID, # UserID or CustomerUserID are mandatory\n\n # Process Management Parameters\n ProcessEntityID => $ProcessEntityID, # Optional\n ActivityEntityID => $ActivityEntityID, # Optional\n ActivityDialogEntityID => $ActivityDialogEntityID, # Optional\n);" : [ + "my $Success = $TicketObject->TicketAcl(\n Data => { # Values to restrict\n 1 => AgentTicketZoom,\n # ...\n },\n\n Action => 'AgentTicketZoom', # Optional\n TicketID => $TicketID, # Optional\n DynamicField => { # Optional\n DynamicField_NameX => 123,\n DynamicField_NameZ => 'some value',\n },\n\n QueueID => $QueueID, # Optional\n Queue => 'some queue name', # Optional\n NewQueueID => $NewQueueID, # Optional, QueueID or NewQueueID can be\n # used and they both refers to QueueID\n\n ServiceID => $ServiceID, # Optional\n Service => 'some service name', # Optional\n\n TypeID => $TypeID,\n Type => 'some ticket type name', # Optional\n\n PriorityID => $PriorityID, # Optional\n NewPriorityID => $NewPriorityID, # Optional, PriorityID or NewPriorityID can be\n # used and they both refers to PriorityID\n Priority => 'some priority name', # Optional\n\n SLAID => $SLAID,\n SLA => 'some SLA name', # Optional\n\n StateID => $StateID, # Optional\n NextStateID => $NextStateID, # Optional, StateID or NextStateID can be\n # used and they both refers to StateID\n State => 'some ticket state name', # Optional\n\n OwnerID => $OwnerID, # Optional\n NewOwnerID => $NewOwnerID, # Optional, OwnerID or NewOwnerID can be\n # used and they both refers to OwnerID\n Owner => 'some user login', # Optional\n\n ResponsibleID => $ResponsibleID, # Optional\n NewResponsibleID => $NewResponsibleID, # Optional, ResponsibleID or NewResposibleID\n # can be used and they both refers to\n # ResponsibleID\n Responsible => 'some user login', # Optional\n\n ReturnType => 'Action', # To match Possible, PossibleAdd or\n # PossibleNot key in ACL\n ReturnSubType => '-', # To match Possible, PossibleAdd or\n # PossibleNot sub-key in ACL\n\n UserID => $UserID, # UserID => 1 is not affected by this function\n CustomerUserID => $CustomerUserID, # UserID or CustomerUserID are mandatory\n\n # Process Management Parameters\n ProcessEntityID => $ProcessEntityID, # Optional\n ActivityEntityID => $ActivityEntityID, # Optional\n ActivityDialogEntityID => $ActivityDialogEntityID, # Optional\n);" : [ "6.0", "6.4", "6.5" @@ -9737,6 +9737,9 @@ ] }, "Run" : { + "$Self->Run(\n Tests => ['JSON', 'User'], # optional, execute certain test files\n Directory => ['Selenium', 'User'], # optional, execute tests in subdirectory\n Package => ['ITSMCore'], # optional, execute tests of installed package\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.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 => $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.0", "6.4", @@ -10207,7 +10210,7 @@ ] }, "Write" : { - "my $Success = $VirtualFSObject->Write(\n Content => \\$Content,\n Filename => '/Object/SomeFileName.txt',\n Mode => 'binary' # (binary|utf8)\n\n # optional, preferences data\n Preferences => {\n ContentType => 'text/plain',\n ContentID => $ContentID,\n ContentAlternative => 1,\n SomeCustomParams => 'with our own value',\n },\n);" : [ + "my $Success = $VirtualFSObject->Write(\n Content => \\$Content,\n Filename => '/Object/SomeFileName.txt',\n Mode => 'binary', # (binary|utf8)\n\n # optional, preferences data\n Preferences => {\n ContentType => 'text/plain',\n ContentID => $ContentID,\n ContentAlternative => 1,\n SomeCustomParams => 'with our own value',\n },\n);" : [ "6.0", "6.4", "6.5" @@ -10366,7 +10369,7 @@ ] }, "WebserviceHistoryUpdate" : { - "my $Success = $WebserviceHistoryObject->WebserviceHistoryUpdate(\n ID => 123,\n WebserviceID => $WebserviceID\n Config => $ConfigHashRef,\n UserID => $UserID,\n);" : [ + "my $Success = $WebserviceHistoryObject->WebserviceHistoryUpdate(\n ID => 123,\n WebserviceID => $WebserviceID,\n Config => $ConfigHashRef,\n UserID => $UserID,\n);" : [ "6.0", "6.4", "6.5"