[FEATURE] Add campaign to viewhelpers

This commit is contained in:
Markus Klein 2020-11-27 22:54:07 +01:00
parent 174d2ff691
commit 40e322485e
3 changed files with 5 additions and 2 deletions

View file

@ -34,7 +34,8 @@ class ButtonViewHelper extends VerificationViewHelper
return $link->getVerificationButton( return $link->getVerificationButton(
$arguments['type'], $arguments['type'],
static::getId($arguments), static::getId($arguments),
static::getType($arguments) static::getType($arguments),
$arguments['campaign']
); );
} }
} }

View file

@ -34,7 +34,8 @@ class UrlViewHelper extends VerificationViewHelper
return $link->getVerificationLink( return $link->getVerificationLink(
$arguments['type'], $arguments['type'],
static::getId($arguments), static::getId($arguments),
static::getType($arguments) static::getType($arguments),
$arguments['campaign']
); );
} }
} }

View file

@ -38,6 +38,7 @@ abstract class VerificationViewHelper extends AbstractViewHelper
$this->registerArgument('skill', 'integer', 'ID of the Skill.'); $this->registerArgument('skill', 'integer', 'ID of the Skill.');
$this->registerArgument('skillSet', 'integer', 'ID of the SkillSet.'); $this->registerArgument('skillSet', 'integer', 'ID of the SkillSet.');
$this->registerArgument('type', 'string', 'Type of verification', false, 'self'); $this->registerArgument('type', 'string', 'Type of verification', false, 'self');
$this->registerArgument('campaign', 'int', 'ID of campaign', false, 0);
} }
public static function renderStatic( public static function renderStatic(