本文整理汇总了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