Exemplo n.º 1
0
 public function testAction()
 {
     $this->doNotRender();
     set_time_limit(0);
     ini_set('memory_limit', '-1');
     Debug::setEchoMode();
     Debug::log('Donezo!');
 }
Exemplo n.º 2
0
 public function testAction()
 {
     $this->doNotRender();
     set_time_limit(0);
     ini_set('memory_limit', '-1');
     Debug::setEchoMode();
     // -------- START HERE -------- //
     \PVL\CentovaCast::sync();
     Debug::log('CCast Sync Complete');
     $station = \Entity\Station::getRepository()->findOneBy(array('name' => 'PonyvilleFM'));
     $tracks = \PVL\CentovaCast::fetchTracks($station);
     Debug::print_r($tracks);
     // -------- END HERE -------- //
     Debug::log('Done!');
 }
Exemplo n.º 3
0
 public function syncAction()
 {
     $this->acl->checkPermission('administer all');
     $this->doNotRender();
     \PVL\Debug::setEchoMode(TRUE);
     \PVL\Debug::startTimer('sync_task');
     $type = $this->getParam('type', 'nowplaying');
     switch ($type) {
         case "long":
             \PVL\SyncManager::syncLong();
             break;
         case "medium":
             \PVL\SyncManager::syncMedium();
             break;
         case "short":
             \PVL\SyncManager::syncShort();
             break;
         case "nowplaying":
         default:
             $segment = $this->getParam('segment', 1);
             define('NOWPLAYING_SEGMENT', $segment);
             \PVL\SyncManager::syncNowplaying(true);
             break;
     }
     \PVL\Debug::endTimer('sync_task');
     \PVL\Debug::log('Sync task complete. See log above.');
 }