mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1628 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3f649ab32a
commit
67572cebaf
39 changed files with 543 additions and 459 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue