SAAS-526: Change prefix from station name to station id

Just seeing if we can get the hosting id from a function in the Billing Controller
This commit is contained in:
drigato 2014-12-17 15:39:18 -05:00
parent ec1c8669c8
commit b094e59df3
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
<?php <?php
require_once 'php-amqplib/amqp.inc'; require_once 'php-amqplib/amqp.inc';
require_once 'BillingController.php';
class Application_Model_RabbitMq class Application_Model_RabbitMq
{ {
@ -111,6 +112,8 @@ class Application_Model_RabbitMq
// isn't a requirement for cloud storage, but put there as a safeguard, since // isn't a requirement for cloud storage, but put there as a safeguard, since
// all Airtime Pro stations will share the same bucket. // all Airtime Pro stations will share the same bucket.
$data['station_domain'] = $stationDomain = Application_Model_Preference::GetStationName(); $data['station_domain'] = $stationDomain = Application_Model_Preference::GetStationName();
Logging::info(BillingController::getClientCurrentAirtimeProduct());
$data['file_prefix'] = BillingController::getClientCurrentAirtimeProduct();
$jsonData = json_encode($data); $jsonData = json_encode($data);
//self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads'); //self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads');

View file

@ -48,6 +48,9 @@ set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_pat
//Propel classes. //Propel classes.
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path()); set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
//Controllers
set_include_path(APPLICATION_PATH . '/controllers' . PATH_SEPARATOR . get_include_path());
//Controller plugins. //Controller plugins.
set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path()); set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path());