jeyroik/df-templates-triggers

There is no license information available for the latest version (0.1.0) of this package.

Templates for DF triggers

0.1.0 2023-08-09 15:09 UTC

This package is auto-updated.

Last update: 2024-04-09 16:39:56 UTC


README

tests codecov.io 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63343437343461656230663336343464353261632f6d61696e7461696e6162696c697479 Latest Stable Version Total Downloads Dependents

df-templates-triggers

Templates for DF triggers

Library provide IContextTrigger.

usage

$ts = new TemplateService();
$templates = $ts->getTemplates($someRepo, new ContextTrigger([
    ContextTrigger::FIELD__PARAMS => [
        ContextTrigger::PARAM__FOR => [
            IParam::FIELD__NAME => ContextTrigger::PARAM__FOR,
            IParam::FIELD__VALUE => ETrigger::Event
        ],
        ContextTrigger::PARAM__TRIGGER => [
            IParam::FIELD__NAME => ContextTrigger::PARAM__TRIGGER,
            IParam::FIELD__VALUE => $trigger
        ]
    ]
]));