diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 05:23:34 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 05:23:34 -0700 |
commit | 49ac629257835426c311fb7b92b23a9138a9d77b (patch) | |
tree | d7f8d6d843206ecdf29b3877a5e7faf7815f3f24 /src | |
parent | 9e1ecc534bace7d00a265a49018c0148a56361ae (diff) |
Work in progress on implementing classes
Diffstat (limited to 'src')
-rw-r--r-- | src/class.cpp | 11 | ||||
-rw-r--r-- | src/extension.cpp | 18 | ||||
-rw-r--r-- | src/includes.h | 3 |
3 files changed, 32 insertions, 0 deletions
diff --git a/src/class.cpp b/src/class.cpp new file mode 100644 index 0000000..ebbc9ae --- /dev/null +++ b/src/class.cpp @@ -0,0 +1,11 @@ +/** + * Class.cpp + * + * Implementation for the class entry + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ +#include "includes.h" + + 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 */ } diff --git a/src/includes.h b/src/includes.h index 41989c8..8eae5f7 100644 --- a/src/includes.h +++ b/src/includes.h @@ -45,6 +45,9 @@ #include "../include/member.h" #include "../include/parameters.h" #include "../include/function.h" +#include "../include/base.h" +#include "../include/class.h" +#include "../include/classinfo.h" #include "../include/extension.h" #include "../include/globals.h" |