Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Amf/Value/MessageBody.php
Go to the documentation of this file.
00001 <?php
00039 class Zend_Amf_Value_MessageBody
00040 {
00046     protected $_targetUri = "";
00047 
00064     protected $_responseUri = "";
00065 
00079     protected $_data;
00080 
00089     public function __construct($targetUri, $responseUri, $data)
00090     {
00091         $this->setTargetUri($targetUri);
00092         $this->setResponseUri($responseUri);
00093         $this->setData($data);
00094     }
00095 
00101     public function getTargetUri()
00102     {
00103         return $this->_targetUri;
00104     }
00105 
00112     public function setTargetUri($targetUri)
00113     {
00114         if (null === $targetUri) {
00115             $targetUri = '';
00116         }
00117         $this->_targetUri = (string) $targetUri;
00118         return $this;
00119     }
00120 
00126     public function getResponseUri()
00127     {
00128         return $this->_responseUri;
00129     }
00130 
00137     public function setResponseUri($responseUri)
00138     {
00139         if (null === $responseUri) {
00140             $responseUri = '';
00141         }
00142         $this->_responseUri = $responseUri;
00143         return $this;
00144     }
00145 
00151     public function getData()
00152     {
00153         return $this->_data;
00154     }
00155 
00162     public function setData($data)
00163     {
00164         $this->_data = $data;
00165         return $this;
00166     }
00167 
00174     public function setReplyMethod($methodName)
00175     {
00176         if (!preg_match('#^[/?]#', $methodName)) {
00177             $this->_targetUri = rtrim($this->_targetUri, '/') . '/';
00178         }
00179         $this->_targetUri = $this->_targetUri . $methodName;
00180         return $this;
00181     }
00182 }
 All Data Structures Namespaces Files Functions Variables Enumerations