Permalink
Browse files

Add MidgardReflectorObject. Refs gh-46

  • Loading branch information...
1 parent d1e5c75 commit 1bfdc68326e390d9287d6f2bc22649cb89dd2c4d @piotras committed Sep 6, 2011
Showing with 391 additions and 1 deletion.
  1. +1 −1 config.m4
  2. +1 −0 midgard.c
  3. +2 −0 php_midgard.h
  4. +387 −0 php_midgard_reflector_object.c
View
@@ -52,7 +52,7 @@ if test "$PHP_MIDGARD2" != "no"; then
php_midgard_view.c php_midgard_storage.c php_reflection_workaround.c php_midgard_key_config_context.c \
php_midgard_key_config_file_context.c php_midgard_key_config.c php_midgard_key_config_file.c \
php_midgard_urlwrapper.c \
- php_midgard_query.c php_midgard_query_storage.c php_midgard_query_holders.c php_midgard_query_constraints.c \
+ php_midgard_query.c php_midgard_query_storage.c php_midgard_query_holders.c php_midgard_query_constraints.c php_midgard_reflector_object.c \
php_midgard_query_executors.c php_midgard_g_mainloop.c php_midgard_workspace_storage.c php_midgard_base_interface.c \
, $ext_shared)
PHP_ADD_EXTENSION_DEP(midgard2, spl)
View
@@ -373,6 +373,7 @@ PHP_MINIT_FUNCTION(midgard2)
PHP_MINIT(midgard2_object)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(midgard2_user)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(midgard2_view)(INIT_FUNC_ARGS_PASSTHRU);
+ PHP_MINIT(midgard2_reflector_object)(INIT_FUNC_ARGS_PASSTHRU);
/* Register midgard_metadata class */
static zend_class_entry midgard_metadata_class_entry;
View
@@ -220,6 +220,7 @@ PHP_MINIT_FUNCTION(midgard2_g_mainloop);
PHP_MINIT_FUNCTION(midgard2_workspaces);
PHP_MINIT_FUNCTION(midgard2_base_abstract);
PHP_MINIT_FUNCTION(midgard2_base_interface);
+PHP_MINIT_FUNCTION(midgard2_reflector_object);
zend_class_entry *php_midgard_get_baseclass_ptr(zend_class_entry *ce);
zend_class_entry *php_midgard_get_baseclass_ptr_by_name(const char *name TSRMLS_DC);
@@ -257,6 +258,7 @@ extern zend_class_entry *ce_midgard_error_exception;
extern zend_class_entry *php_midgard_datetime_class;
extern zend_class_entry *php_midgard_workspace_storage_class;
extern zend_class_entry *php_midgard_workspace_class;
+extern zend_class_entry *php_midgard_reflector_object_class;
#define __php_objstore_object(instance) ((php_midgard_gobject *)zend_object_store_get_object(instance TSRMLS_CC))
#define __php_gobject_ptr(instance) (__php_objstore_object(instance)->gobject)
Oops, something went wrong.

0 comments on commit 1bfdc68

Please sign in to comment.