CC-2084: Integrate RabbitMQ for immediate schedule updates and commands

This is the code for the server side to push the schedule to RabbitMQ.
Right now it is disabled and should cause no changes in behavior.

Also added comments to functions and formatted code correctly.
This commit is contained in:
paul.baranowski 2011-03-22 09:55:33 -04:00
parent d9431f95b4
commit d38e2adb58
9 changed files with 410 additions and 306 deletions

View file

@ -24,7 +24,7 @@ class ApiController extends Zend_Controller_Action
* in application/conf.php
*
* @return void
*
*
*/
public function versionAction()
{
@ -123,14 +123,10 @@ class ApiController extends Zend_Controller_Action
$to = $this->_getParam("to");
if (Schedule::ValidPypoTimeFormat($from) && Schedule::ValidPypoTimeFormat($to)) {
$result = Schedule::ExportRangeAsJson($from, $to);
$result['stream_metadata'] = array();
$result['stream_metadata']['format'] = Application_Model_Preference::GetStreamLabelFormat();
$result['stream_metadata']['station_name'] = Application_Model_Preference::GetStationName();
echo json_encode($result);
}
}
public function notifyMediaItemStartPlayAction()
{
global $CC_CONFIG;