Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jobs] adds a stripTagText to our garden of input-elements
(#5803)
- Loading branch information
1 parent
d6207b6
commit 1a1db92
Showing
13 changed files
with
124 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* YAWIK | ||
* | ||
* @filesource | ||
* @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) | ||
* @license MIT | ||
* @author weitz@cross-solution.de | ||
*/ | ||
|
||
namespace Core\Filter; | ||
|
||
use Zend\Filter\FilterInterface; | ||
use Zend\Filter\Exception; | ||
|
||
class StripTags implements FilterInterface | ||
{ | ||
public function filter($value) | ||
{ | ||
return strip_tags($value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* YAWIK | ||
* | ||
* @filesource | ||
* @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) | ||
* @license MIT | ||
* @author weitz@cross-solution.de | ||
*/ | ||
|
||
namespace Core\Form\Element; | ||
|
||
use Zend\Form\Element\Text; | ||
use Zend\InputFilter\InputProviderInterface; | ||
use Zend\Stdlib\ArrayUtils; | ||
|
||
class StrippedTagText extends Text implements InputProviderInterface | ||
{ | ||
public function __construct($name = null, $options = array()) | ||
{ | ||
parent::__construct($name, $options); | ||
} | ||
|
||
public function getInputSpecification() | ||
{ | ||
$specs = array( | ||
'name' => $this->getName(), | ||
'filters' => array( | ||
array('name' => 'Core/StripTags'), | ||
), | ||
); | ||
return $specs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters