Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (32 sloc) 516 Bytes
<?php
namespace DMS\Filter\Rules;
/**
* Trim Rule
*
* @package DMS
* @subpackage Filter
*
*/
class Trim extends Rule
{
/**
* Comma separated string of allowed tags
*
* @var string
*/
public $trimCharlist = null;
/**
* {@inheritDoc}
*/
public function applyFilter($value)
{
return trim($value, $this->trimCharlist);
}
/**
* {@inheritDoc}
*/
public function getDefaultOption()
{
return 'trimCharlist';
}
}
Something went wrong with that request. Please try again.