mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@193 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0a49ee5406
commit
0b38226b7a
14 changed files with 414 additions and 202 deletions
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
||||
**/
|
||||
define('__DEBUG__', true);
|
||||
define('__DEBUG__', false);
|
||||
if(__DEBUG__) {
|
||||
|
||||
// php5이상이면 error handling을 handleError() 로 set
|
||||
|
|
|
|||
|
|
@ -131,16 +131,25 @@
|
|||
* @return object
|
||||
**/
|
||||
function delObjectVars($target_obj, $del_obj) {
|
||||
if(count(get_object_vars($target_obj))<1) return;
|
||||
if(count(get_object_vars($del_obj))<1) clone($target_obj);
|
||||
if(!is_object($target_obj)) return;
|
||||
if(!is_object($del_obj)) return;
|
||||
|
||||
if(is_object($target_var)) $var = clone($target_var);
|
||||
$target_vars = get_object_vars($target_obj);
|
||||
$del_vars = get_object_vars($del_obj);
|
||||
|
||||
foreach($del_obj as $key => $val) {
|
||||
unset($var->{$var_name});
|
||||
$target = array_keys($target_vars);
|
||||
$del = array_keys($del_vars);
|
||||
if(!count($target)||!count($del)) return $target_obj;
|
||||
|
||||
$return_obj = NULL;
|
||||
|
||||
$target_count = count($target);
|
||||
for($i=0;$i<$target_count;$i++) {
|
||||
$target_key = $target[$i];
|
||||
if(!in_array($target_key, $del)) $return_obj->{$target_key} = $target_obj->{$target_key};
|
||||
}
|
||||
|
||||
return $var;
|
||||
return $return_obj;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue