From 06fc7d82a08e245f5980ac6e1b1ef3f4bd379deb Mon Sep 17 00:00:00 2001 From: Stefan Scheungrab Date: Thu, 23 Jul 2015 14:29:15 +0200 Subject: [PATCH] Director/PropertyModifier: Create first basic property modifiers refs: #9707 --- .../PropertyModifierLowercase.php | 2 +- .../PropertyModifierRegexReplace.php | 15 +++++++++++++++ .../PropertyModifier/PropertyModifierReplace.php | 15 +++++++++++++++ .../PropertyModifierStripDomain.php | 15 +++++++++++++++ .../PropertyModifierSubstring.php | 15 +++++++++++++++ .../PropertyModifierUppercase.php | 15 +++++++++++++++ 6 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 library/Director/PropertyModifier/PropertyModifierRegexReplace.php create mode 100644 library/Director/PropertyModifier/PropertyModifierReplace.php create mode 100644 library/Director/PropertyModifier/PropertyModifierStripDomain.php create mode 100644 library/Director/PropertyModifier/PropertyModifierSubstring.php create mode 100644 library/Director/PropertyModifier/PropertyModifierUppercase.php diff --git a/library/Director/PropertyModifier/PropertyModifierLowercase.php b/library/Director/PropertyModifier/PropertyModifierLowercase.php index fe09287e..ecbfef29 100644 --- a/library/Director/PropertyModifier/PropertyModifierLowercase.php +++ b/library/Director/PropertyModifier/PropertyModifierLowercase.php @@ -1,6 +1,6 @@ settings['pattern'], $this->settings['replacement'], $value); + } + +} diff --git a/library/Director/PropertyModifier/PropertyModifierReplace.php b/library/Director/PropertyModifier/PropertyModifierReplace.php new file mode 100644 index 00000000..c96b682c --- /dev/null +++ b/library/Director/PropertyModifier/PropertyModifierReplace.php @@ -0,0 +1,15 @@ +settings['string'], $this->settings['replacement'], $value); + } + +} diff --git a/library/Director/PropertyModifier/PropertyModifierStripDomain.php b/library/Director/PropertyModifier/PropertyModifierStripDomain.php new file mode 100644 index 00000000..c778fd19 --- /dev/null +++ b/library/Director/PropertyModifier/PropertyModifierStripDomain.php @@ -0,0 +1,15 @@ +settings['domain'], "", $value); + } + +} diff --git a/library/Director/PropertyModifier/PropertyModifierSubstring.php b/library/Director/PropertyModifier/PropertyModifierSubstring.php new file mode 100644 index 00000000..2bb34a34 --- /dev/null +++ b/library/Director/PropertyModifier/PropertyModifierSubstring.php @@ -0,0 +1,15 @@ +settings['start'], $this->settings['end'] - $this->settings['start']); + } + +} diff --git a/library/Director/PropertyModifier/PropertyModifierUppercase.php b/library/Director/PropertyModifier/PropertyModifierUppercase.php new file mode 100644 index 00000000..b7b97d41 --- /dev/null +++ b/library/Director/PropertyModifier/PropertyModifierUppercase.php @@ -0,0 +1,15 @@ +