fix: fix ci (#7614)
[openemr.git] / interface / super / rules / library / RuleCriteriaSimpleText.php
blob7f7e7c3cb95e49243269213ccf4e5b5e364e24b6
1 <?php
3 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 /**
11 * Description of RuleCriteriaSimpleText
13 * @author aron
15 abstract class RuleCriteriaSimpleText extends RuleCriteria
17 var $title;
18 var $value;
20 function __construct($title, $value)
22 $this->title = $title;
23 $this->value = $value;
26 function getRequirements()
28 return $this->value;
31 function getTitle()
33 return $this->title;
36 function getView()
38 return "simple_text_criteria.php";
41 function updateFromRequest()
43 parent::updateFromRequest();
44 $value = _post("fld_value");
45 $this->value = $value;