/** * Push a message on the queue * * Examples: * <code> * $ironmq->postMessage("test_queue", "Hello world"); * </code> * <code> * $ironmq->postMessage("test_queue", "Test Message",e array( * 'timeout' => 120, * 'delay' => 2, * 'expires_in' => 2*24*3600 # 2 days * )); * </code> * * @param string $queue_name Name of the queue. * @param string $message * @param array $properties * @return mixed * @throws CException */ public function mqPostMessage($queue_name, $message, $properties = array()) { try { return $this->_mq->PostMessage($queue_name, $message, $properties); } catch (Exception $e) { Yii::log('Error in IronMQ: ' . $e->getMessage(), 'error', 'ext.yiiron'); throw new CException($e->getMessage()); } }