INIT_CLASS_ENTRY()
Submitted by Katrina Niolet on Thu, 06/21/2007 - 04:03.
Convienience macro for setting the properties of a simple class entry
INIT_CLASS_ENTRY(class_container, class_name, functions)
| type | parameter | description |
|---|---|---|
| zend_class_entry | class_container | The container in which to store this class type |
| char* | class_name | The name of the class as seen in userspace |
| zend_function_entry[] | functions | Array of methods |
You should use this macro to set class entry properties when you do not need to specify methods for equivalents to __get(), __set(), __call(), __isset(), or __unset().
This is an alias for INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
Example:
zend_class_entry ce;
INIT_CLASS_ENTRY(ce,"myClass",myClass_methods);
