Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Request/Stdin.php
Go to the documentation of this file.
00001 <?php
00024 require_once 'Zend/XmlRpc/Request.php';
00025 
00039 class Zend_XmlRpc_Request_Stdin extends Zend_XmlRpc_Request
00040 {
00045     protected $_xml;
00046 
00056     public function __construct()
00057     {
00058         $fh = fopen('php://stdin', 'r');
00059         if (!$fh) {
00060             $this->_fault = new Zend_XmlRpc_Server_Exception(630);
00061             return;
00062         }
00063 
00064         $xml = '';
00065         while (!feof($fh)) {
00066             $xml .= fgets($fh);
00067         }
00068         fclose($fh);
00069 
00070         $this->_xml = $xml;
00071 
00072         $this->loadXml($xml);
00073     }
00074 
00080     public function getRawRequest()
00081     {
00082         return $this->_xml;
00083     }
00084 }
 All Data Structures Namespaces Files Functions Variables Enumerations