Ubiquity  2.0.3
php rapid development framework
CRUDMessage.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class CRUDMessage {
6  private $message;
7  private $type;
8  private $icon;
9  private $title;
10  private $timeout;
11  private $_message;
12 
13  public function __construct($message,$title="",$type="",$icon="",$timeout=null){
14  $this->message=$message;
15  $this->title=$title;
16  $this->type=$type;
17  $this->icon=$icon;
18  $this->timeout=$timeout;
19  $this->_message=$message;
20  }
21 
25  public function getMessage() {
26  return $this->_message;
27  }
28 
32  public function getType() {
33  return $this->type;
34  }
35 
39  public function getIcon() {
40  return $this->icon;
41  }
42 
46  public function getTitle() {
47  return $this->title;
48  }
49 
53  public function setMessage($message) {
54  $this->message = $message;
55  }
56 
61  public function setType($type) {
62  $this->type = $type;
63  return $this;
64  }
65 
70  public function setIcon($icon) {
71  $this->icon = $icon;
72  return $this;
73  }
74 
79  public function setTitle($title) {
80  $this->title = $title;
81  return $this;
82  }
83 
87  public function getTimeout() {
88  return $this->timeout;
89  }
90 
95  public function setTimeout($timeout) {
96  $this->timeout = $timeout;
97  return $this;
98  }
104  public function parse($value){
105  $this->_message=str_replace("{value}", $value, $this->message);
106  return $this;
107  }
108 
109 }
110 
__construct($message, $title="", $type="", $icon="", $timeout=null)
Definition: CRUDMessage.php:13