Added comments to Schedule Service

This commit is contained in:
drigato 2013-02-25 09:15:03 -05:00
parent 22f52ca195
commit 3e49421221
3 changed files with 14 additions and 5 deletions

View File

@ -871,6 +871,7 @@ class ScheduleController extends Zend_Controller_Action
$data[$j["name"]] = $j["value"];
}
// TODO: move this to js
$data['add_show_hosts'] = $this->_getParam('hosts');
$data['add_show_day_check'] = $this->_getParam('days');

View File

@ -1220,10 +1220,9 @@ SQL;
$controller->view->who = $formWho;
$controller->view->style = $formStyle;
$controller->view->live = $formLive;
$controller->view->rr = $formRecord;
$controller->view->absoluteRebroadcast = $formAbsoluteRebroadcast;
$controller->view->rebroadcast = $formRebroadcast;
$controller->view->rr = $formRecord;
$controller->view->absoluteRebroadcast = $formAbsoluteRebroadcast;
$controller->view->rebroadcast = $formRebroadcast;
//$controller->view->addNewShow = !$editShow;
//$controller->view->form = $controller->view->render('schedule/add-show-form.phtml');
return false;

View File

@ -2,6 +2,13 @@
class Application_Service_ScheduleService
{
/*
* Form stuff begins here
* Typically I would keep form creation and validation
* in the controller but since shows require 9 forms,
* the controller will become too fat.
* Maybe we should create a special form show service?
*/
/**
*
* @return array of schedule forms
@ -78,7 +85,9 @@ class Application_Service_ScheduleService
{
}
/*
* Form stuff ends
*/
/**
*
* Creates a new show if form data is valid