23 define(
"MSG_FORMAT_HTML",
"HTML");
24 define(
"MSG_FORMAT_JSON",
"JSON");
25 define(
"MSG_FORMAT_SOAP",
"SOAP");
55 if (func_num_args() != 4) {
58 $this->_sender = $sender;
59 $this->_context = $context;
60 $this->_action = $action;
70 $this->_sender = $sender;
88 $this->_context = $context;
106 $this->_action = $action;
124 $this->_format = $format;
143 $this->_data[$name] = $value;
153 $this->_data[$name] .= $value;
163 return array_key_exists($name, $this->_data);
178 return $this->_data[$name];
194 return ($this->_data[$name] ===
true || strtolower($this->_data[$name]) ===
"true"
195 || intval($this->_data[$name]) === 1);
214 $this->_data = &$data;
223 unset($this->_data[$name]);
231 $this->_data = array();
240 $str =
'sender='.$this->_sender.
', ';
241 $str .=
'context='.$this->_context.
', ';
242 $str .=
'action='.$this->_action.
', ';
243 $str .=
'format='.$this->_format.
', ';
244 $str .=
'data='.StringUtil::getDump($this->_data);
appendValue($name, $value)
throwEx($message, $file='', $line='')
ControllerMessages are sent between Controllers and are used to transfer data between them...
getBooleanValue($name, $default=false)
ControllerMessage($sender, $context, $action, $data)
getValue($name, $default=null)