mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 10:41:25 +02:00
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
20 lines
350 B
PHP
20 lines
350 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Filters;
|
|
|
|
/**
|
|
* Matches textual content with a substring match from the beginning
|
|
* of the string.
|
|
*
|
|
* <code>
|
|
* "abcdefg" => "defg" # false
|
|
* "abcdefg" => "abcd" # true
|
|
* </code>
|
|
*/
|
|
class StartsWithFilter extends PartialMatchFilter {
|
|
|
|
protected function getMatchPattern($value) {
|
|
return "$value%";
|
|
}
|
|
}
|