git-svn-id: http://xe-core.googlecode.com/svn/trunk@1628 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-14 06:05:26 +00:00
parent 3f649ab32a
commit 67572cebaf
39 changed files with 543 additions and 459 deletions

View file

@ -63,7 +63,10 @@
* @brief 추가된 변수의 key, value들을 추가
**/
function adds($object) {
if( (is_object($object) && count(array_keys($object))) || (is_array($object) && count($object))) {
if(is_object($object)) {
$vars = get_object_vars($object);
foreach($vars as $key => $val) $this->add($key, $val);
} elseif(is_array($object)) {
foreach($object as $key => $val) $this->add($key, $val);
}
}