33 lines
655 B
PHP
33 lines
655 B
PHP
<?php
|
|
|
|
class RecorderController extends Zend_Controller_Action
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
$ajaxContext = $this->_helper->getHelper('contextSwitch');
|
|
$ajaxContext->addActionContext('get-show-schedule', 'json')
|
|
->initContext();
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
// action body
|
|
}
|
|
|
|
public function getShowScheduleAction()
|
|
{
|
|
//$from = $this->_getParam("from");
|
|
//$to = $this->_getParam("to");
|
|
|
|
$today_timestamp = date("Y-m-d H:i:s");
|
|
|
|
$this->view->shows = Show::getShows($today_timestamp, null, $excludeInstance=NULL, $onlyRecord=TRUE);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|