PluginProbe ʕ •ᴥ•ʔ
Search Regex / trunk
Search Regex vtrunk
trunk 1.4.12 1.4.13 1.4.14 1.4.15 1.4.16 2.0 2.0.1 2.1 2.2 2.2.1 2.3 2.3.1 2.3.2 2.3.3 2.4 2.4.1 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.1 3.1.1 3.1.2 3.2 3.3 3.3.0 3.3.1 3.4 3.4.1 3.4.2
search-regex / includes / context / type / class-delete.php
search-regex / includes / context / type Last commit date
class-add.php 5 months ago class-delete.php 5 months ago class-empty-type.php 5 months ago class-matched.php 5 months ago class-pair.php 5 months ago class-replace.php 5 months ago class-text.php 5 months ago class-value.php 5 months ago
class-delete.php
25 lines
1 <?php
2
3 namespace SearchRegex\Context\Type;
4
5 use SearchRegex\Context;
6
7 /**
8 * Context for a deleted value
9 */
10 class Delete extends Context\Type\Value {
11 const TYPE_DELETE = 'delete';
12
13 public function get_type() {
14 return self::TYPE_DELETE;
15 }
16
17 public function is_matched() {
18 return true;
19 }
20
21 public function needs_saving() {
22 return true;
23 }
24 }
25