本文整理汇总了PHP中DocumentManager::postDocumentUpload方法的典型用法代码示例。如果您正苦于以下问题:PHP DocumentManager::postDocumentUpload方法的具体用法?PHP DocumentManager::postDocumentUpload怎么用?PHP DocumentManager::postDocumentUpload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocumentManager
的用法示例。
在下文中一共展示了DocumentManager::postDocumentUpload方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handleRequest
//.........这里部分代码省略.........
}
$view = new StateUI();
$this->content = $view->display();
break;
case 'showEditAdmins':
$view = new UI\AdminUI();
$this->content = $view->display();
break;
case 'edit_admins':
if (isset($_REQUEST['add'])) {
// Add user in REQUEST to administrator list for the department in REQUEST.
Admin::add($_REQUEST['username'], $_REQUEST['department_id']);
} else {
if (isset($_REQUEST['del'])) {
// Delete the user in REQUEST from department in REQUEST.
Admin::del($_REQUEST['username'], $_REQUEST['department_id']);
} else {
if (isset($_REQUEST['user_complete'])) {
$users = Admin::searchUsers($_REQUEST['term']);
echo json_encode($users);
exit;
}
}
}
$view = new UI\AdminUI();
$this->content = $view->display();
break;
case 'pdf':
$i = InternshipFactory::getInternshipById($_REQUEST['internship_id']);
$emgContacts = EmergencyContactFactory::getContactsForInternship($i);
$pdfView = new InternshipContractPdfView($i, $emgContacts);
$pdf = $pdfView->getPdf();
$pdf->output();
exit;
case 'upload_document_form':
$docManager = new DocumentManager();
echo $docManager->edit();
exit;
break;
case 'post_document_upload':
$docManager = new DocumentManager();
$docManager->postDocumentUpload();
break;
case 'delete_document':
$doc = new InternDocument($_REQUEST['doc_id']);
$doc->delete();
\NQ::simple('intern', \Intern\UI\NotifyUI::SUCCESS, 'Document deleted.');
\NQ::close();
\PHPWS_Core::goBack();
break;
case 'addEmergencyContact':
$ctrl = new Command\AddEmergencyContact();
$ctrl->execute();
break;
case 'removeEmergencyContact':
$ctrl = new Command\RemoveEmergencyContact();
$ctrl->execute();
break;
case 'edit_faculty':
$facultyUI = new UI\FacultyUI();
$this->content = $facultyUI->display();
break;
case 'getFacultyListForDept':
$ctrl = new Command\GetFacultyListForDept();
$ctrl->execute();
break;
case 'restFacultyById':
$ctrl = new Command\RestFacultyById();
$ctrl->execute();
break;
case 'facultyDeptRest':
$ctrl = new Command\FacultyDeptRest();
$ctrl->execute();
break;
case 'GetSearchSuggestions':
$ctrl = new Command\GetSearchSuggestions();
$ctrl->execute();
break;
case 'GetAvailableStates':
$ctrl = new Command\GetAvailableStates();
$ctrl->execute();
break;
case 'GetAvailableCountries':
$ctrl = new Command\GetAvailableCountries();
$ctrl->execute();
break;
case 'GetDepartments':
$ctrl = new Command\GetDepartments();
$ctrl->execute();
break;
case 'GetAvailableTerms':
$ctrl = new Command\GetAvailableTerms();
$ctrl->execute();
break;
default:
$menu = new UI\InternMenu();
$this->content = $menu->display();
break;
}
}