projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f685496
)
Added __unset() to catch unsetting of missing fields/attributes
author
Roland Häder
<roland@mxchange.org>
Tue, 29 Mar 2011 18:16:48 +0000
(18:16 +0000)
committer
Roland Häder
<roland@mxchange.org>
Tue, 29 Mar 2011 18:16:48 +0000
(18:16 +0000)
inc/classes/main/class_BaseFrameworkSystem.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/class_BaseFrameworkSystem.php
b/inc/classes/main/class_BaseFrameworkSystem.php
index 8cbcd1df138445eda6ddd1767495a04c9eeea1eb..85dd986a4e0a2626a95d26028876518c01b9184e 100644
(file)
--- a/
inc/classes/main/class_BaseFrameworkSystem.php
+++ b/
inc/classes/main/class_BaseFrameworkSystem.php
@@
-347,6
+347,18
@@
class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
));
}
+ /**
+ * Magic function to catch unsetting of missing fields/attributes
+ *
+ * @param $name Name of the field/attribute
+ * @return void
+ */
+ public final function __unset ($name) {
+ $this->debugBackTrace(sprintf("Tried to unset a missing field. name=%s",
+ $name
+ ));
+ }
+
/**
* Setter for database result instance
*