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


C++ RETURN_THISW函数代码示例

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


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

示例1: PHP_METHOD

/**
 * Starts a transaction
 */
PHP_METHOD(Phalcon_Logger_Adapter, begin) {

	

	if (1) {
		zephir_update_property_this(getThis(), SL("_transaction"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC);
	} else {
		zephir_update_property_this(getThis(), SL("_transaction"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC);
	}
	RETURN_THISW();

}
开发者ID:CameronHall,项目名称:cphalcon,代码行数:15,代码来源:adapter.zep.c

示例2: PHP_METHOD

/**
 * Set the model who generates the message
 */
PHP_METHOD(Phalcon_Mvc_Model_Message, setModel) {

	zval *model;

	zephir_fetch_params(0, 1, 0, &model);



	zephir_update_property_this(this_ptr, SL("_model"), model TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:AlloVince,项目名称:cphalcon,代码行数:15,代码来源:message.zep.c

示例3: PHP_METHOD

/**
 * Adds a inline code to the collection
 */
PHP_METHOD(Phalcon_Assets_Collection, addInline) {

	zval *code;

	zephir_fetch_params(0, 1, 0, &code);



	zephir_update_property_array_append(this_ptr, SL("_codes"), code TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:brainformatik,项目名称:cphalcon,代码行数:15,代码来源:collection.zep.c

示例4: PHP_METHOD

/**
 * Sets the name of the default module
 *
 * @param string moduleName
 * @return Test\Router
 */
PHP_METHOD(Test_Router, setDefaultModule) {

    zval *moduleName;

    zephir_fetch_params(0, 1, 0, &moduleName);



    zephir_update_property_this(this_ptr, SL("_defaultModule"), moduleName TSRMLS_CC);
    RETURN_THISW();

}
开发者ID:hobbit19,项目名称:zephir,代码行数:18,代码来源:router.c

示例5: PHP_METHOD

/**
 * Set header
 *
 * @param string $name
 * @param string $value
 * @return Phalcon\Http\Client\Adapter
 */
PHP_METHOD(Phalcon_Http_Client_Adapter, setHeader){

	zval *name, *value, header = {};

	phalcon_fetch_params(0, 2, 0, &name, &value);

	phalcon_read_property(&header, getThis(), SL("_header"), PH_NOISY);

	PHALCON_CALL_METHODW(NULL, &header, "set", name, value);

	RETURN_THISW();
}
开发者ID:dreamsxin,项目名称:cphalcon7,代码行数:19,代码来源:adapter.c

示例6: PHP_METHOD

/**
 * Sets a callback that is called if the route is matched.
 * The developer can implement any arbitrary conditions here
 * If the callback returns false the route is treaded as not matched
 *
 * @param callback callback
 * @return Test\Router\Route
 */
PHP_METHOD(Test_Router_Route, beforeMatch) {

	zval *callback;

	zephir_fetch_params(0, 1, 0, &callback);



	zephir_update_property_this(this_ptr, SL("_beforeMatch"), callback TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:LegendZhu,项目名称:zephir,代码行数:20,代码来源:route.zep.c

示例7: PHP_METHOD

/**
 * Sets the parent form to the element
 */
PHP_METHOD(Phalcon_Forms_Element, setForm) {

	zval *form;

	zephir_fetch_params(0, 1, 0, &form);



	zephir_update_property_this(this_ptr, SL("_form"), form TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:8V017UW2RQ70,项目名称:cphalcon,代码行数:15,代码来源:element.zep.c

示例8: PHP_METHOD

/**
 * Sets the group associated with the route
 */
PHP_METHOD(Phalcon_Mvc_Router_Route, setGroup) {

	zval *group;

	zephir_fetch_params(0, 1, 0, &group);



	zephir_update_property_this(this_ptr, SL("_group"), group TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:AlloVince,项目名称:cphalcon,代码行数:15,代码来源:route.zep.c

示例9: PHP_METHOD

/**
 * Set a before-match condition for the whole group
 *
 * @param callable beforeMatch
 * @return Phalcon\Mvc\Router\Group
 */
PHP_METHOD(Phalcon_Mvc_Router_Group, beforeMatch) {

	zval *beforeMatch;

	zephir_fetch_params(0, 1, 0, &beforeMatch);



	zephir_update_property_this(this_ptr, SL("_beforeMatch"), beforeMatch TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:3axap4eHko,项目名称:cphalcon,代码行数:18,代码来源:group.zep.c

示例10: PHP_METHOD

/**
 * Adds an option to the current options
 *
 * @param array option
 * @return this
 */
PHP_METHOD(Phalcon_Forms_Element_Select, addOption) {

	zval *option;

	zephir_fetch_params(0, 1, 0, &option);



	zephir_update_property_array_append(this_ptr, SL("_optionsValues"), option TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:spuy767,项目名称:cphalcon,代码行数:18,代码来源:select.zep.c

示例11: PHP_METHOD

/**
 * Set the choice's options
 *
 * @param array|object options
 * @return \Phalcon\Forms\Element
 */
PHP_METHOD(Phalcon_Forms_Element_Select, setOptions) {

	zval *options;

	zephir_fetch_params(0, 1, 0, &options);



	zephir_update_property_this(this_ptr, SL("_optionsValues"), options TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:8V017UW2RQ70,项目名称:cphalcon,代码行数:18,代码来源:select.zep.c

示例12: PHP_METHOD

/**
 * Sets the message formatter
 */
PHP_METHOD(Phalcon_Logger_Adapter, setFormatter) {

	zval *formatter;

	zephir_fetch_params(0, 1, 0, &formatter);



	zephir_update_property_this(this_ptr, SL("_formatter"), formatter TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:halfbakedsneed,项目名称:cphalcon,代码行数:15,代码来源:adapter.zep.c

示例13: PHP_METHOD

/**
 * Set query builder object
 */
PHP_METHOD(Phalcon_Paginator_Adapter_QueryBuilder, setQueryBuilder) {

	zval *builder;

	zephir_fetch_params(0, 1, 0, &builder);



	zephir_update_property_this(this_ptr, SL("_builder"), builder TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:Studentsov,项目名称:cphalcon,代码行数:15,代码来源:querybuilder.zep.c

示例14: PHP_METHOD

/**
 * Sets the cache options
 *
 * @param  array options
 * @return Phalcon\Mvc\View\Simple
 */
PHP_METHOD(Phalcon_Mvc_View_Simple, setCacheOptions) {

	zval *options;

	zephir_fetch_params(0, 1, 0, &options);



	zephir_update_property_this(this_ptr, SL("_cacheOptions"), options TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:3axap4eHko,项目名称:cphalcon,代码行数:18,代码来源:simple.zep.c

示例15: PHP_METHOD

/**
 * Sets the entity related to the model
 *
 * @param object entity
 */
PHP_METHOD(Phalcon_Forms_Form, setEntity) {

	zval *entity;

	zephir_fetch_params(0, 1, 0, &entity);



	zephir_update_property_this(this_ptr, SL("_entity"), entity TSRMLS_CC);
	RETURN_THISW();

}
开发者ID:bschantz,项目名称:cphalcon,代码行数:17,代码来源:form.zep.c


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