summaryrefslogtreecommitdiff
path: root/src/extension.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 05:23:34 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 05:23:34 -0700
commit49ac629257835426c311fb7b92b23a9138a9d77b (patch)
treed7f8d6d843206ecdf29b3877a5e7faf7815f3f24 /src/extension.cpp
parent9e1ecc534bace7d00a265a49018c0148a56361ae (diff)
Work in progress on implementing classes
Diffstat (limited to 'src/extension.cpp')
-rw-r--r--src/extension.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/extension.cpp b/src/extension.cpp
index b0d78f2..7f6c9dd 100644
--- a/src/extension.cpp
+++ b/src/extension.cpp
@@ -247,6 +247,24 @@ zend_module_entry *Extension::module()
}
/**
+ * Initialize the extension
+ * @return bool
+ */
+bool Extension::initialize()
+{
+ // loop through the classes
+ for (auto iter = _classes.begin(); iter != _classes.end(); iter++)
+ {
+ // initialize the class
+ (*iter)->initialize();
+ }
+
+ // done
+ return true;
+}
+
+
+/**
* End of namespace
*/
}