PHP code example of jeyroik / df-templates-triggers
1. Go to this page and download the library: Download jeyroik/df-templates-triggers library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jeyroik / df-templates-triggers example snippets
$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
]
]
]));