Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Service/WindowsAzure/Storage/QueueMessage.php
Go to the documentation of this file.
00001 <?php
00026 require_once 'Zend/Service/WindowsAzure/Exception.php';
00027 
00028 
00043 class Zend_Service_WindowsAzure_Storage_QueueMessage
00044 {
00050     protected $_data = null;
00051     
00062     public function __construct($messageId, $insertionTime, $expirationTime, $popReceipt, $timeNextVisible, $messageText) 
00063     {
00064         $this->_data = array(
00065             'messageid'       => $messageId,
00066             'insertiontime'   => $insertionTime,
00067             'expirationtime'  => $expirationTime,
00068             'popreceipt'      => $popReceipt,
00069             'timenextvisible' => $timeNextVisible,
00070             'messagetext'     => $messageText
00071         );
00072     }
00073     
00080     public function __set($name, $value) {
00081         if (array_key_exists(strtolower($name), $this->_data)) {
00082             $this->_data[strtolower($name)] = $value;
00083             return;
00084         }
00085 
00086         throw new Exception("Unknown property: " . $name);
00087     }
00088 
00094     public function __get($name) {
00095         if (array_key_exists(strtolower($name), $this->_data)) {
00096             return $this->_data[strtolower($name)];
00097         }
00098 
00099         throw new Exception("Unknown property: " . $name);
00100     }
00101 }
 All Data Structures Namespaces Files Functions Variables Enumerations