1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8class Search_Type_PlainText implements Search_Type_Interface 9{ 10 private $value; 11 12 function __construct($value) 13 { 14 $this->value = $value; 15 } 16 17 function getValue() 18 { 19 return $this->value; 20 } 21 22 function filter(array $filters) 23 { 24 $value = $this->value; 25 26 foreach ($filters as $f) { 27 $value = $f->filter($value); 28 } 29 30 return new self($value); 31 } 32} 33