本文整理匯總了PHP中company::updateCache方法的典型用法代碼示例。如果您正苦於以下問題:PHP company::updateCache方法的具體用法?PHP company::updateCache怎麽用?PHP company::updateCache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類company
的用法示例。
在下文中一共展示了company::updateCache方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: SplitWord
if (is_array($_POST['photo'])) {
$_POST['thumbnail'] = $_POST['photo'][0]['photo'];
} else {
$_POST['thumbnail'] = $_POST['photo'];
}
$_POST['photo'] = array_values($_POST['photo']);
$_POST['video'] = array_values($_POST['video']);
#自動拆字生成tag
if (empty($_POST['tag'])) {
$objSP = new SplitWord();
$_POST['tag'] = $objSP->SplitRMM($_POST['title'], false);
}
//print_r($_POST);//exit;
$_POST = array_merge($arrInfo, $_POST);
$objWebInit->saveInfo($_POST, 1);
$objWebInit->updateCache($_POST['id'], $_POST['type_id'], $arrMOutput);
check::WindowLocation('index.php', 'page=' . $_GET['page']);
}
if (!is_array($arrMType) || empty($arrMType)) {
$arrMType = $objWebInit->getTypeList();
$arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
// 輸出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['FileCallPath'] = $objWebInit->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['FileListPicSize'] = $objWebInit->arrGPic['FileListPicSize'];
$arrMOutput["smarty_assign"]['arrData'] = $arrInfo;
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
$arrMOutput["smarty_assign"]['action_type'] = "save";
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'submit.htm';
$objWebInit->output($arrMOutput);
示例2: SplitWord
}
if ($_POST['summary'] == '') {
$_POST['summary'] = check::csubstr(trim(str_replace(" ", " ", str_replace("\r\n", "", strip_tags($_POST['intro'])))), 0, $arrGWeb['db_summary_len']);
}
if ($_POST['title'] != '') {
$_POST['title_md5'] = md5($_POST['title']);
}
if (is_array($_POST['photo'])) {
$_POST['thumbnail'] = $_POST['photo'][0]['photo'];
} else {
$_POST['thumbnail'] = $_POST['photo'];
}
//自動拆字生成tag
if (empty($_POST['tag'])) {
$objSP = new SplitWord();
$_POST['tag'] = $objSP->SplitRMM($_POST['title'], false);
}
$objWebInit->saveInfo($_POST, 0);
$objWebInit->updateCache($objWebInit->lastInsertIdG(), $_POST['type_id'], $arrMOutput);
check::WindowLocation('index.php', 'page=' . $_GET['page']);
}
if (!is_array($arrMType) || empty($arrMType)) {
$arrMType = $objWebInit->getTypeList();
$arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
// 輸出到模板
$arrMOutput["template_file"] = "admin.html";
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
$arrMOutput["smarty_assign"]['FileListPicSize'] = $objWebInit->arrGPic['FileListPicSize'];
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['admin_main_dir'] . 'submit.htm';
$objWebInit->output($arrMOutput);