private function processForm(Form_DropFolderConfigure $form, $formData, $dropFolderId = null)
 {
     if ($form->isValid($formData)) {
         $client = Infra_ClientHelper::getClient();
         $dropFolderPluginClient = Kaltura_Client_DropFolder_Plugin::get($client);
         $dropFolder = $form->getObject("Kaltura_Client_DropFolder_Type_DropFolder", $formData, false, true);
         unset($dropFolder->id);
         if (is_null($dropFolderId)) {
             $dropFolder->status = Kaltura_Client_DropFolder_Enum_DropFolderStatus::ENABLED;
             $responseDropFolder = $dropFolderPluginClient->dropFolder->add($dropFolder);
         } else {
             $responseDropFolder = $dropFolderPluginClient->dropFolder->update($dropFolderId, $dropFolder);
         }
         $form->setAttrib('class', 'valid');
         return true;
     } else {
         $form->populate($formData);
         return false;
     }
 }
 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);
 }