本文整理汇总了C++中phalcon_update_property_zval函数的典型用法代码示例。如果您正苦于以下问题:C++ phalcon_update_property_zval函数的具体用法?C++ phalcon_update_property_zval怎么用?C++ phalcon_update_property_zval使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了phalcon_update_property_zval函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PHP_METHOD
/**
* Overwrites models manager default object
*
* @param Phalcon_Model_Manager $model
*/
PHP_METHOD(Phalcon_Controller_Front, setModelComponent){
zval *model = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &model) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_model", strlen("_model"), model TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例2: PHP_METHOD
/**
* Sets base path for controllers dir. Depending of your platform, always add a trailing slash or backslash
*
* @param string $basePath
*/
PHP_METHOD(Phalcon_Dispatcher, setBasePath){
zval *base_path = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &base_path) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_basePath", strlen("_basePath"), base_path TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例3: PHP_METHOD
/**
* Set the if the output must be implictly flushed to the output or returned as string
*
* @param boolean $implicitFlash
*/
PHP_METHOD(Phalcon_Flash, setImplicitFlush){
zval *implicit_flush = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &implicit_flush) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_implicitFlush"), implicit_flush TSRMLS_CC);
RETURN_CCTOR(this_ptr);
}
示例4: PHP_METHOD
/**
* Set the log format
*
* @param string $format
*/
PHP_METHOD(Phalcon_Logger_Adapter_File, setFormat){
zval *format = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &format) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_format", strlen("_format"), format TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例5: PHP_METHOD
/**
* Set a uri prefix. This will be replaced from the beginning of the uri
*/
PHP_METHOD(Phalcon_Router_Rewrite, setPrefix) {
zval *prefix = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &prefix) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_prefix", strlen("_prefix"), prefix TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例6: PHP_METHOD
/**
* Phalcon_Db constructor, this method should not be called directly. Use Phalcon_Db::factory instead
*
* @param stdClass $descriptor
*/
PHP_METHOD(Phalcon_Db, __construct){
zval *descriptor = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &descriptor) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_descriptor", strlen("_descriptor"), descriptor TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例7: PHP_METHOD
/**
* Sets view component
*
* @param Phalcon_View $view
*/
PHP_METHOD(Phalcon_Controller_Front, setViewComponent){
zval *view = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &view) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_view"), view TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例8: PHP_METHOD
/**
* Initializes the session bag. This method must not be called directly, the class calls it when its internal data is accesed
*/
PHP_METHOD(Phalcon_Session_Bag, initialize){
zval *dependency_injector, *service, *session;
zval *name, *data = NULL;
PHALCON_MM_GROW();
PHALCON_INIT_VAR(dependency_injector);
phalcon_read_property(&dependency_injector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC);
if (Z_TYPE_P(dependency_injector) != IS_OBJECT) {
PHALCON_THROW_EXCEPTION_STR(phalcon_session_exception_ce, "A dependency injection object is required to access the 'session' service");
return;
}
PHALCON_INIT_VAR(service);
ZVAL_STRING(service, "session", 1);
PHALCON_INIT_VAR(session);
PHALCON_CALL_METHOD_PARAMS_1(session, dependency_injector, "getshared", service, PH_NO_CHECK);
PHALCON_INIT_VAR(name);
phalcon_read_property(&name, this_ptr, SL("_name"), PH_NOISY_CC);
PHALCON_INIT_VAR(data);
PHALCON_CALL_METHOD_PARAMS_1(data, session, "get", name, PH_NO_CHECK);
if (Z_TYPE_P(data) != IS_ARRAY) {
PHALCON_INIT_NVAR(data);
array_init(data);
}
phalcon_update_property_zval(this_ptr, SL("_data"), data TSRMLS_CC);
phalcon_update_property_zval(this_ptr, SL("_session"), session TSRMLS_CC);
phalcon_update_property_bool(this_ptr, SL("_initalized"), 1 TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例9: PHP_METHOD
PHP_METHOD(Phalcon_Http_Request, setDI){
zval *dependency_injector = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &dependency_injector) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_dependencyInjector"), dependency_injector TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例10: PHP_METHOD
/**
* Sets the internal date format
*
* @param string $date
*/
PHP_METHOD(Phalcon_Logger_Adapter_File, setDateFormat){
zval *date = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &date) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_dateFormat"), date TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例11: PHP_METHOD
/**
* Sets views directory. Depending of your platform, always add a trailing slash or backslash
*
* @param string $viewsDir
*/
PHP_METHOD(Phalcon_Mvc_View, setViewsDir){
zval *views_dir = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &views_dir) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_viewsDir"), views_dir TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例12: PHP_METHOD
PHP_METHOD(Phalcon_Loader, setEventsManager){
zval *events_manager = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &events_manager) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_eventsManager"), events_manager TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例13: PHP_METHOD
/**
* Sets message type
*
* @param string $type
*/
PHP_METHOD(Phalcon_Model_Message, setType){
zval *type = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &type) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_type", strlen("_type"), type TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例14: PHP_METHOD
/**
* Phalcon_Db_RawValue constructor
*
* @param string $value
*/
PHP_METHOD(Phalcon_Db_RawValue, __construct){
zval *value = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &value) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, "_value", strlen("_value"), value TSRMLS_CC);
PHALCON_MM_RESTORE();
}
示例15: PHP_METHOD
PHP_METHOD(Phalcon_Events_Event, setType){
zval *event_type = NULL;
PHALCON_MM_GROW();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &event_type) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}
phalcon_update_property_zval(this_ptr, SL("_type"), event_type TSRMLS_CC);
PHALCON_MM_RESTORE();
}