Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Amf/Request/Http.php
Go to the documentation of this file.
00001 <?php
00024 require_once 'Zend/Amf/Request.php';
00025 
00038 class Zend_Amf_Request_Http extends Zend_Amf_Request
00039 {
00044     protected $_rawRequest;
00045 
00055     public function __construct()
00056     {
00057         // php://input allows you to read raw POST data. It is a less memory
00058         // intensive alternative to $HTTP_RAW_POST_DATA and does not need any
00059         // special php.ini directives
00060         $amfRequest = file_get_contents('php://input');
00061 
00062         // Check to make sure that we have data on the input stream.
00063         if ($amfRequest != '') {
00064             $this->_rawRequest = $amfRequest;
00065             $this->initialize($amfRequest);
00066         } else {
00067             echo '<p>Zend Amf Endpoint</p>' ;
00068         }
00069     }
00070 
00076     public function getRawRequest()
00077     {
00078         return $this->_rawRequest;
00079     }
00080 }
 All Data Structures Namespaces Files Functions Variables Enumerations