|
@@ -363,8 +363,8 @@ function _hx_field($o, $field) {
|
|
return $o->$field;
|
|
return $o->$field;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else if(isset($o->»dynamics[$field])) {
|
|
|
|
- return $o->»dynamics[$field];
|
|
|
|
|
|
+ } else if(isset($o->__dynamics[$field])) {
|
|
|
|
+ return $o->__dynamics[$field];
|
|
} else {
|
|
} else {
|
|
return array($o, $field);
|
|
return array($o, $field);
|
|
}
|
|
}
|
|
@@ -377,8 +377,8 @@ function _hx_field($o, $field) {
|
|
|
|
|
|
function _hx_get_object_vars($o) {
|
|
function _hx_get_object_vars($o) {
|
|
$a = array_keys(get_object_vars($o));
|
|
$a = array_keys(get_object_vars($o));
|
|
- if(isset($o->»dynamics))
|
|
|
|
- $a = array_merge($a, array_keys($o->»dynamics));
|
|
|
|
|
|
+ if(isset($o->__dynamics))
|
|
|
|
+ $a = array_merge($a, array_keys($o->__dynamics));
|
|
$arr = array();
|
|
$arr = array();
|
|
for($i=0;$i<count($a); $i++)
|
|
for($i=0;$i<count($a); $i++)
|
|
{
|
|
{
|
|
@@ -391,7 +391,7 @@ function _hx_get_object_vars($o) {
|
|
|
|
|
|
function _hx_has_field($o, $field) {
|
|
function _hx_has_field($o, $field) {
|
|
return
|
|
return
|
|
- (is_object($o) && (method_exists($o, $field) || isset($o->$field) || property_exists($o, $field) || isset($o->»dynamics[$field])))
|
|
|
|
|
|
+ (is_object($o) && (method_exists($o, $field) || isset($o->$field) || property_exists($o, $field) || isset($o->__dynamics[$field])))
|
|
||
|
|
||
|
|
(is_string($o) && (in_array($field, array('toUpperCase', 'toLowerCase', 'charAt', 'charCodeAt', 'indexOf', 'lastIndexOf', 'split', 'substr', 'toString', 'length'))))
|
|
(is_string($o) && (in_array($field, array('toUpperCase', 'toLowerCase', 'charAt', 'charCodeAt', 'indexOf', 'lastIndexOf', 'split', 'substr', 'toString', 'length'))))
|
|
;
|
|
;
|