summaryrefslogtreecommitdiff
path: root/include/classbase.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 23:54:54 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 23:54:54 +0100
commit681d1e6aa735568a492140d2307a89063e7aadb9 (patch)
tree98fa482ee64203b1ef75fb0e7c687d57f1abe20f /include/classbase.h
parent684f81e8bcbadc3d522e6557161275deaad4fd3b (diff)
__clone() method is now called directly after a clone operation (and when no custom __clone is registered)
Diffstat (limited to 'include/classbase.h')
-rw-r--r--include/classbase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/classbase.h b/include/classbase.h
index 0ea6ea4..fac9dbd 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -150,6 +150,13 @@ protected:
virtual int callCompare(Base *object1, Base *object2) const { return 1; }
/**
+ * Call the __clone and __destruct magic methods
+ * @param base
+ */
+ virtual void callClone(Base *base) const {}
+ virtual void callDestruct(Base *base) const {}
+
+ /**
* Call the __call(), __invoke() or __callStatic() method
* @param base Object to call on
* @param name Name of the method