示例#1
0
 public function djEditShowAction()
 {
     $js = $this->_getParam('data');
     $data = array();
     //need to convert from serialized jQuery array.
     foreach ($js as $j) {
         $data[$j["name"]] = $j["value"];
     }
     //update cc_show
     $show = new Application_Model_Show($data["add_show_id"]);
     $show->setAirtimeAuthFlag($data["cb_airtime_auth"]);
     $show->setCustomAuthFlag($data["cb_custom_auth"]);
     $show->setCustomUsername($data["custom_username"]);
     $show->setCustomPassword($data["custom_password"]);
     $this->view->edit = true;
 }