CC-3174 : showbuilder

check into issue that propel doesn't return DateTime object in UTC.
using table tools to keep track of selected rows.
This commit is contained in:
Naomi Aro 2012-01-31 18:59:27 +01:00
parent 3f3117cf0e
commit fbda0e733b
16 changed files with 3999 additions and 437 deletions

View file

@ -6,7 +6,9 @@ class ShowbuilderController extends Zend_Controller_Action
public function init()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('schedule', 'json')
$ajaxContext->addActionContext('schedule-update', 'json')
->addActionContext('schedule-add', 'json')
->addActionContext('schedule-remove', 'json')
->addActionContext('builder-feed', 'json')
->initContext();
}
@ -55,6 +57,38 @@ class ShowbuilderController extends Zend_Controller_Action
$this->view->schedule = $showBuilder->GetItems();
}
public function scheduleAddAction() {
$request = $this->getRequest();
$id = $request->getParam("id", null);
$instance = $request->getParam("instance", null);
$items = $request->getParam("items", array());
}
public function scheduleRemoveAction()
{
$request = $this->getRequest();
$ids = $request->getParam("ids", null);
Logging::log($ids);
$json = array();
try {
Application_Model_Scheduler::removeItems($ids);
$json["message"]="success... maybe";
}
catch (Exception $e) {
$json["message"]=$e->getMessage();
Logging::log($e->getMessage());
}
$this->view->data = $json;
}
public function scheduleAction() {
$request = $this->getRequest();