/** * Returns the translation related to the given key * * @param string $index * @return string */ PHP_METHOD(Phalcon_Translate_Adapter_Array, query){ zval *index = NULL; zval *t0 = NULL, *t1 = NULL; zval *r0 = NULL; int eval_int; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &index) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_traslate", sizeof("_traslate")-1, PHALCON_NOISY TSRMLS_CC); eval_int = phalcon_array_isset(t0, index); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, this_ptr, "_traslate", sizeof("_traslate")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(r0); phalcon_array_fetch(&r0, t1, index, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(r0); } else { PHALCON_RETURN_CHECK_CTOR(index); } PHALCON_MM_RESTORE(); }
/** * Gets a param by its name or numeric index * * @param mixed $param * @return mixed */ PHP_METHOD(Phalcon_Dispatcher, getParam){ zval *param = NULL, *params = NULL; zval *t0 = NULL; zval *r0 = NULL; int eval_int; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_params", sizeof("_params")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_CPY_WRT(params, t0); eval_int = phalcon_array_isset(params, param); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(r0); phalcon_array_fetch(&r0, params, param, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(r0); } PHALCON_MM_RESTORE(); RETURN_NULL(); }
PHP_METHOD(Phalcon_Internal_TestTemp, e13b){ zval *a = NULL; zval *i0 = NULL, *i1 = NULL; zval *t0 = NULL, *t1 = NULL, *t2 = NULL, *t3 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(i0); object_init(i0); PHALCON_CPY_WRT(a, i0); phalcon_update_property_long(a, "uno", strlen("uno"), 1 TSRMLS_CC); phalcon_update_property_long(a, "dos", strlen("dos"), 2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(i1); object_init(i1); phalcon_update_property_zval(a, "subA", strlen("subA"), i1 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t0, "uno", strlen("uno"), 1 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t1, "dos", strlen("dos"), 2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t2); phalcon_read_property(&t2, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t3); phalcon_read_property(&t3, t2, "dos", sizeof("dos")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t3); }
/** * Generates the SQL for a MySQL LIMIT clause * * @param string $sqlQuery * @param int $number * @return string */ PHP_METHOD(Phalcon_Db_Dialect_Mysql, limit){ zval *sql_query = NULL, *number = NULL, *limit = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &sql_query, &number) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } PHALCON_ALLOC_ZVAL_MM(r0); PHALCON_CALL_FUNC_PARAMS_1(r0, "is_numeric", number, 0x02B); if (zend_is_true(r0)) { PHALCON_ALLOC_ZVAL_MM(r1); PHALCON_CALL_FUNC_PARAMS_1(r1, "intval", number, 0x020); PHALCON_CPY_WRT(limit, r1); PHALCON_ALLOC_ZVAL_MM(r2); PHALCON_CONCAT_VSV(r2, sql_query, " LIMIT ", limit); PHALCON_RETURN_CTOR(r2); } else { PHALCON_RETURN_CHECK_CTOR(sql_query); } PHALCON_MM_RESTORE(); }
/** * Reads meta-data from $_SESSION * * @return array */ PHP_METHOD(Phalcon_Model_MetaData_Session, read){ zval *session = NULL, *key = NULL; zval *g0 = NULL; zval *r0 = NULL, *r1 = NULL; zval *t0 = NULL; zval *a0 = NULL; int eval_int; PHALCON_MM_GROW(); phalcon_get_global(&g0, "_SESSION", sizeof("_SESSION") TSRMLS_CC); PHALCON_CPY_WRT(session, g0); PHALCON_ALLOC_ZVAL_MM(r0); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_suffix", sizeof("_suffix")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_CONCAT_SV(r0, "$PMM$", t0); PHALCON_CPY_WRT(key, r0); eval_int = phalcon_array_isset(session, key); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(r1); phalcon_array_fetch(&r1, session, key, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(r1); } PHALCON_INIT_VAR(a0); array_init(a0); PHALCON_RETURN_CTOR(a0); }
PHP_METHOD(Phalcon_View_Engine_Mustache, __get){ zval *property = NULL; zval *t0 = NULL, *t1 = NULL; zval *r0 = NULL; int eval_int; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &property) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_params", sizeof("_params")-1, PHALCON_NOISY TSRMLS_CC); eval_int = phalcon_array_isset(t0, property); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, this_ptr, "_params", sizeof("_params")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(r0); phalcon_array_fetch(&r0, t1, property, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(r0); } PHALCON_MM_RESTORE(); RETURN_NULL(); }
/** * Gets most possibly client IPv4 Address * * @return string */ PHP_METHOD(Phalcon_Request, getClientAddress){ zval *address = NULL; zval *g0 = NULL; zval *r0 = NULL, *r1 = NULL; int eval_int; PHALCON_MM_GROW(); PHALCON_INIT_VAR(address); ZVAL_STRING(address, "", 1); phalcon_get_global(&g0, "_SERVER", sizeof("_SERVER") TSRMLS_CC); eval_int = phalcon_array_isset_string(g0, "HTTP_X_FORWARDED_FOR", strlen("HTTP_X_FORWARDED_FOR")+1); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(r0); phalcon_array_fetch_string(&r0, g0, "HTTP_X_FORWARDED_FOR", strlen("HTTP_X_FORWARDED_FOR"), PHALCON_NOISY TSRMLS_CC); PHALCON_CPY_WRT(address, r0); } else { eval_int = phalcon_array_isset_string(g0, "REMOTE_ADDR", strlen("REMOTE_ADDR")+1); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(r1); phalcon_array_fetch_string(&r1, g0, "REMOTE_ADDR", strlen("REMOTE_ADDR"), PHALCON_NOISY TSRMLS_CC); PHALCON_CPY_WRT(address, r1); } } PHALCON_RETURN_CHECK_CTOR(address); }
/** * Gets variable from $_SERVER superglobal * * @param string $name * @return mixed */ PHP_METHOD(Phalcon_Request, getServer){ zval *name = NULL; zval *g0 = NULL; zval *r0 = NULL; int eval_int; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } phalcon_get_global(&g0, "_SERVER", sizeof("_SERVER") TSRMLS_CC); eval_int = phalcon_array_isset(g0, name); if (eval_int) { PHALCON_ALLOC_ZVAL_MM(r0); phalcon_array_fetch(&r0, g0, name, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(r0); } PHALCON_MM_RESTORE(); RETURN_NULL(); }
/** * Gets the views part manager * * @return Phalcon_View */ PHP_METHOD(Phalcon_Controller_Front, getViewComponent){ zval *t0 = NULL, *t1 = NULL, *t2 = NULL, *t3 = NULL; zval *i0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_view", sizeof("_view")-1, PHALCON_NOISY TSRMLS_CC); if (!zend_is_true(t0)) { PHALCON_ALLOC_ZVAL_MM(i0); object_init_ex(i0, phalcon_view_ce); PHALCON_CALL_METHOD_NORETURN(i0, "__construct", PHALCON_CHECK); phalcon_update_property_zval(this_ptr, "_view", strlen("_view"), i0 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, this_ptr, "_view", sizeof("_view")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t2); phalcon_read_property(&t2, this_ptr, "_viewsDir", sizeof("_viewsDir")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_CALL_METHOD_PARAMS_1_NORETURN(t1, "setviewsdir", t2, PHALCON_NO_CHECK); } PHALCON_ALLOC_ZVAL_MM(t3); phalcon_read_property(&t3, this_ptr, "_view", sizeof("_view")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t3); }
/** * Gets the models manager * * @return Phalcon_Model_Manager */ PHP_METHOD(Phalcon_Controller_Front, getModelComponent){ zval *model = NULL; zval *t0 = NULL, *t1 = NULL, *t2 = NULL, *t3 = NULL; zval *i0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_model", sizeof("_model")-1, PHALCON_NOISY TSRMLS_CC); if (!zend_is_true(t0)) { PHALCON_ALLOC_ZVAL_MM(i0); object_init_ex(i0, phalcon_model_manager_ce); PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, this_ptr, "_modelsConfig", sizeof("_modelsConfig")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_CALL_METHOD_PARAMS_1_NORETURN(i0, "__construct", t1, PHALCON_CHECK); PHALCON_CPY_WRT(model, i0); PHALCON_ALLOC_ZVAL_MM(t2); phalcon_read_property(&t2, this_ptr, "_modelsDir", sizeof("_modelsDir")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_CALL_METHOD_PARAMS_1_NORETURN(model, "setmodelsdir", t2, PHALCON_NO_CHECK); phalcon_update_property_zval(this_ptr, "_model", strlen("_model"), model TSRMLS_CC); } PHALCON_ALLOC_ZVAL_MM(t3); phalcon_read_property(&t3, this_ptr, "_model", sizeof("_model")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t3); }
/** * Check whether a option has been defined in the validator options * * @paramstring $option * @returnboolean */ PHP_METHOD(Phalcon_Model_Validator, isSetOption){ zval *v0 = NULL; zval *r0 = NULL, *r1 = NULL; zval *t0 = NULL, *t1 = NULL, *t2 = NULL; int eval_int; PHALCON_MM_GROW(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &v0) == FAILURE) { PHALCON_MM_RESTORE(); RETURN_NULL(); } PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_options", sizeof("_options")-1, PHALCON_NOISY_FETCH TSRMLS_CC); eval_int = phalcon_array_isset(t0, v0); PHALCON_INIT_VAR(r1); ZVAL_BOOL(r1, eval_int); if (zend_is_true(r1)) { PHALCON_INIT_VAR(t1); ZVAL_BOOL(t1, 1); r0 = t1; } else { PHALCON_INIT_VAR(t2); ZVAL_BOOL(t2, 0); r0 = t2; } PHALCON_RETURN_CHECK_CTOR(r0); }
PHP_METHOD(Phalcon_Internal_TestTemp, e13c){ zval *a = NULL; zval *i0 = NULL, *i1 = NULL, *i2 = NULL; zval *t0 = NULL, *t1 = NULL, *t2 = NULL, *t3 = NULL, *t4 = NULL, *t5 = NULL, *t6 = NULL; zval *t7 = NULL, *t8 = NULL, *t9 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(i0); object_init(i0); PHALCON_CPY_WRT(a, i0); phalcon_update_property_long(a, "uno", strlen("uno"), 1 TSRMLS_CC); phalcon_update_property_long(a, "dos", strlen("dos"), 2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(i1); object_init(i1); phalcon_update_property_zval(a, "subA", strlen("subA"), i1 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t0, "uno", strlen("uno"), 1 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t1); phalcon_read_property(&t1, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t1, "dos", strlen("dos"), 2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(i2); object_init(i2); PHALCON_ALLOC_ZVAL_MM(t2); phalcon_read_property(&t2, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_zval(t2, "subSubA", strlen("subSubA"), i2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t3); phalcon_read_property(&t3, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t4); phalcon_read_property(&t4, t3, "subSubA", sizeof("subSubA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t4, "uno", strlen("uno"), 1 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t5); phalcon_read_property(&t5, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t6); phalcon_read_property(&t6, t5, "subSubA", sizeof("subSubA")-1, PHALCON_NOISY TSRMLS_CC); phalcon_update_property_long(t6, "dos", strlen("dos"), 2 TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t7); phalcon_read_property(&t7, a, "subA", sizeof("subA")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t8); phalcon_read_property(&t8, t7, "subSubA", sizeof("subSubA")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_ALLOC_ZVAL_MM(t9); phalcon_read_property(&t9, t8, "dos", sizeof("dos")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t9); }
/** * Returns validations messages from last save try * * @return array */ PHP_METHOD(Phalcon_Transaction, getMessages){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_messages", sizeof("_messages")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
PHP_METHOD(Phalcon_Internal_TestParent, mp7){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_pp0", sizeof("_pp0")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Gets external uri where app is executed * * @return string */ PHP_METHOD(Phalcon_Controller_Front, getBaseUri){ zval *uri = NULL; zval *t0 = NULL, *t1 = NULL, *t2 = NULL, *t3 = NULL; zval *g0 = NULL; zval *c0 = NULL, *c1 = NULL, *c2 = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL, *r5 = NULL, *r6 = NULL; int eval_int; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_baseUri", sizeof("_baseUri")-1, PHALCON_NOISY TSRMLS_CC); if (!zend_is_true(t0)) { phalcon_get_global(&g0, "_SERVER", sizeof("_SERVER") TSRMLS_CC); eval_int = phalcon_array_isset_string(g0, "PHP_SELF", strlen("PHP_SELF")+1); if (eval_int) { PHALCON_INIT_VAR(c0); ZVAL_STRING(c0, "/", 1); PHALCON_ALLOC_ZVAL_MM(r0); PHALCON_INIT_VAR(c1); ZVAL_STRING(c1, "/", 1); PHALCON_ALLOC_ZVAL_MM(r1); PHALCON_ALLOC_ZVAL_MM(r2); phalcon_array_fetch_string(&r2, g0, "PHP_SELF", strlen("PHP_SELF"), PHALCON_NOISY TSRMLS_CC); PHALCON_CALL_FUNC_PARAMS_1(r1, "dirname", r2, 0x049); PHALCON_ALLOC_ZVAL_MM(r3); phalcon_fast_explode(r3, c1, r1 TSRMLS_CC); PHALCON_INIT_VAR(c2); ZVAL_LONG(c2, 1); PHALCON_INIT_VAR(t2); ZVAL_LONG(t2, 1); PHALCON_INIT_VAR(t1); ZVAL_LONG(t1, -1); PHALCON_ALLOC_ZVAL_MM(r4); mul_function(r4, t1, t2 TSRMLS_CC); PHALCON_CALL_FUNC_PARAMS_3(r0, "array_slice", r3, c2, r4, 0x01F); PHALCON_ALLOC_ZVAL_MM(r5); phalcon_fast_join(r5, c0, r0 TSRMLS_CC); PHALCON_CPY_WRT(uri, r5); } else { PHALCON_INIT_VAR(uri); ZVAL_STRING(uri, "", 1); } if (!zend_is_true(uri)) { phalcon_update_property_string(this_ptr, "_baseUri", strlen("_baseUri"), "/" TSRMLS_CC); } else { PHALCON_ALLOC_ZVAL_MM(r6); PHALCON_CONCAT_SVS(r6, "/", uri, "/"); phalcon_update_property_zval(this_ptr, "_baseUri", strlen("_baseUri"), r6 TSRMLS_CC); } } PHALCON_ALLOC_ZVAL_MM(t3); phalcon_read_property(&t3, this_ptr, "_baseUri", sizeof("_baseUri")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t3); }
/** * Check whether field absolute to position in table * * @return string */ PHP_METHOD(Phalcon_Db_Column, getAfterPosition){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_after", sizeof("_after")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns the log type * * @return integer */ PHP_METHOD(Phalcon_Logger_Item, getType){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_type", sizeof("_type")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Auto-Increment * * @return boolean */ PHP_METHOD(Phalcon_Db_Column, isAutoIncrement){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_autoIncrement", sizeof("_autoIncrement")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns the role name * * @return string */ PHP_METHOD(Phalcon_Acl_Role, getName){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_name", sizeof("_name")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns Phalcon_Model_Base related record * * @return ActiveRecord */ PHP_METHOD(Phalcon_Model_Validator, getRecord){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_record", sizeof("_record")-1, PHALCON_NOISY_FETCH TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Gets pointer number of active row in the resultset * */ PHP_METHOD(Phalcon_Model_Resultset, key){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_pointer", sizeof("_pointer")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns the internal date format * * @return string */ PHP_METHOD(Phalcon_Logger_Adapter_File, getDateFormat){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_dateFormat", sizeof("_dateFormat")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns cached ouput from another view stage * * @return string */ PHP_METHOD(Phalcon_View, getContent){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_content", sizeof("_content")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns the last profile executed in the profiler * * @return Phalcon_Db_Profiler_Item */ PHP_METHOD(Phalcon_Db_Profiler, getLastProfile){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_activeProfile", sizeof("_activeProfile")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns the total time in seconds spent by the profiles * * @return double */ PHP_METHOD(Phalcon_Db_Profiler, getTotalElapsedSeconds){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_totalSeconds", sizeof("_totalSeconds")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Checks if the dispatch loop is finished or have more pendent controller to disptach * * @return boolean */ PHP_METHOD(Phalcon_Dispatcher, isFinished){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_finished", sizeof("_finished")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Magic __toString method returns verbose message * * @return string */ PHP_METHOD(Phalcon_Model_Message, __toString){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_message", sizeof("_message")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Gets referenced columns * * @return array */ PHP_METHOD(Phalcon_Db_Reference, getReferencedColumns){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_referencedColumns", sizeof("_referencedColumns")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Gets active controllers directory * * @return string */ PHP_METHOD(Phalcon_Dispatcher, getControllersDir){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_controllersDir", sizeof("_controllersDir")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }
/** * Returns internal raw value without quoting or formating * * @return string */ PHP_METHOD(Phalcon_Db_RawValue, getValue){ zval *t0 = NULL; PHALCON_MM_GROW(); PHALCON_ALLOC_ZVAL_MM(t0); phalcon_read_property(&t0, this_ptr, "_value", sizeof("_value")-1, PHALCON_NOISY TSRMLS_CC); PHALCON_RETURN_CHECK_CTOR(t0); }