当前位置: 首页>>代码示例>>C++>>正文


C++ INIT_CLASS_ENTRY函数代码示例

本文整理汇总了C++中INIT_CLASS_ENTRY函数的典型用法代码示例。如果您正苦于以下问题:C++ INIT_CLASS_ENTRY函数的具体用法?C++ INIT_CLASS_ENTRY怎么用?C++ INIT_CLASS_ENTRY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了INIT_CLASS_ENTRY函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: mongo_init_MongoCursorException

void mongo_init_MongoCursorException(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "MongoCursorException", MongoCursorException_methods);
	mongo_ce_CursorException = zend_register_internal_class_ex(&ce, mongo_ce_Exception, NULL TSRMLS_CC);

	zend_declare_property_null(mongo_ce_CursorException, "host", strlen("host"), ZEND_ACC_PRIVATE|ZEND_ACC_DEPRECATED  TSRMLS_CC);
}
开发者ID:AndrewHarkusha,项目名称:mongo-php-driver,代码行数:9,代码来源:cursor_exception.c

示例2: curlfile_register_class

void curlfile_register_class(TSRMLS_D)
{
	zend_class_entry ce;
	INIT_CLASS_ENTRY( ce, "CURLFile", curlfile_funcs );
	curl_CURLFile_class = zend_register_internal_class(&ce TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "name", sizeof("name")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "mime", sizeof("mime")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
	zend_declare_property_string(curl_CURLFile_class, "postname", sizeof("postname")-1, "", ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:JelleZijlstra,项目名称:php-src,代码行数:9,代码来源:curl_file.c

示例3: INIT_CLASS_ENTRY

/* This probably should be initialized somewhere, but I didn't find a suitable
 * place so it's wrapped in a function for now */
zend_class_entry *get_zend_standard_class_def() {
  if (!zend_standard_class_def) {
    zend_class_entry class_entry;

    INIT_CLASS_ENTRY(class_entry, "stdClass", nullptr);
    zend_standard_class_def =
      zend_register_internal_class(&class_entry TSRMLS_CC);
  }
  return zend_standard_class_def;
}
开发者ID:2bj,项目名称:hhvm,代码行数:12,代码来源:zend.cpp

示例4: init_distance_map

void init_distance_map(TSRMLS_D) {
    zend_class_entry ce;

    INIT_CLASS_ENTRY(ce, "distance_map", distance_map_methods);
    distance_map_ce = zend_register_internal_class(&ce TSRMLS_CC);
    distance_map_ce->create_object = create_distance_map_object;

    memcpy(&distance_map_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
    distance_map_handlers.clone_obj = clone_distance_map_object;
}
开发者ID:robchett,项目名称:flight_optimiser,代码行数:10,代码来源:distance_map.c

示例5: init_class

void init_class(TSRMLS_D) {
	zend_class_entry ce;
 
	INIT_CLASS_ENTRY(ce, "MTF", mtf_class_methods);
	//INIT_CLASS_ENTRY(ce, "MTF", Null);
	object = zend_register_internal_class(&ce TSRMLS_CC);
 
	zend_declare_property_string(object, "debug", strlen("debug"), "", ZEND_ACC_PUBLIC TSRMLS_CC);	
	zend_declare_property_string(object, "session", strlen("session"), "", ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:netkiller,项目名称:php_extension_class,代码行数:10,代码来源:mtf.c

示例6: NS

void NS(MqBufferS_Init) (TSRMLS_D) {
    zend_class_entry me_ce;

    // create class and make depend on "Exception"
    INIT_CLASS_ENTRY(me_ce,"MqBufferS", NS(MqBufferS_functions));
    NS(MqBufferS) = zend_register_internal_class(&me_ce TSRMLS_CC);

    // define additional properties "buf" to save the "struct MqBufferS *" pointer
    zend_declare_property_null(NS(MqBufferS), ID(__buf), ZEND_ACC_PRIVATE TSRMLS_CC);
}
开发者ID:BackupTheBerlios,项目名称:nhi1-svn,代码行数:10,代码来源:MqBufferS_php.c

示例7: mongo_init_MongoTimestamp

void mongo_init_MongoTimestamp(TSRMLS_D)
{
    zend_class_entry ce;

    INIT_CLASS_ENTRY(ce, "MongoTimestamp", MongoTimestamp_methods);
    mongo_ce_Timestamp = zend_register_internal_class(&ce TSRMLS_CC);

    zend_declare_property_long(mongo_ce_Timestamp, "sec", strlen("sec"), 0, ZEND_ACC_PUBLIC TSRMLS_CC);
    zend_declare_property_long(mongo_ce_Timestamp, "inc", strlen("inc"), 0, ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:hongaar,项目名称:hhvm,代码行数:10,代码来源:timestamp.cpp

示例8: class_init_apple_push

static void class_init_apple_push(void)
{
    zend_class_entry ce;
    INIT_CLASS_ENTRY(ce, "apple_push", apple_push_methods);
    apple_push_ce_ptr = zend_register_internal_class(&ce);
    zend_declare_property_string(apple_push_ce_ptr, "certificate", strlen("certificate"), "null", ZEND_ACC_STATIC TSRMLS_CC);
    zend_declare_property_string(apple_push_ce_ptr, "gateway", strlen("gateway"), "gateway.push.apple.com:2195", ZEND_ACC_STATIC TSRMLS_CC);
    zend_declare_property_string(apple_push_ce_ptr, "passphrase", strlen("passphrase"), "", ZEND_ACC_STATIC TSRMLS_CC);

}
开发者ID:tetang1230,项目名称:apple_push,代码行数:10,代码来源:apple_push.c

示例9: swoole_client_init

void swoole_client_init(int module_number TSRMLS_DC)
{
    INIT_CLASS_ENTRY(swoole_client_ce, "swoole_client", swoole_client_methods);
    swoole_client_class_entry_ptr = zend_register_internal_class(&swoole_client_ce TSRMLS_CC);

    zend_declare_property_long(swoole_client_class_entry_ptr, SW_STRL("errCode")-1, 0, ZEND_ACC_PUBLIC TSRMLS_CC);
    zend_declare_property_long(swoole_client_class_entry_ptr, SW_STRL("sock")-1, 0, ZEND_ACC_PUBLIC TSRMLS_CC);

    zend_hash_init(&php_sw_long_connections, 16, NULL, ZVAL_PTR_DTOR, 1);
}
开发者ID:hustxiaoc,项目名称:swoole-src,代码行数:10,代码来源:swoole_client.c

示例10: mongo_init_MongoDBRef

void mongo_init_MongoDBRef(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "MongoDBRef", MongoDBRef_methods);
	mongo_ce_DBRef = zend_register_internal_class(&ce TSRMLS_CC);

	zend_declare_property_string(mongo_ce_DBRef, "refKey", strlen("refKey"), "$ref", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC);
	zend_declare_property_string(mongo_ce_DBRef, "idKey", strlen("idKey"), "$id", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC TSRMLS_CC);
}
开发者ID:BumBliss,项目名称:mongo-php-driver,代码行数:10,代码来源:db_ref.c

示例11: register_focus_interface

int register_focus_interface()
{
	zend_class_entry temp_ce;
	INIT_CLASS_ENTRY(temp_ce, "Focus\\Focus", focusphp_focus_interface_functions);

	focusphp_focus_interface = zend_register_internal_class(&temp_ce TSRMLS_CC);
	focusphp_focus_interface->ce_flags |= ZEND_ACC_INTERFACE;

	return SUCCESS;
}
开发者ID:mylxsw,项目名称:FocusPHP-Ext,代码行数:10,代码来源:focusphp.c

示例12: php_driver_define_Custom

void
php_driver_define_Custom(TSRMLS_D)
{
  zend_class_entry ce;

  INIT_CLASS_ENTRY(ce, PHP_DRIVER_NAMESPACE "\\Custom", php_driver_custom_methods);
  php_driver_custom_ce = zend_register_internal_class(&ce TSRMLS_CC);
  zend_class_implements(php_driver_custom_ce TSRMLS_CC, 1, php_driver_value_ce);
  php_driver_custom_ce->ce_flags |= ZEND_ACC_ABSTRACT;
}
开发者ID:datastax,项目名称:php-driver,代码行数:10,代码来源:Custom.c

示例13: php_protocolbuffers_enum_descriptor_builder_class

void php_protocolbuffers_enum_descriptor_builder_class(TSRMLS_D)
{
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce, "ProtocolBuffersEnumDescriptorBuilder", protocolbuffers_enum_descriptor_builder_methods);
	php_protocol_buffers_enum_descriptor_builder_class_entry = zend_register_internal_class(&ce TSRMLS_CC);
	PHP_PROTOCOLBUFFERS_REGISTER_NS_CLASS_ALIAS(PHP_PROTOCOLBUFFERS_NAMESPACE, "EnumDescriptorBuilder", php_protocol_buffers_enum_descriptor_builder_class_entry);

	//zend_declare_property_null(php_protocol_buffers_enum_descriptor_builder_class_entry, ZEND_STRL("values")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
}
开发者ID:henryzxj,项目名称:php-protocolbuffers,代码行数:10,代码来源:enum_descriptor_builder.c

示例14: mongo_init_MongoCode

void mongo_init_MongoCode(TSRMLS_D)
{
	zend_class_entry ce;
	INIT_CLASS_ENTRY(ce, "MongoCode", MongoCode_methods);
	ce.create_object = php_mongo_type_object_new;
	mongo_ce_Code = zend_register_internal_class(&ce TSRMLS_CC);

	zend_declare_property_string(mongo_ce_Code, "code", strlen("code"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
	zend_declare_property_null(mongo_ce_Code, "scope", strlen("scope"), ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY  TSRMLS_CC);
}
开发者ID:alexvasilyev,项目名称:mongo-php-driver,代码行数:10,代码来源:code.c

示例15: rtv_init_rtvtemplate

void rtv_init_rtvtemplate(TSRMLS_D){
	zend_class_entry ce;

	INIT_CLASS_ENTRY(ce,"RtvTemplate",rtvtemplate_methods);
	ce.create_object = create_rtv_template_fragments;
	rtv_ce_rtvtemplate = zend_register_internal_class(&ce TSRMLS_CC);

	/* fields */
	zend_declare_property_bool(rtv_ce_rtvtemplate,"html", strlen("html"),1,ZEND_ACC_PUBLIC TSRMLS_CC);
}
开发者ID:rtestaverde,项目名称:phpext,代码行数:10,代码来源:rtvtemplate.c


注:本文中的INIT_CLASS_ENTRY函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。