|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00026 require_once 'Zend/Service/DeveloperGarden/Response/BaseType.php'; 00027 00036 abstract class Zend_Service_DeveloperGarden_Response_ConferenceCall_ConferenceCallAbstract 00037 extends Zend_Service_DeveloperGarden_Response_BaseType 00038 { 00044 public function getResponse() 00045 { 00046 $r = new ReflectionClass($this); 00047 foreach ($r->getProperties() as $p) { 00048 $name = $p->getName(); 00049 if (strpos($name, 'Response') !== false) { 00050 return $p->getValue($this); 00051 } 00052 } 00053 return null; 00054 } 00055 00062 public function parse() 00063 { 00064 $retVal = $this->getResponse(); 00065 if ($retVal === null) { 00066 $this->statusCode = 9999; 00067 $this->statusMessage = 'Internal response property not found.'; 00068 } else { 00069 $this->statusCode = $retVal->getStatusCode(); 00070 $this->statusMessage = $retVal->getStatusMessage(); 00071 } 00072 parent::parse(); 00073 return $retVal; 00074 } 00075 }