Highway to PSR2
[openemr.git] / interface / super / rules / library / RuleAction.php
blob91cc74a86a709a52124a95059e52e13caa4c5852
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 RuleAction
12 * @author aron
14 class RuleAction
16 var $guid;
17 var $id;
18 var $category;
19 var $categoryLbl;
20 var $item;
21 var $itemLbl;
22 var $reminderLink;
23 var $reminderMessage;
24 var $customRulesInput;
25 var $groupId;
26 var $targetCriteria;
28 function __construct()
32 function getTitle()
34 return getLabel($this->category, 'rule_action_category') . " - " . getLabel($this->item, 'rule_action');
37 function getCategoryLabel()
39 if (!$this->categoryLbl) {
40 $this->categoryLbl = getLabel($this->category, 'rule_action_category');
43 return $this->categoryLbl;
46 function getItemLabel()
48 if (!$this->itemLbl) {
49 $this->itemLbl = getLabel($this->item, 'rule_action');
52 return $this->itemLbl;