mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1483 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5129945ad8
commit
1428de4284
1 changed files with 22 additions and 1 deletions
|
|
@ -59,6 +59,15 @@
|
|||
$this->variables[$key] = $val;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 추가된 변수의 key, value들을 추가
|
||||
**/
|
||||
function adds($object) {
|
||||
if( (is_object($object) && count(array_keys($object))) || (is_array($object) && count($object))) {
|
||||
foreach($object as $key => $val) $this->add($key, $val);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 추가된 변수의 key에 해당하는 값을 return
|
||||
**/
|
||||
|
|
@ -66,6 +75,19 @@
|
|||
return $this->variables[$key];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 추가된 변수의 key들에 해당하는 값을 return
|
||||
**/
|
||||
function gets() {
|
||||
$num_args = func_num_args();
|
||||
$args_list = func_get_args();
|
||||
for($i=0;$i<$num_args;$i++) {
|
||||
$key = $args_list[$i];
|
||||
$output->{$key} = $this->gets($key);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 추가변수 전체 return
|
||||
**/
|
||||
|
|
@ -86,6 +108,5 @@
|
|||
function toBoolean() {
|
||||
return $this->toBool();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue