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