Removed scheduleController private variable, currentUser

Removed showService private variable, currentUser
This commit is contained in:
denise 2013-03-27 09:02:49 -04:00
parent 418bf0b5ff
commit e259639d1a
3 changed files with 32 additions and 75 deletions

View file

@ -73,6 +73,11 @@ class Application_Service_ShowFormService
$formRepeats->populate(array('add_show_end_date' => date("Y-m-d")));
}
public function delegateShowInstanceFormPopulation($forms)
{
$this->populateFormWhat($forms["what"]);
}
/**
*
* Delegates populating each show form with the appropriate
@ -80,7 +85,7 @@ class Application_Service_ShowFormService
*
* @param $forms
*/
public function delegateFormPopulation($forms)
public function delegateShowFormPopulation($forms)
{
$this->populateFormWhat($forms["what"]);
$this->populateFormWhen($forms["when"]);

View file

@ -9,20 +9,19 @@ define("REPEAT_MONTHLY_WEEKLY", 3);
class Application_Service_ShowService
{
private $ccShow;
private $currentUser;
public function __construct($showId=null)
{
if (!is_null($showId)) {
$this->ccShow = CcShowQuery::create()->findPk($showId);
}
$service_user = new Application_Service_UserService();
$this->currentUser = $service_user->getCurrentUser();
}
public function addUpdateShow($showData, $isUpdate=false)
{
$service_user = new Application_Service_UserService();
$currentUser = $service_user->getCurrentUser();
if ($showData["add_show_repeats"]) {
$repeatType = $showData["add_show_repeat_type"];
if ($showData["add_show_repeat_type"] == 2) {