quick minor path updates (#1968)
[openemr.git] / interface / super / rules / library / RuleCriteriaSimpleText.php
blob94e42e4f8bbb151ee01cf3b8a81101b096febf99
1 <?php
2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 /**
10 * Description of RuleCriteriaSimpleText
12 * @author aron
14 abstract class RuleCriteriaSimpleText extends RuleCriteria
16 var $title;
17 var $value;
19 function __construct($title, $value)
21 $this->title = $title;
22 $this->value = $value;
25 function getRequirements()
27 return $this->value;
30 function getTitle()
32 return $this->title;
35 function getView()
37 return "simple_text_criteria.php";
40 function updateFromRequest()
42 parent::updateFromRequest();
43 $value = _post("fld_value");
44 $this->value = $value;