本文整理匯總了PHP中SugarCleaner::getInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP SugarCleaner::getInstance方法的具體用法?PHP SugarCleaner::getInstance怎麽用?PHP SugarCleaner::getInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SugarCleaner
的用法示例。
在下文中一共展示了SugarCleaner::getInstance方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: return_module_language
global $mod_strings, $timedate;
$mod_strings = return_module_language($current_language, 'KBDocuments');
$prefix = '';
$do_final_move = 0;
$KBDocument = BeanFactory::getBean('KBDocuments');
$KBRevision = BeanFactory::getBean('KBDocumentRevisions');
if (isset($_REQUEST['record'])) {
$KBDocument->retrieve($_REQUEST['record']);
}
if (!$KBDocument->ACLAccess('Save')) {
ACLController::displayNoAccess(true);
sugar_cleanup(true);
}
//Clean the HTML body before we start operating on input.
if (isset($_REQUEST['body_html'])) {
$_REQUEST['body_html'] = SugarCleaner::getInstance()->cleanHtml($_REQUEST['body_html'], true);
}
$KBDocument = populateFromPost('', $KBDocument);
//set check_notify flag
$check_notify = false;
if (!empty($KBDocument->case_id)) {
$KBDocument->parent_id = $KBDocument->case_id;
$KBDocument->parent_type = "Cases";
}
if (!isset($_POST['is_external'])) {
$KBDocument->is_external_article = 0;
} else {
$KBDocument->is_external_article = 1;
}
if (isset($KBDocument->id)) {
//retrieve the existing document before saving the current