public function doAction(Zend_Controller_Action $action)
 {
     $action->getHelper('layout')->disableLayout();
     $request = $action->getRequest();
     $dropFolderId = $this->_getParam('drop_folder_id');
     $partnerId = $this->_getParam('new_partner_id');
     $dropFolderType = $this->_getParam('new_drop_folder_type');
     $dropFolderForm = null;
     $action->view->formValid = false;
     try {
         if ($request->isPost()) {
             $partnerId = $this->_getParam('partnerId');
             $dropFolderType = $this->_getParam('type');
             $dropFolderForm = new Form_DropFolderConfigure($partnerId, $dropFolderType);
             $action->view->formValid = $this->processForm($dropFolderForm, $request->getPost(), $dropFolderId);
         } else {
             if (!is_null($dropFolderId)) {
                 $client = Infra_ClientHelper::getClient();
                 $dropFolderPluginClient = Kaltura_Client_DropFolder_Plugin::get($client);
                 $dropFolder = $dropFolderPluginClient->dropFolder->get($dropFolderId);
                 $partnerId = $dropFolder->partnerId;
                 $dropFolderType = $dropFolder->type;
                 $dropFolderForm = new Form_DropFolderConfigure($partnerId, $dropFolderType);
                 $dropFolderForm->populateFromObject($dropFolder, false);
             } else {
                 $dropFolderForm = new Form_DropFolderConfigure($partnerId, $dropFolderType);
                 $dropFolderForm->getElement('partnerId')->setValue($partnerId);
             }
         }
     } catch (Exception $e) {
         $action->view->formValid = false;
         KalturaLog::err($e->getMessage() . "\n" . $e->getTraceAsString());
         $action->view->errMessage = $e->getMessage();
     }
     $action->view->form = $dropFolderForm;
 }
 private function disableFileHandlerType(Form_DropFolderConfigure $dropFolderForm, $fileHandlerTypeValue)
 {
     $fileHandlerType = $dropFolderForm->getElement('fileHandlerType');
     $fileHandlerType->setAttrib('style', 'display:none');
     $fileHandlerType->setLabel('');
     $fileHandlerTypeForView = $dropFolderForm->getElement('fileHandlerTypeForView');
     $fileHandlerTypeForView->setLabel('Ingestion Workflow:');
     $fileHandlerTypeForView->setAttrib('style', 'display:inline');
     $fileHandlerTypeForView->setValue($fileHandlerTypeValue);
 }