set('status', $status); $reply->set('status_text', ''); return $reply; } public function clear() { $this->values = array(); } /** * Set a property on this reply * @chainable */ public function set($key, $value) { $this->values[$key] = $value; return $this; } public function send($status='') { if($status!='') $this->set('status', $status); //ksort($this->values); echo '#__GR2PROTO__'.$this->nl; foreach($this->values as $key => $value) { echo $key.'='.$value.$this->nl; } } }