메뉴 추가 대상에서 게시판일 경우 게시판 그룹 표시하기 #73

This commit is contained in:
thisgun
2017-05-17 14:09:05 +09:00
parent 254583a135
commit edef3b961a
4 changed files with 86 additions and 5 deletions

View File

@ -3260,6 +3260,27 @@ function check_write_token($bo_table)
return true;
}
function get_call_func_cache($func, $args=array()){
static $cache = array();
$key = md5(serialize($args));
if( isset($cache[$func]) && isset($cache[$func][$key]) ){
return $cache[$func][$key];
}
$result = null;
try{
$cache[$func][$key] = $result = call_user_func_array($func, $args);
} catch (Exception $e) {
return null;
}
return $result;
}
// include 하는 경로에 data file 경로가 포함되어 있는지 체크합니다.
function is_include_path_check($path='')
{