From 725dd55876588cd2d4d7e10799a6f7a21f4ae988 Mon Sep 17 00:00:00 2001 From: phalcon Date: Thu, 7 Mar 2013 21:31:11 -0500 Subject: [PATCH 1/7] Fixing docblocks, removing array initialization in DI --- ext/di.c | 4 ---- ext/mvc/model.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/di.c b/ext/di.c index 1624d9934f8..e49608bac34 100644 --- a/ext/di.c +++ b/ext/di.c @@ -102,10 +102,6 @@ PHP_METHOD(Phalcon_DI, __construct){ PHALCON_MM_GROW(); - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_services") TSRMLS_CC); - - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_sharedInstances") TSRMLS_CC); - PHALCON_OBS_VAR(default_di); phalcon_read_static_property(&default_di, SL("phalcon\\di"), SL("_default") TSRMLS_CC); if (!zend_is_true(default_di)) { diff --git a/ext/mvc/model.c b/ext/mvc/model.c index bdbedd46ab3..09fb4c20647 100755 --- a/ext/mvc/model.c +++ b/ext/mvc/model.c @@ -367,7 +367,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setTransaction){ } /** - * Sets table name which model should be mapped (deprecated) + * Sets table name which model should be mapped * * @param string $source * @return Phalcon\Mvc\Model @@ -408,7 +408,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getSource){ } /** - * Sets schema name where table mapped is located (deprecated) + * Sets schema name where table mapped is located * * @param string $schema * @return Phalcon\Mvc\Model From 54378c3bf4ee4cf50b7372dce46339e75aef960d Mon Sep 17 00:00:00 2001 From: phalcon Date: Thu, 7 Mar 2013 23:04:49 -0500 Subject: [PATCH 2/7] Regenerating build 32bits --- build/32bits/phalcon.c | 24 +++++++++++++----------- build/safe/phalcon.c | 24 +++++++++++++----------- ext/acl/adapter/memory.c | 20 +++++++++++++------- 3 files changed, 39 insertions(+), 29 deletions(-) diff --git a/build/32bits/phalcon.c b/build/32bits/phalcon.c index 23789a63a71..b9932bada80 100644 --- a/build/32bits/phalcon.c +++ b/build/32bits/phalcon.c @@ -12815,10 +12815,6 @@ PHP_METHOD(Phalcon_DI, __construct){ PHALCON_MM_GROW(); - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_services") TSRMLS_CC); - - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_sharedInstances") TSRMLS_CC); - PHALCON_OBS_VAR(default_di); phalcon_read_static_property(&default_di, SL("phalcon\\di"), SL("_default") TSRMLS_CC); if (!zend_is_true(default_di)) { @@ -82601,9 +82597,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zval *roles, *number_roles, *pow_roles, *two, *middle_roles; zval *middle, *roles_names, *roles_inherits; - zval *i, *internal_access = NULL, *one = NULL, *role_name = NULL, *role_inherit = NULL; - zval *inherit_internal = NULL, *access = NULL, *resource_name = NULL; - zval *value = NULL, *name = NULL, *_access = NULL; + zval *changed = NULL, *i, *internal_access = NULL, *one = NULL, *role_name = NULL; + zval *role_inherit = NULL, *inherit_internal = NULL, *access = NULL; + zval *resource_name = NULL, *value = NULL, *name = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL; HashTable *ah0, *ah1, *ah2, *ah3; HashPosition hp0, hp1, hp2, hp3; @@ -82635,13 +82631,16 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ PHALCON_OBS_VAR(roles_inherits); phalcon_read_property(&roles_inherits, this_ptr, SL("_roleInherits"), PH_NOISY_CC); + PHALCON_INIT_VAR(changed); + ZVAL_BOOL(changed, 1); + PHALCON_INIT_VAR(i); ZVAL_LONG(i, 0); while (1) { PHALCON_INIT_NVAR(r0); is_smaller_or_equal_function(r0, i, middle TSRMLS_CC); - if (zend_is_true(r0)) { + if (!zend_is_true(r0)) { break; } PHALCON_OBS_NVAR(internal_access); @@ -82709,10 +82708,10 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ } } } + phalcon_array_update_zval_zval_zval_multi_3(&internal_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); - PHALCON_OBS_NVAR(_access); - phalcon_read_property(&_access, this_ptr, SL("_access"), PH_NOISY_CC); - phalcon_array_update_zval_zval_zval_multi_3(&_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); + PHALCON_INIT_NVAR(changed); + ZVAL_BOOL(changed, 1); zend_hash_move_forward_ex(ah3, &hp3); } @@ -82731,6 +82730,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zend_hash_move_forward_ex(ah0, &hp0); } + if (zend_is_true(changed)) { + phalcon_update_property_zval(this_ptr, SL("_access"), internal_access TSRMLS_CC); + } PHALCON_SEPARATE(i); increment_function(i); } diff --git a/build/safe/phalcon.c b/build/safe/phalcon.c index dcda8f2262c..bb43b34ec23 100644 --- a/build/safe/phalcon.c +++ b/build/safe/phalcon.c @@ -12815,10 +12815,6 @@ PHP_METHOD(Phalcon_DI, __construct){ PHALCON_MM_GROW(); - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_services") TSRMLS_CC); - - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_sharedInstances") TSRMLS_CC); - PHALCON_OBS_VAR(default_di); phalcon_read_static_property(&default_di, SL("phalcon\\di"), SL("_default") TSRMLS_CC); if (!zend_is_true(default_di)) { @@ -82601,9 +82597,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zval *roles, *number_roles, *pow_roles, *two, *middle_roles; zval *middle, *roles_names, *roles_inherits; - zval *i, *internal_access = NULL, *one = NULL, *role_name = NULL, *role_inherit = NULL; - zval *inherit_internal = NULL, *access = NULL, *resource_name = NULL; - zval *value = NULL, *name = NULL, *_access = NULL; + zval *changed = NULL, *i, *internal_access = NULL, *one = NULL, *role_name = NULL; + zval *role_inherit = NULL, *inherit_internal = NULL, *access = NULL; + zval *resource_name = NULL, *value = NULL, *name = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL; HashTable *ah0, *ah1, *ah2, *ah3; HashPosition hp0, hp1, hp2, hp3; @@ -82635,13 +82631,16 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ PHALCON_OBS_VAR(roles_inherits); phalcon_read_property(&roles_inherits, this_ptr, SL("_roleInherits"), PH_NOISY_CC); + PHALCON_INIT_VAR(changed); + ZVAL_BOOL(changed, 1); + PHALCON_INIT_VAR(i); ZVAL_LONG(i, 0); while (1) { PHALCON_INIT_NVAR(r0); is_smaller_or_equal_function(r0, i, middle TSRMLS_CC); - if (zend_is_true(r0)) { + if (!zend_is_true(r0)) { break; } PHALCON_OBS_NVAR(internal_access); @@ -82709,10 +82708,10 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ } } } + phalcon_array_update_zval_zval_zval_multi_3(&internal_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); - PHALCON_OBS_NVAR(_access); - phalcon_read_property(&_access, this_ptr, SL("_access"), PH_NOISY_CC); - phalcon_array_update_zval_zval_zval_multi_3(&_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); + PHALCON_INIT_NVAR(changed); + ZVAL_BOOL(changed, 1); zend_hash_move_forward_ex(ah3, &hp3); } @@ -82731,6 +82730,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zend_hash_move_forward_ex(ah0, &hp0); } + if (zend_is_true(changed)) { + phalcon_update_property_zval(this_ptr, SL("_access"), internal_access TSRMLS_CC); + } PHALCON_SEPARATE(i); increment_function(i); } diff --git a/ext/acl/adapter/memory.c b/ext/acl/adapter/memory.c index 99792de0f2f..f7e0f15769c 100644 --- a/ext/acl/adapter/memory.c +++ b/ext/acl/adapter/memory.c @@ -979,9 +979,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zval *roles, *number_roles, *pow_roles, *two, *middle_roles; zval *middle, *roles_names, *roles_inherits; - zval *i, *internal_access = NULL, *one = NULL, *role_name = NULL, *role_inherit = NULL; - zval *inherit_internal = NULL, *access = NULL, *resource_name = NULL; - zval *value = NULL, *name = NULL, *_access = NULL; + zval *changed = NULL, *i, *internal_access = NULL, *one = NULL, *role_name = NULL; + zval *role_inherit = NULL, *inherit_internal = NULL, *access = NULL; + zval *resource_name = NULL, *value = NULL, *name = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL; HashTable *ah0, *ah1, *ah2, *ah3; HashPosition hp0, hp1, hp2, hp3; @@ -1013,13 +1013,16 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ PHALCON_OBS_VAR(roles_inherits); phalcon_read_property(&roles_inherits, this_ptr, SL("_roleInherits"), PH_NOISY_CC); + PHALCON_INIT_VAR(changed); + ZVAL_BOOL(changed, 1); + PHALCON_INIT_VAR(i); ZVAL_LONG(i, 0); while (1) { PHALCON_INIT_NVAR(r0); is_smaller_or_equal_function(r0, i, middle TSRMLS_CC); - if (zend_is_true(r0)) { + if (!zend_is_true(r0)) { break; } PHALCON_OBS_NVAR(internal_access); @@ -1087,10 +1090,10 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ } } } + phalcon_array_update_zval_zval_zval_multi_3(&internal_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); - PHALCON_OBS_NVAR(_access); - phalcon_read_property(&_access, this_ptr, SL("_access"), PH_NOISY_CC); - phalcon_array_update_zval_zval_zval_multi_3(&_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); + PHALCON_INIT_NVAR(changed); + ZVAL_BOOL(changed, 1); zend_hash_move_forward_ex(ah3, &hp3); } @@ -1109,6 +1112,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zend_hash_move_forward_ex(ah0, &hp0); } + if (zend_is_true(changed)) { + phalcon_update_property_zval(this_ptr, SL("_access"), internal_access TSRMLS_CC); + } PHALCON_SEPARATE(i); increment_function(i); } From 6ee7c3658a928b7dd2005ad81bf673cb20da21d6 Mon Sep 17 00:00:00 2001 From: phalcon Date: Thu, 7 Mar 2013 22:28:56 -0600 Subject: [PATCH 3/7] Regenerating build for 64bits [ci skip] --- build/64bits/phalcon.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/build/64bits/phalcon.c b/build/64bits/phalcon.c index 98e735574c9..6471155bf66 100644 --- a/build/64bits/phalcon.c +++ b/build/64bits/phalcon.c @@ -10829,9 +10829,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zval *roles, *number_roles, *pow_roles, *two, *middle_roles; zval *middle, *roles_names, *roles_inherits; - zval *i, *internal_access = NULL, *one = NULL, *role_name = NULL, *role_inherit = NULL; - zval *inherit_internal = NULL, *access = NULL, *resource_name = NULL; - zval *value = NULL, *name = NULL, *_access = NULL; + zval *changed = NULL, *i, *internal_access = NULL, *one = NULL, *role_name = NULL; + zval *role_inherit = NULL, *inherit_internal = NULL, *access = NULL; + zval *resource_name = NULL, *value = NULL, *name = NULL; zval *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *r4 = NULL; HashTable *ah0, *ah1, *ah2, *ah3; HashPosition hp0, hp1, hp2, hp3; @@ -10863,13 +10863,16 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ PHALCON_OBS_VAR(roles_inherits); phalcon_read_property(&roles_inherits, this_ptr, SL("_roleInherits"), PH_NOISY_CC); + PHALCON_INIT_VAR(changed); + ZVAL_BOOL(changed, 1); + PHALCON_INIT_VAR(i); ZVAL_LONG(i, 0); while (1) { PHALCON_INIT_NVAR(r0); is_smaller_or_equal_function(r0, i, middle TSRMLS_CC); - if (zend_is_true(r0)) { + if (!zend_is_true(r0)) { break; } PHALCON_OBS_NVAR(internal_access); @@ -10937,10 +10940,10 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ } } } + phalcon_array_update_zval_zval_zval_multi_3(&internal_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); - PHALCON_OBS_NVAR(_access); - phalcon_read_property(&_access, this_ptr, SL("_access"), PH_NOISY_CC); - phalcon_array_update_zval_zval_zval_multi_3(&_access, role_name, resource_name, name, &value, 0 TSRMLS_CC); + PHALCON_INIT_NVAR(changed); + ZVAL_BOOL(changed, 1); zend_hash_move_forward_ex(ah3, &hp3); } @@ -10959,6 +10962,9 @@ PHP_METHOD(Phalcon_Acl_Adapter_Memory, _rebuildAccessList){ zend_hash_move_forward_ex(ah0, &hp0); } + if (zend_is_true(changed)) { + phalcon_update_property_zval(this_ptr, SL("_access"), internal_access TSRMLS_CC); + } PHALCON_SEPARATE(i); increment_function(i); } @@ -27213,10 +27219,6 @@ PHP_METHOD(Phalcon_DI, __construct){ PHALCON_MM_GROW(); - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_services") TSRMLS_CC); - - phalcon_update_property_empty_array(phalcon_di_ce, this_ptr, SL("_sharedInstances") TSRMLS_CC); - PHALCON_OBS_VAR(default_di); phalcon_read_static_property(&default_di, SL("phalcon\\di"), SL("_default") TSRMLS_CC); if (!zend_is_true(default_di)) { From 472257d907e14e41f00070726400d0469237e442 Mon Sep 17 00:00:00 2001 From: phalcon Date: Fri, 8 Mar 2013 23:55:46 -0500 Subject: [PATCH 4/7] Adding Phalcon\Validation improvements, Adding CONTRIBUTING[ci skip] --- CHANGELOG | 7 +- CONTRIBUTING.md | 10 + ext/config.m4 | 2 +- ext/config.w32 | 6 +- ext/db/adapter/pdo.c | 31 ++- ext/db/adapter/pdo.h | 6 + ext/forms/element.c | 19 +- ext/forms/element.h | 2 + ext/forms/element/password.c | 92 +++++++++ ext/forms/element/password.h | 34 ++++ ext/forms/element/text.c | 12 ++ ext/forms/form.c | 251 +++++++++++++++++++++++- ext/forms/form.h | 27 ++- ext/mvc/model.c | 82 ++++++-- ext/mvc/model.h | 3 + ext/mvc/router.c | 52 ++++- ext/mvc/router.h | 6 + ext/phalcon.c | 218 ++++++++++---------- ext/phalcon.h | 73 +++---- ext/validation/message/group.c | 38 ++++ ext/validation/message/group.h | 6 + ext/validation/validator.c | 4 +- ext/validation/validator/email.c | 2 + ext/validation/validator/exclusionin.c | 2 + ext/validation/validator/identical.c | 2 + ext/validation/validator/inclusionin.c | 2 + ext/validation/validator/presenceof.c | 2 + ext/validation/validator/regex.c | 5 +- ext/validation/validator/stringlength.c | 222 +++++++++++++++++++++ ext/validation/validator/stringlength.h | 35 ++++ ext/validation/validatorinterface.c | 56 ++++++ ext/validation/validatorinterface.h | 38 ++++ ext/version.c | 2 +- 33 files changed, 1164 insertions(+), 185 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 ext/forms/element/password.c create mode 100644 ext/forms/element/password.h create mode 100644 ext/validation/validator/stringlength.c create mode 100644 ext/validation/validator/stringlength.h create mode 100644 ext/validation/validatorinterface.c create mode 100644 ext/validation/validatorinterface.h diff --git a/CHANGELOG b/CHANGELOG index 58b8944b321..75f4d381314 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +1.0.0b2 + - Added Phalcon\Mvc\Router::setUriSource to set if the URI source must be $_GET['_url'] or $_SERVER['REQUEST_URI'] + - Added a white-list parameter to Phalcon\Mvc\Model::save(), Phalcon\Mvc\Model::create() and + Phalcon\Mvc\Model::update() to avoid possible mass-assigment attacks + 1.0.0b1 - Fixed bug with missing blocks in multiple inheritance in Volt - Support for ternary operator in Volt @@ -10,7 +15,7 @@ - Added Phalcon\Logger\Adapter::setLogLevel to filter messages with greater or less priority - Removed constructor from Phalcon\Cache\BackendInterface - Added Phalcon\Cache\Multiple, this backend writes to several backends, and reads data according to the order in which backends were registered. - - Now a model can use a separate connection to read and other to write, this makes horizontal sharding easy + - Now a model can use a separate connection to read and another to write, this makes horizontal sharding easy - Now, a model could implement a method selectReadConnection to dynamically return the correct database according to the current query conditions - Added Phalcon\Cache\Backend\Memory to cache data in the current request - Added Phalcon\Validation, this component allows the validate a set of data based on pre-defined rules diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000000..b6dae9fee47 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,10 @@ +Phalcon is an open source project and a volunteer effort. + +*We only accept bug reports, new feature requests and pull requests in GitHub*. + +If you have a question about how to use Phalcon, please see the [support page](http://phalconphp.com/support). + +If you have a change or new feature in mind, please fill an [NFR](https://github.com/phalcon/cphalcon/wiki/New-Feature-Request---NFR). + +Thanks!
+Phalcon Team \ No newline at end of file diff --git a/ext/config.m4 b/ext/config.m4 index e0bd0470db5..c288590263b 100755 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -2,5 +2,5 @@ PHP_ARG_ENABLE(phalcon, whether to enable phalcon framework, [ --enable-phalcon if test "$PHP_PHALCON" = "yes"; then AC_DEFINE(HAVE_PHALCON, 1, [Whether you have Phalcon Framework]) - PHP_NEW_EXTENSION(phalcon, phalcon.c kernel/main.c kernel/fcall.c kernel/require.c kernel/debug.c kernel/assert.c kernel/object.c kernel/array.c kernel/string.c kernel/filter.c kernel/operators.c kernel/concat.c kernel/exception.c kernel/file.c kernel/memory.c kernel/experimental/fcall.c logger.c flash.c cli/dispatcher/exception.c cli/console.c cli/router.c cli/task.c cli/router/exception.c cli/dispatcher.c cli/console/exception.c security/exception.c db/dialect/sqlite.c db/dialect/mysql.c db/dialect/postgresql.c db/result/pdo.c db/column.c db/index.c db/profiler/item.c db/indexinterface.c db/dialectinterface.c db/resultinterface.c db/profiler.c db/referenceinterface.c db/adapter/pdo/sqlite.c db/adapter/pdo/mysql.c db/adapter/pdo/postgresql.c db/adapter/pdo.c db/exception.c db/reference.c db/adapterinterface.c db/dialect.c db/adapter.c db/rawvalue.c db/columninterface.c forms/form.c forms/manager.c forms/element/text.c forms/exception.c forms/element.c http/response.c http/requestinterface.c http/request.c http/cookie.c http/request/file.c http/request/exception.c http/request/fileinterface.c http/responseinterface.c http/cookie/exception.c http/response/cookies.c http/response/exception.c http/response/headers.c http/response/headersinterface.c dispatcherinterface.c di.c loader/exception.c db.c text.c tag.c mvc/controller.c mvc/dispatcher/exception.c mvc/application/exception.c mvc/router.c mvc/micro.c mvc/micro/exception.c mvc/micro/collection.c mvc/dispatcherinterface.c mvc/collection/managerinterface.c mvc/collection/manager.c mvc/collection/exception.c mvc/routerinterface.c mvc/urlinterface.c mvc/user/component.c mvc/user/plugin.c mvc/user/module.c mvc/url.c mvc/model.c mvc/view.c mvc/modelinterface.c mvc/router/group.c mvc/router/route.c mvc/router/annotations.c mvc/router/exception.c mvc/router/routeinterface.c mvc/url/exception.c mvc/viewinterface.c mvc/collection.c mvc/dispatcher.c mvc/collectioninterface.c mvc/view/engine/php.c mvc/view/engine/volt/compiler.c mvc/view/engine/volt.c mvc/view/exception.c mvc/view/engineinterface.c mvc/view/engine.c mvc/application.c mvc/controllerinterface.c mvc/moduledefinitioninterface.c mvc/model/metadata/files.c mvc/model/metadata/strategy/introspection.c mvc/model/metadata/strategy/annotations.c mvc/model/metadata/apc.c mvc/model/metadata/memory.c mvc/model/metadata/session.c mvc/model/transaction.c mvc/model/validatorinterface.c mvc/model/metadata.c mvc/model/resultsetinterface.c mvc/model/managerinterface.c mvc/model/behavior.c mvc/model/query/builder.c mvc/model/query/lang.c mvc/model/query/statusinterface.c mvc/model/query/status.c mvc/model/query/builderinterface.c mvc/model/resultinterface.c mvc/model/criteriainterface.c mvc/model/query.c mvc/model/resultset.c mvc/model/manager.c mvc/model/behaviorinterface.c mvc/model/relation.c mvc/model/exception.c mvc/model/message.c mvc/model/transaction/failed.c mvc/model/transaction/managerinterface.c mvc/model/transaction/manager.c mvc/model/transaction/exception.c mvc/model/queryinterface.c mvc/model/row.c mvc/model/criteria.c mvc/model/validator/email.c mvc/model/validator/presenceof.c mvc/model/validator/inclusionin.c mvc/model/validator/exclusionin.c mvc/model/validator/uniqueness.c mvc/model/validator/url.c mvc/model/validator/regex.c mvc/model/validator/numericality.c mvc/model/validator/stringlength.c mvc/model/resultset/complex.c mvc/model/resultset/simple.c mvc/model/behavior/timestampable.c mvc/model/behavior/softdelete.c mvc/model/validator.c mvc/model/metadatainterface.c mvc/model/relationinterface.c mvc/model/messageinterface.c mvc/model/transactioninterface.c config/adapter/ini.c config/exception.c filterinterface.c logger/multiple.c logger/formatter/json.c logger/formatter/line.c logger/formatter/syslog.c logger/formatter.c logger/adapter/file.c logger/adapter/stream.c logger/adapter/syslog.c logger/exception.c logger/adapterinterface.c logger/formatterinterface.c logger/adapter.c logger/item.c filter/exception.c queue/beanstalk.c queue/beanstalk/job.c acl.c escaper/exception.c loader.c tag/select.c tag/exception.c acl/resource.c acl/resourceinterface.c acl/adapter/memory.c acl/exception.c acl/role.c acl/adapterinterface.c acl/adapter.c acl/roleinterface.c exception.c filter.c dispatcher.c cache/multiple.c cache/frontend/none.c cache/frontend/base64.c cache/frontend/data.c cache/frontend/output.c cache/backend/file.c cache/backend/apc.c cache/backend/mongo.c cache/backend/memcache.c cache/backend/memory.c cache/exception.c cache/backendinterface.c cache/frontendinterface.c cache/backend.c session/bag.c session/adapter/files.c session/exception.c session/baginterface.c session/adapterinterface.c session/adapter.c diinterface.c escaper.c config.c events/managerinterface.c events/manager.c events/event.c events/exception.c events/eventsawareinterface.c escaperinterface.c validation.c version.c flashinterface.c kernel.c paginator/adapter/model.c paginator/adapter/nativearray.c paginator/exception.c paginator/adapterinterface.c di/injectable.c di/factorydefault.c di/service/builder.c di/serviceinterface.c di/factorydefault/cli.c di/exception.c di/injectionawareinterface.c di/service.c security.c translate.c annotations/reflection.c annotations/annotation.c annotations/readerinterface.c annotations/adapter/files.c annotations/adapter/apc.c annotations/adapter/memory.c annotations/exception.c annotations/collection.c annotations/adapterinterface.c annotations/adapter.c annotations/reader.c flash/direct.c flash/exception.c flash/session.c translate/adapter/nativearray.c translate/exception.c translate/adapterinterface.c translate/adapter.c validation/message/group.c validation/exception.c validation/message.c validation/validator/email.c validation/validator/presenceof.c validation/validator/regex.c validation/validator/exclusionin.c validation/validator/identical.c validation/validator/inclusionin.c validation/validator.c session.c mvc/model/query/parser.c mvc/model/query/scanner.c mvc/view/engine/volt/parser.c mvc/view/engine/volt/scanner.c annotations/parser.c annotations/scanner.c, $ext_shared) + PHP_NEW_EXTENSION(phalcon, phalcon.c kernel/main.c kernel/fcall.c kernel/require.c kernel/debug.c kernel/assert.c kernel/object.c kernel/array.c kernel/string.c kernel/filter.c kernel/operators.c kernel/concat.c kernel/exception.c kernel/file.c kernel/memory.c kernel/experimental/fcall.c logger.c flash.c cli/dispatcher/exception.c cli/console.c cli/router.c cli/task.c cli/router/exception.c cli/dispatcher.c cli/console/exception.c security/exception.c db/dialect/sqlite.c db/dialect/mysql.c db/dialect/postgresql.c db/result/pdo.c db/column.c db/index.c db/profiler/item.c db/indexinterface.c db/dialectinterface.c db/resultinterface.c db/profiler.c db/referenceinterface.c db/adapter/pdo/sqlite.c db/adapter/pdo/mysql.c db/adapter/pdo/postgresql.c db/adapter/pdo.c db/exception.c db/reference.c db/adapterinterface.c db/dialect.c db/adapter.c db/rawvalue.c db/columninterface.c forms/form.c forms/manager.c forms/element/password.c forms/element/text.c forms/exception.c forms/element.c http/response.c http/requestinterface.c http/request.c http/cookie.c http/request/file.c http/request/exception.c http/request/fileinterface.c http/responseinterface.c http/cookie/exception.c http/response/cookies.c http/response/exception.c http/response/headers.c http/response/headersinterface.c dispatcherinterface.c di.c loader/exception.c db.c text.c tag.c mvc/controller.c mvc/dispatcher/exception.c mvc/application/exception.c mvc/router.c mvc/micro.c mvc/micro/exception.c mvc/micro/collection.c mvc/dispatcherinterface.c mvc/collection/managerinterface.c mvc/collection/manager.c mvc/collection/exception.c mvc/routerinterface.c mvc/urlinterface.c mvc/user/component.c mvc/user/plugin.c mvc/user/module.c mvc/url.c mvc/model.c mvc/view.c mvc/modelinterface.c mvc/router/group.c mvc/router/route.c mvc/router/annotations.c mvc/router/exception.c mvc/router/routeinterface.c mvc/url/exception.c mvc/viewinterface.c mvc/collection.c mvc/dispatcher.c mvc/collectioninterface.c mvc/view/engine/php.c mvc/view/engine/volt/compiler.c mvc/view/engine/volt.c mvc/view/exception.c mvc/view/engineinterface.c mvc/view/engine.c mvc/application.c mvc/controllerinterface.c mvc/moduledefinitioninterface.c mvc/model/metadata/files.c mvc/model/metadata/strategy/introspection.c mvc/model/metadata/strategy/annotations.c mvc/model/metadata/apc.c mvc/model/metadata/memory.c mvc/model/metadata/session.c mvc/model/transaction.c mvc/model/validatorinterface.c mvc/model/metadata.c mvc/model/resultsetinterface.c mvc/model/managerinterface.c mvc/model/behavior.c mvc/model/query/builder.c mvc/model/query/lang.c mvc/model/query/statusinterface.c mvc/model/query/status.c mvc/model/query/builderinterface.c mvc/model/resultinterface.c mvc/model/criteriainterface.c mvc/model/query.c mvc/model/resultset.c mvc/model/manager.c mvc/model/behaviorinterface.c mvc/model/relation.c mvc/model/exception.c mvc/model/message.c mvc/model/transaction/failed.c mvc/model/transaction/managerinterface.c mvc/model/transaction/manager.c mvc/model/transaction/exception.c mvc/model/queryinterface.c mvc/model/row.c mvc/model/criteria.c mvc/model/validator/email.c mvc/model/validator/presenceof.c mvc/model/validator/inclusionin.c mvc/model/validator/exclusionin.c mvc/model/validator/uniqueness.c mvc/model/validator/url.c mvc/model/validator/regex.c mvc/model/validator/numericality.c mvc/model/validator/stringlength.c mvc/model/resultset/complex.c mvc/model/resultset/simple.c mvc/model/behavior/timestampable.c mvc/model/behavior/softdelete.c mvc/model/validator.c mvc/model/metadatainterface.c mvc/model/relationinterface.c mvc/model/messageinterface.c mvc/model/transactioninterface.c config/adapter/ini.c config/exception.c filterinterface.c logger/multiple.c logger/formatter/json.c logger/formatter/line.c logger/formatter/syslog.c logger/formatter.c logger/adapter/file.c logger/adapter/stream.c logger/adapter/syslog.c logger/exception.c logger/adapterinterface.c logger/formatterinterface.c logger/adapter.c logger/item.c filter/exception.c queue/beanstalk.c queue/beanstalk/job.c acl.c escaper/exception.c loader.c tag/select.c tag/exception.c acl/resource.c acl/resourceinterface.c acl/adapter/memory.c acl/exception.c acl/role.c acl/adapterinterface.c acl/adapter.c acl/roleinterface.c exception.c filter.c dispatcher.c cache/multiple.c cache/frontend/none.c cache/frontend/base64.c cache/frontend/data.c cache/frontend/output.c cache/backend/file.c cache/backend/apc.c cache/backend/mongo.c cache/backend/memcache.c cache/backend/memory.c cache/exception.c cache/backendinterface.c cache/frontendinterface.c cache/backend.c session/bag.c session/adapter/files.c session/exception.c session/baginterface.c session/adapterinterface.c session/adapter.c diinterface.c escaper.c config.c events/managerinterface.c events/manager.c events/event.c events/exception.c events/eventsawareinterface.c escaperinterface.c validation.c version.c flashinterface.c kernel.c paginator/adapter/model.c paginator/adapter/nativearray.c paginator/exception.c paginator/adapterinterface.c di/injectable.c di/factorydefault.c di/service/builder.c di/serviceinterface.c di/factorydefault/cli.c di/exception.c di/injectionawareinterface.c di/service.c security.c translate.c annotations/reflection.c annotations/annotation.c annotations/readerinterface.c annotations/adapter/files.c annotations/adapter/apc.c annotations/adapter/memory.c annotations/exception.c annotations/collection.c annotations/adapterinterface.c annotations/adapter.c annotations/reader.c flash/direct.c flash/exception.c flash/session.c translate/adapter/nativearray.c translate/exception.c translate/adapterinterface.c translate/adapter.c validation/validatorinterface.c validation/message/group.c validation/exception.c validation/message.c validation/validator/email.c validation/validator/presenceof.c validation/validator/regex.c validation/validator/exclusionin.c validation/validator/identical.c validation/validator/inclusionin.c validation/validator/stringlength.c validation/validator.c session.c mvc/model/query/parser.c mvc/model/query/scanner.c mvc/view/engine/volt/parser.c mvc/view/engine/volt/scanner.c annotations/parser.c annotations/scanner.c, $ext_shared) fi diff --git a/ext/config.w32 b/ext/config.w32 index 6972e34d557..119c16d9020 100755 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -19,7 +19,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES("ext/phalcon/db/adapter/pdo", "sqlite.c mysql.c postgresql.c", "phalcon") ADD_SOURCES("ext/phalcon/db/adapter", "pdo.c", "phalcon") ADD_SOURCES("ext/phalcon/forms", "form.c manager.c exception.c element.c", "phalcon") - ADD_SOURCES("ext/phalcon/forms/element", "text.c", "phalcon") + ADD_SOURCES("ext/phalcon/forms/element", "password.c text.c", "phalcon") ADD_SOURCES("ext/phalcon/http", "response.c requestinterface.c request.c cookie.c responseinterface.c", "phalcon") ADD_SOURCES("ext/phalcon/http/request", "file.c exception.c fileinterface.c", "phalcon") ADD_SOURCES("ext/phalcon/http/cookie", "exception.c", "phalcon") @@ -69,7 +69,7 @@ if (PHP_PHALCON != "no") { ADD_SOURCES("ext/phalcon/flash", "direct.c exception.c session.c", "phalcon") ADD_SOURCES("ext/phalcon/translate/adapter", "nativearray.c", "phalcon") ADD_SOURCES("ext/phalcon/translate", "exception.c adapterinterface.c adapter.c", "phalcon") + ADD_SOURCES("ext/phalcon/validation", "validatorinterface.c exception.c message.c validator.c", "phalcon") ADD_SOURCES("ext/phalcon/validation/message", "group.c", "phalcon") - ADD_SOURCES("ext/phalcon/validation", "exception.c message.c validator.c", "phalcon") - ADD_SOURCES("ext/phalcon/validation/validator", "email.c presenceof.c regex.c exclusionin.c identical.c inclusionin.c", "phalcon") + ADD_SOURCES("ext/phalcon/validation/validator", "email.c presenceof.c regex.c exclusionin.c identical.c inclusionin.c stringlength.c", "phalcon") } diff --git a/ext/db/adapter/pdo.c b/ext/db/adapter/pdo.c index 95ff5b11f6e..3e23adf5fd0 100644 --- a/ext/db/adapter/pdo.c +++ b/ext/db/adapter/pdo.c @@ -244,6 +244,35 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect){ PHALCON_MM_RESTORE();} +/** + * Returns a PDO prepared statement to be executed with 'executePrepared' + * + * + * $statement = $db->prepare('SELECT * FROM robots WHERE name = :name'); + * $result = $connection->executePrepared($statement, array('name' => 'Voltron')); + * + * + * @param string $sqlStatement + * @return \PDOStatement + */ +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare){ + + zval *sql_statement, *pdo, *statement; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &sql_statement) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(pdo); + phalcon_read_property(&pdo, this_ptr, SL("_pdo"), PH_NOISY_CC); + + PHALCON_INIT_VAR(statement); + PHALCON_CALL_METHOD_PARAMS_1(statement, pdo, "prepare", sql_statement); + RETURN_CCTOR(statement); +} + /** * Executes a prepared statement binding. This function uses integer indexes starting from zero * @@ -533,7 +562,7 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute){ * Returns the number of affected rows by the lastest INSERT/UPDATE/DELETE executed in the database system * * - * $connection->query("DELETE FROM robots"); + * $connection->execute("DELETE FROM robots"); * echo $connection->affectedRows(), ' were deleted'; * * diff --git a/ext/db/adapter/pdo.h b/ext/db/adapter/pdo.h index 49ec81db668..532089f4a9c 100644 --- a/ext/db/adapter/pdo.h +++ b/ext/db/adapter/pdo.h @@ -23,6 +23,7 @@ PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo); PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct); PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect); +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare); PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared); PHP_METHOD(Phalcon_Db_Adapter_Pdo, query); PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute); @@ -52,6 +53,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_connect, 0, 0, 0) ZEND_ARG_INFO(0, descriptor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_prepare, 0, 0, 1) + ZEND_ARG_INFO(0, sqlStatement) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_executeprepared, 0, 0, 3) ZEND_ARG_INFO(0, statement) ZEND_ARG_INFO(0, placeholders) @@ -110,6 +115,7 @@ ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ PHP_ME(Phalcon_Db_Adapter_Pdo, __construct, arginfo_phalcon_db_adapter_pdo___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Db_Adapter_Pdo, connect, arginfo_phalcon_db_adapter_pdo_connect, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo, prepare, arginfo_phalcon_db_adapter_pdo_prepare, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, executePrepared, arginfo_phalcon_db_adapter_pdo_executeprepared, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, query, arginfo_phalcon_db_adapter_pdo_query, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, execute, arginfo_phalcon_db_adapter_pdo_execute, ZEND_ACC_PUBLIC) diff --git a/ext/forms/element.c b/ext/forms/element.c index 2d45b85729a..ad50c23341d 100644 --- a/ext/forms/element.c +++ b/ext/forms/element.c @@ -34,11 +34,12 @@ #include "kernel/object.h" #include "kernel/exception.h" +#include "kernel/fcall.h" /** * Phalcon\Forms\Element * - * This is a base class for elements of forms + * This is a base class for form elements */ @@ -147,3 +148,19 @@ PHP_METHOD(Phalcon_Forms_Element, getValidators){ RETURN_MEMBER(this_ptr, "_validators"); } +/** + * Magic method __toString renders the widget without atttributes + * + * @return string + */ +PHP_METHOD(Phalcon_Forms_Element, __toString){ + + zval *content; + + PHALCON_MM_GROW(); + + PHALCON_INIT_VAR(content); + PHALCON_CALL_METHOD(content, this_ptr, "render"); + RETURN_CCTOR(content); +} + diff --git a/ext/forms/element.h b/ext/forms/element.h index 716405ea093..05c9aa1217b 100644 --- a/ext/forms/element.h +++ b/ext/forms/element.h @@ -27,6 +27,7 @@ PHP_METHOD(Phalcon_Forms_Element, getName); PHP_METHOD(Phalcon_Forms_Element, addValidators); PHP_METHOD(Phalcon_Forms_Element, addValidator); PHP_METHOD(Phalcon_Forms_Element, getValidators); +PHP_METHOD(Phalcon_Forms_Element, __toString); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) @@ -51,6 +52,7 @@ PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, __toString, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/forms/element/password.c b/ext/forms/element/password.c new file mode 100644 index 00000000000..92b685829a2 --- /dev/null +++ b/ext/forms/element/password.c @@ -0,0 +1,92 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_phalcon.h" +#include "phalcon.h" + +#include "Zend/zend_operators.h" +#include "Zend/zend_exceptions.h" +#include "Zend/zend_interfaces.h" + +#include "kernel/main.h" +#include "kernel/memory.h" + +#include "kernel/object.h" +#include "kernel/array.h" +#include "kernel/fcall.h" + +/** + * Phalcon\Forms\Element\Password + * + * Text component INPUT[type=password] for forms + */ + + +/** + * Phalcon\Forms\Element\Password initializer + */ +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Password, forms_element_password, "phalcon\\forms\\element", phalcon_forms_element_password_method_entry, 0); + + return SUCCESS; +} + +/** + * Renders the element widget + * + * @return string + */ +PHP_METHOD(Phalcon_Forms_Element_Password, render){ + + zval *attributes = NULL, *name, *widget_attributes = NULL; + zval *code; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &attributes) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!attributes) { + PHALCON_INIT_VAR(attributes); + } + + PHALCON_OBS_VAR(name); + phalcon_read_property(&name, this_ptr, SL("_name"), PH_NOISY_CC); + if (Z_TYPE_P(attributes) != IS_ARRAY) { + PHALCON_INIT_VAR(widget_attributes); + array_init(widget_attributes); + } else { + PHALCON_CPY_WRT(widget_attributes, attributes); + } + + phalcon_array_update_long(&widget_attributes, 0, &name, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_VAR(code); + PHALCON_CALL_STATIC_PARAMS_1(code, "phalcon\\tag", "passwordfield", widget_attributes); + + RETURN_CCTOR(code); +} + diff --git a/ext/forms/element/password.h b/ext/forms/element/password.h new file mode 100644 index 00000000000..16864fcc36c --- /dev/null +++ b/ext/forms/element/password.h @@ -0,0 +1,34 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +extern zend_class_entry *phalcon_forms_element_password_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password); + +PHP_METHOD(Phalcon_Forms_Element_Password, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_password_render, 0, 0, 0) + ZEND_ARG_INFO(0, attributes) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_forms_element_password_method_entry){ + PHP_ME(Phalcon_Forms_Element_Password, render, arginfo_phalcon_forms_element_password_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + diff --git a/ext/forms/element/text.c b/ext/forms/element/text.c index a149d8b388a..e561e4555c7 100644 --- a/ext/forms/element/text.c +++ b/ext/forms/element/text.c @@ -36,6 +36,13 @@ #include "kernel/array.h" #include "kernel/fcall.h" +/** + * Phalcon\Forms\Element\Text + * + * Text component INPUT[type=text] for forms + */ + + /** * Phalcon\Forms\Element\Text initializer */ @@ -46,6 +53,11 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Element_Text){ return SUCCESS; } +/** + * Renders the element widget + * + * @return string + */ PHP_METHOD(Phalcon_Forms_Element_Text, render){ zval *attributes = NULL, *name, *widget_attributes = NULL; diff --git a/ext/forms/form.c b/ext/forms/form.c index 32cff939fc0..4683cb476e0 100644 --- a/ext/forms/form.c +++ b/ext/forms/form.c @@ -35,9 +35,17 @@ #include "kernel/exception.h" #include "kernel/object.h" #include "kernel/fcall.h" +#include "kernel/file.h" #include "kernel/array.h" #include "kernel/concat.h" +/** + * Phalcon\Forms\Form + * + * This component allows to build forms + */ + + /** * Phalcon\Forms\Form initializer */ @@ -47,40 +55,231 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Form){ zend_declare_property_null(phalcon_forms_form_ce, SL("_entity"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_forms_form_ce, SL("_elements"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_forms_form_ce, SL("_messages"), ZEND_ACC_PROTECTED TSRMLS_CC); return SUCCESS; } /** * Phalcon\Forms\Form constructor + * + * @param boolean $entity */ PHP_METHOD(Phalcon_Forms_Form, __construct){ - zval *entity; + zval *entity = NULL; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &entity) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &entity) == FAILURE) { RETURN_MM_NULL(); } - if (Z_TYPE_P(entity) != IS_OBJECT) { - PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); - return; + if (!entity) { + PHALCON_INIT_VAR(entity); + } + + if (Z_TYPE_P(entity) != IS_NULL) { + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); + return; + } + phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); } - phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); PHALCON_MM_RESTORE(); } +/** + * + * @param array|object $data + * @param object $entity + * @return boolean + */ PHP_METHOD(Phalcon_Forms_Form, isValid){ + zval *data = NULL, *entity = NULL, *elements, *failed = NULL, *messages; + zval *element = NULL, *validators = NULL, *validation = NULL, *element_messages = NULL; + zval *name = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &entity) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!data) { + PHALCON_INIT_VAR(data); + } + + if (!entity) { + PHALCON_INIT_VAR(entity); + } else { + PHALCON_SEPARATE_PARAM(entity); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (Z_TYPE_P(elements) == IS_ARRAY) { + + /** + * If the user doesn't pass an entity we use the one in this_ptr->_entity + */ + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_OBS_NVAR(entity); + phalcon_read_property(&entity, this_ptr, SL("_entity"), PH_NOISY_CC); + } + + PHALCON_INIT_VAR(failed); + ZVAL_BOOL(failed, 0); + + PHALCON_INIT_VAR(messages); + array_init(messages); + + if (!phalcon_is_iterable(elements, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_VALUE(element); + PHALCON_INIT_NVAR(validators); + PHALCON_CALL_METHOD(validators, element, "getvalidators"); + if (Z_TYPE_P(validators) == IS_ARRAY) { + + PHALCON_INIT_NVAR(validation); + object_init_ex(validation, phalcon_validation_ce); + + PHALCON_INIT_NVAR(element_messages); + PHALCON_CALL_METHOD_PARAMS_2(element_messages, validation, "validate", data, entity); + if (phalcon_fast_count_ev(element_messages TSRMLS_CC)) { + PHALCON_INIT_NVAR(name); + PHALCON_CALL_METHOD(name, element, "getname"); + phalcon_array_update_zval(&messages, name, &element_messages, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_NVAR(failed); + ZVAL_BOOL(failed, 1); + } + } + + zend_hash_move_forward_ex(ah0, &hp0); + } + + /** + * If the validation fails + */ + if (zend_is_true(failed)) { + phalcon_update_property_zval(this_ptr, SL("_messages"), messages TSRMLS_CC); + } + + + RETURN_NCTOR(failed); + } + + PHALCON_MM_RESTORE(); } /** + * Returns the messages generated in the validation * + * @return array + */ +PHP_METHOD(Phalcon_Forms_Form, getMessages){ + + zval *by_item_name = NULL, *messages, *group = NULL, *element_messages = NULL; + zval *element = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &by_item_name) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!by_item_name) { + PHALCON_INIT_VAR(by_item_name); + ZVAL_BOOL(by_item_name, 1); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (zend_is_true(by_item_name)) { + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + RETURN_CTOR(group); + } + + RETURN_CCTOR(messages); + } + + PHALCON_INIT_NVAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + if (!phalcon_is_iterable(messages, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_KEY(element, ah0, hp0); + PHALCON_GET_FOREACH_VALUE(element_messages); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(group, "appendmessages", element_messages); + + zend_hash_move_forward_ex(ah0, &hp0); + } + + + RETURN_CTOR(group); +} + +/** + * Returns the messages generated by + * + * @return Phalcon\Validation\Message\Group[] + */ +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor){ + + zval *name, *messages, *element_messages, *group; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (phalcon_array_isset(messages, name)) { + PHALCON_OBS_VAR(element_messages); + phalcon_array_fetch(&element_messages, messages, name, PH_NOISY_CC); + RETURN_CCTOR(element_messages); + } + + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + RETURN_CTOR(group); +} + +/** + * Adds an element to the form + * + * @param Phalcon\Forms\ElementInterface $element + * @return Phalcon\Forms\Form */ PHP_METHOD(Phalcon_Forms_Form, add){ @@ -101,9 +300,16 @@ PHP_METHOD(Phalcon_Forms_Form, add){ PHALCON_CALL_METHOD(name, element, "getname"); phalcon_update_property_array(this_ptr, SL("_elements"), name, element TSRMLS_CC); - RETURN_CCTOR(element); + RETURN_THIS(); } +/** + * Renders an specific item in the form + * + * @param string $name + * @param array $attributes + * @return string + */ PHP_METHOD(Phalcon_Forms_Form, render){ zval *name, *attributes = NULL, *elements, *exception_message; @@ -137,3 +343,34 @@ PHP_METHOD(Phalcon_Forms_Form, render){ RETURN_CCTOR(code); } +/** + * Returns an element added to the form by its name + * + * @param string $name + * @return Phalcon\Forms\ElementInterface + */ +PHP_METHOD(Phalcon_Forms_Form, get){ + + zval *name, *elements, *exception_message, *element; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (!phalcon_array_isset(elements, name)) { + PHALCON_INIT_VAR(exception_message); + PHALCON_CONCAT_SVS(exception_message, "Element with ID=", name, " is not part of the form"); + PHALCON_THROW_EXCEPTION_ZVAL(phalcon_forms_exception_ce, exception_message); + return; + } + + PHALCON_OBS_VAR(element); + phalcon_array_fetch(&element, elements, name, PH_NOISY_CC); + + RETURN_CCTOR(element); +} + diff --git a/ext/forms/form.h b/ext/forms/form.h index aaf73d1210e..f19dd98e44b 100644 --- a/ext/forms/form.h +++ b/ext/forms/form.h @@ -23,13 +23,29 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Form); PHP_METHOD(Phalcon_Forms_Form, __construct); PHP_METHOD(Phalcon_Forms_Form, isValid); +PHP_METHOD(Phalcon_Forms_Form, getMessages); +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor); PHP_METHOD(Phalcon_Forms_Form, add); PHP_METHOD(Phalcon_Forms_Form, render); +PHP_METHOD(Phalcon_Forms_Form, get); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 0) ZEND_ARG_INFO(0, entity) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_isvalid, 0, 0, 0) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, entity) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessages, 0, 0, 0) + ZEND_ARG_INFO(0, byItemName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessagesfor, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_add, 0, 0, 1) ZEND_ARG_INFO(0, element) ZEND_END_ARG_INFO() @@ -39,11 +55,18 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_render, 0, 0, 1) ZEND_ARG_INFO(0, attributes) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_get, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + PHALCON_INIT_FUNCS(phalcon_forms_form_method_entry){ PHP_ME(Phalcon_Forms_Form, __construct, arginfo_phalcon_forms_form___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Form, isValid, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, isValid, arginfo_phalcon_forms_form_isvalid, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessages, arginfo_phalcon_forms_form_getmessages, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessagesFor, arginfo_phalcon_forms_form_getmessagesfor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, add, arginfo_phalcon_forms_form_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, render, arginfo_phalcon_forms_form_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, get, arginfo_phalcon_forms_form_get, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/mvc/model.c b/ext/mvc/model.c index 09fb4c20647..918a11a3ca0 100755 --- a/ext/mvc/model.c +++ b/ext/mvc/model.c @@ -3644,12 +3644,13 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords){ * * * @param array $data + * @param array $whiteList * @return boolean */ PHP_METHOD(Phalcon_Mvc_Model, save){ - zval *data = NULL, *meta_data, *attributes, *attribute = NULL; - zval *value = NULL, *possible_setter = NULL, *write_connection; + zval *data = NULL, *white_list = NULL, *meta_data, *attributes; + zval *attribute = NULL, *value = NULL, *possible_setter = NULL, *write_connection; zval *related, *status = NULL, *schema, *source, *table = NULL, *read_connection; zval *exists, *empty_array, *identity_field; zval *success = NULL; @@ -3660,7 +3661,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -3668,6 +3669,10 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -3693,6 +3698,16 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ if (phalcon_array_isset(data, attribute)) { + /** + * If the white-list is an array check if the attribute is on that list + */ + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + /** * We check if the field has a setter */ @@ -3869,22 +3884,23 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ * * * @param array $data + * @param array $whiteList * @return boolean */ PHP_METHOD(Phalcon_Mvc_Model, create){ - zval *data = NULL, *meta_data, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *read_connection; - zval *exists, *field, *type, *message, *model_message; - zval *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *read_connection, *exists, *field, *type, *message; + zval *model_message, *messages, *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -3892,6 +3908,10 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -3946,6 +3966,16 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ */ if (phalcon_array_isset(data, attribute_field)) { + /** + * If the white-list is an array check if the attribute is on that list + */ + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + /** * The value in the array passed */ @@ -4025,22 +4055,24 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ * * * @param array $data + * @param array $whiteList * @return boolean */ PHP_METHOD(Phalcon_Mvc_Model, update){ - zval *data = NULL, *meta_data = NULL, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *dirty_state; - zval *read_connection, *exists, *field, *type, *message; - zval *model_message, *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data = NULL, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *dirty_state, *read_connection, *exists; + zval *field, *type, *message, *model_message, *messages; + zval *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -4048,6 +4080,10 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); /** @@ -4103,9 +4139,25 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ */ if (phalcon_array_isset(data, attribute_field)) { + /** + * If the white-list is an array check if the attribute is on that list + */ + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + + /** + * Reads the attribute from the data + */ PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); + /** + * Try to find a possible getter + */ PHALCON_INIT_NVAR(possible_setter); PHALCON_CONCAT_SV(possible_setter, "set", attribute_field); if (phalcon_method_exists(this_ptr, possible_setter TSRMLS_CC) == SUCCESS) { diff --git a/ext/mvc/model.h b/ext/mvc/model.h index 6325293dd04..5c9643aacf2 100644 --- a/ext/mvc/model.h +++ b/ext/mvc/model.h @@ -208,14 +208,17 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_save, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_create, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_update, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_skipoperation, 0, 0, 1) diff --git a/ext/mvc/router.c b/ext/mvc/router.c index 692aa428c76..1d636d3fe5a 100644 --- a/ext/mvc/router.c +++ b/ext/mvc/router.c @@ -75,6 +75,7 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ PHALCON_REGISTER_CLASS(Phalcon\\Mvc, Router, mvc_router, phalcon_mvc_router_method_entry, 0); zend_declare_property_null(phalcon_mvc_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_mvc_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_module"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_controller"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -92,6 +93,9 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ zend_declare_property_bool(phalcon_mvc_router_ce, SL("_removeExtraSlashes"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_GET_URL"), 0 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1 TSRMLS_CC); + zend_class_implements(phalcon_mvc_router_ce TSRMLS_CC, 2, phalcon_mvc_routerinterface_ce, phalcon_di_injectionawareinterface_ce); return SUCCESS; @@ -198,21 +202,29 @@ PHP_METHOD(Phalcon_Mvc_Router, getDI){ */ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ - zval *_GET, *url = NULL, *_SERVER, *question_mark, *url_parts; - zval *real_uri; + zval *uri_source, *_GET, *url = NULL, *_SERVER, *question_mark; + zval *url_parts, *real_uri; PHALCON_MM_GROW(); /** - * By default we use $_GET['url'] to obtain the rewrite information + * The developer can change the URI source */ - phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); - if (phalcon_array_isset_string(_GET, SS("_url"))) { + PHALCON_OBS_VAR(uri_source); + phalcon_read_property(&uri_source, this_ptr, SL("_uriSource"), PH_NOISY_CC); - PHALCON_OBS_VAR(url); - phalcon_array_fetch_string(&url, _GET, SL("_url"), PH_NOISY_CC); - if (PHALCON_IS_NOT_EMPTY(url)) { - RETURN_CCTOR(url); + /** + * By default we use $_GET['url'] to obtain the rewrite information + */ + if (!zend_is_true(uri_source)) { + phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); + if (phalcon_array_isset_string(_GET, SS("_url"))) { + + PHALCON_OBS_VAR(url); + phalcon_array_fetch_string(&url, _GET, SL("_url"), PH_NOISY_CC); + if (PHALCON_IS_NOT_EMPTY(url)) { + RETURN_CCTOR(url); + } } } else { /** @@ -237,10 +249,32 @@ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ } } } + PHALCON_MM_RESTORE(); RETURN_STRING("/", 1); } +/** + * Sets the URI source. One of the URI_SOURCE_* constants + * + * + * $router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI); + * + * + * @param string $uriSource + */ +PHP_METHOD(Phalcon_Mvc_Router, setUriSource){ + + zval *uri_source; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &uri_source) == FAILURE) { + RETURN_NULL(); + } + + phalcon_update_property_zval(this_ptr, SL("_uriSource"), uri_source TSRMLS_CC); + +} + /** * Set whether router must remove the extra slashes in the handled routes * diff --git a/ext/mvc/router.h b/ext/mvc/router.h index 6a510c7b45e..10d7f205a0c 100644 --- a/ext/mvc/router.h +++ b/ext/mvc/router.h @@ -25,6 +25,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct); PHP_METHOD(Phalcon_Mvc_Router, setDI); PHP_METHOD(Phalcon_Mvc_Router, getDI); PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri); +PHP_METHOD(Phalcon_Mvc_Router, setUriSource); PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes); PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace); PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule); @@ -63,6 +64,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seturisource, 0, 0, 1) + ZEND_ARG_INFO(0, uriSource) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_removeextraslashes, 0, 0, 1) ZEND_ARG_INFO(0, remove) ZEND_END_ARG_INFO() @@ -153,6 +158,7 @@ PHALCON_INIT_FUNCS(phalcon_mvc_router_method_entry){ PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDI, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, _getRewriteUri, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Router, setUriSource, arginfo_phalcon_mvc_router_seturisource, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, removeExtraSlashes, arginfo_phalcon_mvc_router_removeextraslashes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultModule, arginfo_phalcon_mvc_router_setdefaultmodule, ZEND_ACC_PUBLIC) diff --git a/ext/phalcon.c b/ext/phalcon.c index 590ad438e40..637809370a4 100755 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -33,25 +33,25 @@ #include "kernel/memory.h" -zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_tag_ce; zend_class_entry *phalcon_di_ce; +zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_db_ce; zend_class_entry *phalcon_text_ce; -zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_exception_ce; +zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_multiple_ce; +zend_class_entry *phalcon_cache_frontend_none_ce; +zend_class_entry *phalcon_cache_frontend_data_ce; zend_class_entry *phalcon_cache_backend_mongo_ce; +zend_class_entry *phalcon_cache_backend_apc_ce; zend_class_entry *phalcon_cache_backend_memory_ce; zend_class_entry *phalcon_cache_backend_file_ce; -zend_class_entry *phalcon_cache_backend_apc_ce; -zend_class_entry *phalcon_cache_frontend_data_ce; -zend_class_entry *phalcon_cache_frontend_none_ce; zend_class_entry *phalcon_cache_frontendinterface_ce; -zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_cache_frontend_base64_ce; zend_class_entry *phalcon_cache_backendinterface_ce; zend_class_entry *phalcon_cache_backend_memcache_ce; +zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_tag_select_ce; zend_class_entry *phalcon_tag_exception_ce; zend_class_entry *phalcon_paginator_exception_ce; @@ -59,33 +59,35 @@ zend_class_entry *phalcon_paginator_adapter_model_ce; zend_class_entry *phalcon_paginator_adapterinterface_ce; zend_class_entry *phalcon_paginator_adapter_nativearray_ce; zend_class_entry *phalcon_validation_ce; -zend_class_entry *phalcon_validation_validator_ce; -zend_class_entry *phalcon_validation_message_ce; zend_class_entry *phalcon_validation_exception_ce; +zend_class_entry *phalcon_validation_message_ce; +zend_class_entry *phalcon_validation_validator_ce; zend_class_entry *phalcon_validation_message_group_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_regex_ce; -zend_class_entry *phalcon_validation_validator_inclusionin_ce; -zend_class_entry *phalcon_validation_validator_identical_ce; -zend_class_entry *phalcon_validation_validator_presenceof_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; +zend_class_entry *phalcon_validation_validator_presenceof_ce; +zend_class_entry *phalcon_validation_validatorinterface_ce; +zend_class_entry *phalcon_validation_validator_identical_ce; +zend_class_entry *phalcon_validation_validator_inclusionin_ce; +zend_class_entry *phalcon_validation_validator_stringlength_ce; zend_class_entry *phalcon_db_index_ce; -zend_class_entry *phalcon_db_reference_ce; -zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_adapter_ce; +zend_class_entry *phalcon_db_rawvalue_ce; +zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_exception_ce; zend_class_entry *phalcon_db_dialect_ce; -zend_class_entry *phalcon_db_rawvalue_ce; zend_class_entry *phalcon_db_profiler_ce; +zend_class_entry *phalcon_db_reference_ce; zend_class_entry *phalcon_db_adapter_pdo_ce; -zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; +zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; zend_class_entry *phalcon_db_columninterface_ce; zend_class_entry *phalcon_db_dialect_mysql_ce; -zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialectinterface_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialect_postgresql_ce; zend_class_entry *phalcon_db_indexinterface_ce; zend_class_entry *phalcon_db_profiler_item_ce; @@ -102,18 +104,18 @@ zend_class_entry *phalcon_acl_roleinterface_ce; zend_class_entry *phalcon_acl_resourceinterface_ce; zend_class_entry *phalcon_version_ce; zend_class_entry *phalcon_security_ce; -zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_session_ce; +zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_security_exception_ce; zend_class_entry *phalcon_session_bag_ce; zend_class_entry *phalcon_session_adapter_ce; -zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_exception_ce; +zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_adapterinterface_ce; zend_class_entry *phalcon_session_adapter_files_ce; zend_class_entry *phalcon_filter_ce; -zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_service_ce; +zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_factorydefault_ce; zend_class_entry *phalcon_di_factorydefault_cli_ce; zend_class_entry *phalcon_di_injectable_ce; @@ -121,16 +123,16 @@ zend_class_entry *phalcon_di_injectionawareinterface_ce; zend_class_entry *phalcon_di_serviceinterface_ce; zend_class_entry *phalcon_di_service_builder_ce; zend_class_entry *phalcon_diinterface_ce; -zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_filter_exception_ce; +zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_dispatcher_ce; zend_class_entry *phalcon_dispatcherinterface_ce; zend_class_entry *phalcon_flash_ce; zend_class_entry *phalcon_cli_task_ce; zend_class_entry *phalcon_flash_direct_ce; +zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_flashinterface_ce; zend_class_entry *phalcon_flash_exception_ce; -zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_cli_console_ce; zend_class_entry *phalcon_cli_router_ce; zend_class_entry *phalcon_cli_dispatcher_ce; @@ -139,31 +141,31 @@ zend_class_entry *phalcon_cli_dispatcher_exception_ce; zend_class_entry *phalcon_cli_router_exception_ce; zend_class_entry *phalcon_annotations_reader_ce; zend_class_entry *phalcon_annotations_adapter_ce; -zend_class_entry *phalcon_annotations_adapter_apc_ce; -zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_reflection_ce; zend_class_entry *phalcon_annotations_annotation_ce; +zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_adapter_apc_ce; zend_class_entry *phalcon_annotations_exception_ce; -zend_class_entry *phalcon_annotations_reflection_ce; -zend_class_entry *phalcon_annotations_adapter_memory_ce; -zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_adapterinterface_ce; +zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_readerinterface_ce; +zend_class_entry *phalcon_annotations_adapter_memory_ce; zend_class_entry *phalcon_config_ce; -zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_logger_ce; +zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_loader_exception_ce; zend_class_entry *phalcon_logger_item_ce; -zend_class_entry *phalcon_logger_adapter_ce; -zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_formatter_ce; zend_class_entry *phalcon_logger_multiple_ce; +zend_class_entry *phalcon_logger_adapter_ce; +zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_adapter_file_ce; zend_class_entry *phalcon_logger_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_syslog_ce; zend_class_entry *phalcon_logger_formatter_json_ce; -zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatter_line_ce; zend_class_entry *phalcon_logger_adapter_stream_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatterinterface_ce; zend_class_entry *phalcon_config_exception_ce; zend_class_entry *phalcon_config_adapter_ini_ce; @@ -172,6 +174,7 @@ zend_class_entry *phalcon_forms_element_ce; zend_class_entry *phalcon_forms_exception_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_forms_element_text_ce; +zend_class_entry *phalcon_forms_element_password_ce; zend_class_entry *phalcon_translate_ce; zend_class_entry *phalcon_translate_adapter_ce; zend_class_entry *phalcon_translate_exception_ce; @@ -185,12 +188,12 @@ zend_class_entry *phalcon_http_cookie_ce; zend_class_entry *phalcon_http_response_ce; zend_class_entry *phalcon_http_request_file_ce; zend_class_entry *phalcon_http_cookie_exception_ce; +zend_class_entry *phalcon_http_requestinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_http_response_exception_ce; -zend_class_entry *phalcon_http_requestinterface_ce; +zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_exception_ce; zend_class_entry *phalcon_http_response_cookies_ce; -zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_fileinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_queue_beanstalk_ce; @@ -200,75 +203,75 @@ zend_class_entry *phalcon_mvc_url_ce; zend_class_entry *phalcon_mvc_router_ce; zend_class_entry *phalcon_mvc_model_ce; zend_class_entry *phalcon_mvc_micro_ce; -zend_class_entry *phalcon_mvc_router_group_ce; zend_class_entry *phalcon_mvc_controller_ce; -zend_class_entry *phalcon_mvc_router_route_ce; -zend_class_entry *phalcon_mvc_urlinterface_ce; +zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_view_engine_ce; +zend_class_entry *phalcon_mvc_dispatcher_ce; +zend_class_entry *phalcon_mvc_urlinterface_ce; zend_class_entry *phalcon_mvc_user_module_ce; zend_class_entry *phalcon_mvc_user_plugin_ce; -zend_class_entry *phalcon_mvc_dispatcher_ce; -zend_class_entry *phalcon_mvc_model_row_ce; +zend_class_entry *phalcon_mvc_router_group_ce; +zend_class_entry *phalcon_mvc_router_route_ce; zend_class_entry *phalcon_mvc_model_query_ce; -zend_class_entry *phalcon_mvc_application_ce; -zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_model_row_ce; zend_class_entry *phalcon_mvc_application_exception_ce; +zend_class_entry *phalcon_mvc_collection_exception_ce; +zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_collection_manager_ce; -zend_class_entry *phalcon_mvc_controllerinterface_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; zend_class_entry *phalcon_mvc_collection_managerinterface_ce; -zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; -zend_class_entry *phalcon_mvc_model_query_lang_ce; -zend_class_entry *phalcon_mvc_model_validator_ce; -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_model_exception_ce; -zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_model_metadata_ce; +zend_class_entry *phalcon_mvc_model_manager_ce; zend_class_entry *phalcon_mvc_micro_exception_ce; zend_class_entry *phalcon_mvc_micro_collection_ce; -zend_class_entry *phalcon_mvc_model_manager_ce; -zend_class_entry *phalcon_mvc_model_message_ce; +zend_class_entry *phalcon_mvc_model_criteria_ce; zend_class_entry *phalcon_mvc_model_relation_ce; +zend_class_entry *phalcon_mvc_model_query_lang_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; -zend_class_entry *phalcon_mvc_model_criteria_ce; +zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_ce; +zend_class_entry *phalcon_mvc_model_message_ce; zend_class_entry *phalcon_mvc_model_queryinterface_ce; zend_class_entry *phalcon_mvc_model_transaction_ce; -zend_class_entry *phalcon_mvc_model_query_status_ce; -zend_class_entry *phalcon_mvc_model_validator_url_ce; -zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_metadata_files_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_query_status_ce; zend_class_entry *phalcon_mvc_model_metadata_apc_ce; -zend_class_entry *phalcon_mvc_model_metadata_session_ce; -zend_class_entry *phalcon_mvc_model_managerinterface_ce; -zend_class_entry *phalcon_mvc_model_metadata_memory_ce; -zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_messageinterface_ce; -zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_metadatainterface_ce; +zend_class_entry *phalcon_mvc_model_relationinterface_ce; +zend_class_entry *phalcon_mvc_model_metadata_memory_ce; zend_class_entry *phalcon_mvc_model_resultset_simple_ce; -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; zend_class_entry *phalcon_mvc_model_transaction_failed_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; -zend_class_entry *phalcon_mvc_model_metadatainterface_ce; -zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; +zend_class_entry *phalcon_mvc_model_managerinterface_ce; zend_class_entry *phalcon_mvc_model_validator_email_ce; -zend_class_entry *phalcon_mvc_model_relationinterface_ce; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; -zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behavior_timestampable_ce; +zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; zend_class_entry *phalcon_mvc_model_query_builderinterface_ce; +zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_exclusionin_ce; zend_class_entry *phalcon_mvc_model_transaction_exception_ce; -zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; -zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; -zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; zend_class_entry *phalcon_mvc_model_transactioninterface_ce; -zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; zend_class_entry *phalcon_mvc_model_behavior_softdelete_ce; +zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_annotations_ce; zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_introspection_ce; @@ -279,10 +282,10 @@ zend_class_entry *phalcon_mvc_router_annotations_ce; zend_class_entry *phalcon_mvc_router_routeinterface_ce; zend_class_entry *phalcon_mvc_user_component_ce; zend_class_entry *phalcon_mvc_url_exception_ce; -zend_class_entry *phalcon_mvc_view_exception_ce; -zend_class_entry *phalcon_mvc_view_engine_php_ce; -zend_class_entry *phalcon_mvc_view_engine_volt_ce; zend_class_entry *phalcon_mvc_viewinterface_ce; +zend_class_entry *phalcon_mvc_view_engine_volt_ce; +zend_class_entry *phalcon_mvc_view_engine_php_ce; +zend_class_entry *phalcon_mvc_view_exception_ce; zend_class_entry *phalcon_mvc_view_engineinterface_ce; zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; zend_class_entry *phalcon_events_event_ce; @@ -323,6 +326,7 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); + PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); @@ -362,43 +366,43 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); - PHALCON_INIT(Phalcon_Session_BagInterface); - PHALCON_INIT(Phalcon_FilterInterface); + PHALCON_INIT(Phalcon_Annotations_ReaderInterface); + PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); + PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); - PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); - PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_EscaperInterface); - PHALCON_INIT(Phalcon_Acl_RoleInterface); - PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); - PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Session_AdapterInterface); + PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); + PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); - PHALCON_INIT(Phalcon_Db_Dialect); - PHALCON_INIT(Phalcon_Logger_Formatter); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo); - PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Annotations_Adapter); + PHALCON_INIT(Phalcon_Logger_Adapter); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo); + PHALCON_INIT(Phalcon_Logger_Formatter); + PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Dispatcher); - PHALCON_INIT(Phalcon_Mvc_Model_Resultset); - PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_View_Engine); + PHALCON_INIT(Phalcon_Forms_Element); + PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); + PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_DI_FactoryDefault); - PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Model_Exception); + PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); - PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); @@ -409,10 +413,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); + PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Output); - PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); @@ -422,25 +426,26 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Validation_Message_Group); - PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); + PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); + PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); - PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); + PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); - PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_RawValue); + PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_Acl_Role); @@ -463,8 +468,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Flash_Direct); - PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_Flash_Exception); + PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); @@ -475,29 +480,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); - PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Annotation); + PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); - PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); + PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Exception); - PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Json); - PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); + PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); + PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); - PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Exception); + PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Element_Text); + PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); @@ -514,10 +520,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); - PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Url); + PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection); @@ -538,30 +544,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); + PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); - PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); - PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); + PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Route); @@ -572,8 +578,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Exception); - PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); + PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); diff --git a/ext/phalcon.h b/ext/phalcon.h index f88eb821492..9a9ad3767e8 100755 --- a/ext/phalcon.h +++ b/ext/phalcon.h @@ -20,6 +20,7 @@ #include "di/injectionawareinterface.h" #include "mvc/model/validatorinterface.h" #include "events/eventsawareinterface.h" +#include "validation/validatorinterface.h" #include "cache/backendinterface.h" #include "mvc/model/metadatainterface.h" #include "cache/frontendinterface.h" @@ -59,43 +60,43 @@ #include "mvc/routerinterface.h" #include "mvc/model/relationinterface.h" #include "acl/resourceinterface.h" -#include "session/baginterface.h" -#include "filterinterface.h" +#include "annotations/readerinterface.h" +#include "acl/roleinterface.h" #include "acl/adapterinterface.h" +#include "session/baginterface.h" #include "mvc/model/messageinterface.h" -#include "session/adapterinterface.h" #include "di/serviceinterface.h" -#include "annotations/readerinterface.h" #include "events/managerinterface.h" #include "escaperinterface.h" -#include "acl/roleinterface.h" -#include "mvc/model/criteriainterface.h" -#include "translate/adapterinterface.h" +#include "session/adapterinterface.h" +#include "filterinterface.h" #include "mvc/model/transaction/managerinterface.h" +#include "translate/adapterinterface.h" +#include "mvc/model/criteriainterface.h" #include "db/adapter.h" #include "di.h" #include "mvc/model/validator.h" #include "validation/validator.h" #include "cache/backend.h" #include "mvc/model/metadata.h" -#include "db/dialect.h" -#include "logger/formatter.h" -#include "db/adapter/pdo.h" -#include "logger/adapter.h" #include "annotations/adapter.h" +#include "logger/adapter.h" +#include "db/adapter/pdo.h" +#include "logger/formatter.h" +#include "db/dialect.h" #include "dispatcher.h" -#include "mvc/model/resultset.h" -#include "flash.h" #include "mvc/view/engine.h" +#include "forms/element.h" +#include "flash.h" #include "mvc/model/behavior.h" +#include "mvc/model/resultset.h" #include "translate/adapter.h" #include "session/adapter.h" #include "di/factorydefault.h" -#include "pconfig.h" #include "mvc/model/exception.h" +#include "pconfig.h" #include "mvc/router.h" #include "acl/adapter.h" -#include "forms/element.h" #include "db.h" #include "acl.h" #include "tag.h" @@ -106,10 +107,10 @@ #include "cache/backend/memory.h" #include "cache/backend/mongo.h" #include "cache/backend/memcache.h" +#include "cache/frontend/data.h" #include "cache/frontend/base64.h" #include "cache/frontend/none.h" #include "cache/frontend/output.h" -#include "cache/frontend/data.h" #include "tag/select.h" #include "tag/exception.h" #include "paginator/exception.h" @@ -119,25 +120,26 @@ #include "validation/message.h" #include "validation/exception.h" #include "validation/message/group.h" -#include "validation/validator/regex.h" #include "validation/validator/email.h" +#include "validation/validator/regex.h" #include "validation/validator/identical.h" #include "validation/validator/inclusionin.h" +#include "validation/validator/stringlength.h" #include "validation/validator/exclusionin.h" #include "validation/validator/presenceof.h" #include "db/index.h" #include "db/column.h" -#include "db/adapter/pdo/mysql.h" #include "db/adapter/pdo/sqlite.h" +#include "db/adapter/pdo/mysql.h" #include "db/adapter/pdo/postgresql.h" -#include "db/dialect/mysql.h" #include "db/dialect/sqlite.h" +#include "db/dialect/mysql.h" #include "db/dialect/postgresql.h" #include "db/exception.h" #include "db/profiler.h" #include "db/profiler/item.h" -#include "db/reference.h" #include "db/rawvalue.h" +#include "db/reference.h" #include "db/result/pdo.h" #include "db/resultinterface.h" #include "acl/role.h" @@ -160,8 +162,8 @@ #include "di/service/builder.h" #include "filter/exception.h" #include "flash/direct.h" -#include "flash/session.h" #include "flash/exception.h" +#include "flash/session.h" #include "cli/task.h" #include "cli/router.h" #include "cli/console.h" @@ -172,29 +174,30 @@ #include "annotations/reader.h" #include "annotations/exception.h" #include "annotations/adapter/apc.h" -#include "annotations/reflection.h" #include "annotations/annotation.h" +#include "annotations/reflection.h" #include "annotations/collection.h" #include "annotations/adapter/files.h" #include "annotations/adapter/memory.h" -#include "loader.h" #include "logger.h" +#include "loader.h" #include "loader/exception.h" #include "logger/item.h" #include "logger/multiple.h" #include "logger/exception.h" -#include "logger/formatter/line.h" #include "logger/formatter/json.h" -#include "logger/adapter/file.h" #include "logger/adapter/syslog.h" +#include "logger/adapter/file.h" #include "logger/adapter/stream.h" +#include "logger/formatter/line.h" #include "logger/formatter/syslog.h" -#include "config/adapter/ini.h" #include "config/exception.h" +#include "config/adapter/ini.h" #include "forms/form.h" #include "forms/exception.h" #include "forms/manager.h" #include "forms/element/text.h" +#include "forms/element/password.h" #include "translate.h" #include "translate/exception.h" #include "translate/adapter/nativearray.h" @@ -211,10 +214,10 @@ #include "http/response/exception.h" #include "queue/beanstalk.h" #include "queue/beanstalk/job.h" -#include "mvc/view.h" #include "mvc/micro.h" #include "mvc/model.h" #include "mvc/url.h" +#include "mvc/view.h" #include "mvc/application.h" #include "mvc/application/exception.h" #include "mvc/collection.h" @@ -235,30 +238,30 @@ #include "mvc/model/relation.h" #include "mvc/model/query/lang.h" #include "mvc/model/transaction.h" +#include "mvc/model/query/builder.h" +#include "mvc/model/metadata/files.h" #include "mvc/model/metadata/apc.h" #include "mvc/model/query/status.h" -#include "mvc/model/metadata/files.h" -#include "mvc/model/query/builder.h" #include "mvc/model/validator/url.h" -#include "mvc/model/validator/regex.h" #include "mvc/model/metadata/memory.h" -#include "mvc/model/metadata/session.h" #include "mvc/model/resultset/simple.h" #include "mvc/model/resultset/complex.h" +#include "mvc/model/validator/regex.h" +#include "mvc/model/metadata/session.h" #include "mvc/model/validator/email.h" -#include "mvc/model/validator/presenceof.h" -#include "mvc/model/transaction/failed.h" #include "mvc/model/behavior/softdelete.h" #include "mvc/model/validator/uniqueness.h" +#include "mvc/model/transaction/failed.h" +#include "mvc/model/validator/presenceof.h" #include "mvc/model/transaction/manager.h" #include "mvc/model/behavior/timestampable.h" #include "mvc/model/metadata/strategy/annotations.h" #include "mvc/model/metadata/strategy/introspection.h" #include "mvc/model/transaction/exception.h" +#include "mvc/model/validator/inclusionin.h" #include "mvc/model/validator/stringlength.h" #include "mvc/model/validator/numericality.h" #include "mvc/model/validator/exclusionin.h" -#include "mvc/model/validator/inclusionin.h" #include "mvc/moduledefinitioninterface.h" #include "mvc/router/group.h" #include "mvc/router/route.h" @@ -269,8 +272,8 @@ #include "mvc/url/exception.h" #include "mvc/user/component.h" #include "mvc/view/exception.h" -#include "mvc/view/engine/pphp.h" #include "mvc/view/engine/volt.h" +#include "mvc/view/engine/pphp.h" #include "mvc/view/engine/volt/compiler.h" #include "events/event.h" #include "events/manager.h" diff --git a/ext/validation/message/group.c b/ext/validation/message/group.c index 21b78cf6a6a..4bec247c9b6 100644 --- a/ext/validation/message/group.c +++ b/ext/validation/message/group.c @@ -222,6 +222,44 @@ PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage){ PHALCON_MM_RESTORE(); } +/** + * Appends an array of messages to the group + * + * + * $messages->appendMessages($messagesArray); + * + * + * @param Phalcon\Validation\MessageInterface[] $messages + */ +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages){ + + zval *messages, *current_messages, *final_messages = NULL; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &messages) == FAILURE) { + RETURN_MM_NULL(); + } + + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_THROW_EXCEPTION_STR(phalcon_validation_exception_ce, "The messages must be an array"); + return; + } + + PHALCON_OBS_VAR(current_messages); + phalcon_read_property(¤t_messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (Z_TYPE_P(current_messages) == IS_ARRAY) { + PHALCON_INIT_VAR(final_messages); + PHALCON_CALL_FUNC_PARAMS_2(final_messages, "array_merge", current_messages, messages); + } else { + PHALCON_CPY_WRT(final_messages, messages); + } + + phalcon_update_property_zval(this_ptr, SL("_messages"), final_messages TSRMLS_CC); + + PHALCON_MM_RESTORE(); +} + /** * Returns the number of messages in the list * diff --git a/ext/validation/message/group.h b/ext/validation/message/group.h index a265a2dbc16..76c5a7ae65b 100644 --- a/ext/validation/message/group.h +++ b/ext/validation/message/group.h @@ -27,6 +27,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet); PHP_METHOD(Phalcon_Validation_Message_Group, offsetExists); PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset); PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage); +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages); PHP_METHOD(Phalcon_Validation_Message_Group, count); PHP_METHOD(Phalcon_Validation_Message_Group, rewind); PHP_METHOD(Phalcon_Validation_Message_Group, current); @@ -60,6 +61,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessage, 0 ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessages, 0, 0, 1) + ZEND_ARG_INFO(0, messages) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group___set_state, 0, 0, 1) ZEND_ARG_INFO(0, group) ZEND_END_ARG_INFO() @@ -71,6 +76,7 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ PHP_ME(Phalcon_Validation_Message_Group, offsetExists, arginfo_phalcon_validation_message_group_offsetexists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, offsetUnset, arginfo_phalcon_validation_message_group_offsetunset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, appendMessage, arginfo_phalcon_validation_message_group_appendmessage, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message_Group, appendMessages, arginfo_phalcon_validation_message_group_appendmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, count, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, rewind, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, current, NULL, ZEND_ACC_PUBLIC) diff --git a/ext/validation/validator.c b/ext/validation/validator.c index 7a5f60a076a..ae3c3c2bf28 100644 --- a/ext/validation/validator.c +++ b/ext/validation/validator.c @@ -87,8 +87,8 @@ PHP_METHOD(Phalcon_Validation_Validator, __construct){ } /** - * Returns an option in the validator's option - * Returns null if the option hasn't been passed + * Returns an option in the validator's options + * Returns null if the option hasn't been set * * @param string $key * @return mixed diff --git a/ext/validation/validator/email.c b/ext/validation/validator/email.c index e698e49f14a..d0237e5d042 100644 --- a/ext/validation/validator/email.c +++ b/ext/validation/validator/email.c @@ -49,6 +49,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Email, validation_validator_email, "phalcon\\validation\\validator", phalcon_validation_validator_email_method_entry, 0); + zend_class_implements(phalcon_validation_validator_email_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/exclusionin.c b/ext/validation/validator/exclusionin.c index cea97d1b1f3..f3384975504 100644 --- a/ext/validation/validator/exclusionin.c +++ b/ext/validation/validator/exclusionin.c @@ -51,6 +51,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, ExclusionIn, validation_validator_exclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_exclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_exclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/identical.c b/ext/validation/validator/identical.c index ee1d267ef6c..8a2aa2b90ca 100644 --- a/ext/validation/validator/identical.c +++ b/ext/validation/validator/identical.c @@ -50,6 +50,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Identical){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Identical, validation_validator_identical, "phalcon\\validation\\validator", phalcon_validation_validator_identical_method_entry, 0); + zend_class_implements(phalcon_validation_validator_identical_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/inclusionin.c b/ext/validation/validator/inclusionin.c index c3d3c3d01e4..d3a685c51bf 100644 --- a/ext/validation/validator/inclusionin.c +++ b/ext/validation/validator/inclusionin.c @@ -51,6 +51,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_InclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, InclusionIn, validation_validator_inclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_inclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_inclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/presenceof.c b/ext/validation/validator/presenceof.c index 9086225c4d1..bec7d5b5af2 100644 --- a/ext/validation/validator/presenceof.c +++ b/ext/validation/validator/presenceof.c @@ -50,6 +50,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_PresenceOf){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, PresenceOf, validation_validator_presenceof, "phalcon\\validation\\validator", phalcon_validation_validator_presenceof_method_entry, 0); + zend_class_implements(phalcon_validation_validator_presenceof_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/regex.c b/ext/validation/validator/regex.c index 16524a1d931..451c5b53bdc 100644 --- a/ext/validation/validator/regex.c +++ b/ext/validation/validator/regex.c @@ -46,7 +46,8 @@ *use Phalcon\Validation\Validator\Regex as RegexValidator; * *$validator->add('created_at', new RegexValidator(array( - * 'pattern' => '/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/' + * 'pattern' => '/^[0-9]{4}[-\/](0[1-9]|1[12])[-\/](0[1-9]|[12][0-9]|3[01])$/', + * 'message' => 'The creation date is invalid' *))); * */ @@ -59,6 +60,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Regex, validation_validator_regex, "phalcon\\validation\\validator", phalcon_validation_validator_regex_method_entry, 0); + zend_class_implements(phalcon_validation_validator_regex_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } diff --git a/ext/validation/validator/stringlength.c b/ext/validation/validator/stringlength.c new file mode 100644 index 00000000000..49795be19bc --- /dev/null +++ b/ext/validation/validator/stringlength.c @@ -0,0 +1,222 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_phalcon.h" +#include "phalcon.h" + +#include "Zend/zend_operators.h" +#include "Zend/zend_exceptions.h" +#include "Zend/zend_interfaces.h" + +#include "kernel/main.h" +#include "kernel/memory.h" + +#include "kernel/fcall.h" +#include "kernel/exception.h" +#include "kernel/string.h" +#include "kernel/operators.h" +#include "kernel/concat.h" + +/** + * Phalcon\Validation\Validator\StringLength + * + * Validates that a string has the specified maximum and minimum constraints + * + * + *use Phalcon\Validation\Validator\StringLength as StringLength; + * + *$validation->validate('name_last', new StringLength(array( + * 'max' => 50, + * 'min' => 2, + * 'messageMaximum' => 'We don't like really long names', + * 'messageMinimum' => 'We want more than just their initials' + *))); + * + * + */ + + +/** + * Phalcon\Validation\Validator\StringLength initializer + */ +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, StringLength, validation_validator_stringlength, "phalcon\\validation\\validator", phalcon_validation_validator_stringlength_method_entry, 0); + + zend_class_implements(phalcon_validation_validator_stringlength_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + + return SUCCESS; +} + +/** + * Executes the validation + * + * @param Phalcon\Validator $validator + * @param string $attribute + */ +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ + + zval *validator, *attribute, *option = NULL, *field, *is_set_min; + zval *is_set_max, *value, *length = NULL, *invalid_maximum = NULL; + zval *invalid_minimum = NULL, *maximum, *message_str = NULL; + zval *type = NULL, *message = NULL, *minimum; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &validator, &attribute) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_INIT_VAR(option); + ZVAL_STRING(option, "field", 1); + + PHALCON_INIT_VAR(field); + PHALCON_CALL_METHOD_PARAMS_1(field, this_ptr, "getoption", option); + if (Z_TYPE_P(field) != IS_STRING) { + PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "Field name must be a string"); + return; + } + + /** + * At least one of 'min' or 'max' must be set + */ + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(is_set_min); + PHALCON_CALL_METHOD_PARAMS_1(is_set_min, this_ptr, "issetoption", option); + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(is_set_max); + PHALCON_CALL_METHOD_PARAMS_1(is_set_max, this_ptr, "issetoption", option); + if (!zend_is_true(is_set_min)) { + if (!zend_is_true(is_set_max)) { + PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "A minimum or maximum must be set"); + return; + } + } + + PHALCON_INIT_VAR(value); + PHALCON_CALL_METHOD_PARAMS_1(value, validator, "getvalue", field); + + /** + * Check if mbstring is available to calculate the correct length + */ + if (phalcon_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS) { + PHALCON_INIT_VAR(length); + PHALCON_CALL_FUNC_PARAMS_1(length, "mb_strlen", value); + } else { + PHALCON_INIT_NVAR(length); + phalcon_fast_strlen(length, value); + } + + PHALCON_INIT_VAR(invalid_maximum); + ZVAL_BOOL(invalid_maximum, 0); + + PHALCON_INIT_VAR(invalid_minimum); + ZVAL_BOOL(invalid_minimum, 0); + + /** + * Maximum length + */ + if (zend_is_true(is_set_max)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(maximum); + PHALCON_CALL_METHOD_PARAMS_1(maximum, this_ptr, "getoption", option); + + is_smaller_function(invalid_maximum, maximum, length TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_maximum)) { + + /** + * Check if the developer has defined a custom message + */ + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMaximum", 1); + + PHALCON_INIT_VAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", field, "' exceeds the maximum ", maximum, " characters"); + } + + PHALCON_INIT_VAR(type); + ZVAL_STRING(type, "TooLong", 1); + + PHALCON_INIT_VAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN(message, "__construct", message_str, attribute, type); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(validator, "appendmessage", message); + RETURN_MM_FALSE; + } + } + + /** + * Minimum length + */ + if (zend_is_true(is_set_min)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(minimum); + PHALCON_CALL_METHOD_PARAMS_1(minimum, this_ptr, "getoption", option); + + is_smaller_function(invalid_minimum, length, minimum TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_minimum)) { + + /** + * Check if the developer has defined a custom message + */ + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMinimum", 1); + + PHALCON_INIT_NVAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", field, "' is less than the minimum ", minimum, " characters"); + } + + PHALCON_INIT_NVAR(type); + ZVAL_STRING(type, "TooShort", 1); + + PHALCON_INIT_NVAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN(message, "__construct", message_str, attribute, type); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(validator, "appendmessage", message); + RETURN_MM_FALSE; + } + } + + RETURN_MM_TRUE; +} + diff --git a/ext/validation/validator/stringlength.h b/ext/validation/validator/stringlength.h new file mode 100644 index 00000000000..963efaea6b2 --- /dev/null +++ b/ext/validation/validator/stringlength.h @@ -0,0 +1,35 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +extern zend_class_entry *phalcon_validation_validator_stringlength_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength); + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_stringlength_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validator_stringlength_method_entry){ + PHP_ME(Phalcon_Validation_Validator_StringLength, validate, arginfo_phalcon_validation_validator_stringlength_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + diff --git a/ext/validation/validatorinterface.c b/ext/validation/validatorinterface.c new file mode 100644 index 00000000000..a564ab15a00 --- /dev/null +++ b/ext/validation/validatorinterface.c @@ -0,0 +1,56 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_phalcon.h" +#include "phalcon.h" + +#include "kernel/main.h" + +/** + * Phalcon\Validation\ValidatorInterface initializer + */ +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface){ + + PHALCON_REGISTER_INTERFACE(Phalcon\\Validation, ValidatorInterface, validation_validatorinterface, phalcon_validation_validatorinterface_method_entry); + + return SUCCESS; +} + +/** + * Returns an option in the validator's options + * Returns null if the option hasn't been set + * + * @param string $key + * @return mixed + */ +PHALCON_DOC_METHOD(Phalcon_Validation_ValidatorInterface, getOption); + +/** + * Executes the validation + * + * @param Phalcon\Validator $validator + * @param string $attribute + */ +PHALCON_DOC_METHOD(Phalcon_Validation_ValidatorInterface, validate); + diff --git a/ext/validation/validatorinterface.h b/ext/validation/validatorinterface.h new file mode 100644 index 00000000000..e70599ee34f --- /dev/null +++ b/ext/validation/validatorinterface.h @@ -0,0 +1,38 @@ + +/* + +------------------------------------------------------------------------+ + | Phalcon Framework | + +------------------------------------------------------------------------+ + | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | + +------------------------------------------------------------------------+ + | This source file is subject to the New BSD License that is bundled | + | with this package in the file docs/LICENSE.txt. | + | | + | If you did not receive a copy of the license and are unable to | + | obtain it through the world-wide-web, please send an email | + | to license@phalconphp.com so we can send you a copy immediately. | + +------------------------------------------------------------------------+ + | Authors: Andres Gutierrez | + | Eduar Carvajal | + +------------------------------------------------------------------------+ +*/ + +extern zend_class_entry *phalcon_validation_validatorinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_getoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validatorinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, getOption, arginfo_phalcon_validation_validatorinterface_getoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, validate, arginfo_phalcon_validation_validatorinterface_validate) + PHP_FE_END +}; + diff --git a/ext/version.c b/ext/version.c index 97a4c693abe..c6aa00d7e7a 100644 --- a/ext/version.c +++ b/ext/version.c @@ -77,7 +77,7 @@ PHP_METHOD(Phalcon_Version, _getVersion){ add_next_index_long(version, 0); add_next_index_long(version, 0); add_next_index_long(version, 2); - add_next_index_long(version, 1); + add_next_index_long(version, 2); RETURN_CTOR(version); } From 02a673b5aaf63a61c601943ad24da4d94e43f0d0 Mon Sep 17 00:00:00 2001 From: phalcon Date: Sat, 9 Mar 2013 12:23:07 -0500 Subject: [PATCH 5/7] Validation component fixes, add notFoundView event to Mvc\View --- ext/mvc/view.c | 21 +-- ext/validation/validator.c | 27 ++++ ext/validation/validator.h | 6 + ext/validation/validator/exclusionin.c | 2 +- ext/validation/validator/stringlength.c | 20 +-- ext/validation/validatorinterface.c | 8 ++ ext/validation/validatorinterface.h | 5 + unit-tests/ValidationTest.php | 167 ++++++++++++++++++++++-- 8 files changed, 217 insertions(+), 39 deletions(-) diff --git a/ext/mvc/view.c b/ext/mvc/view.c index 847324eb69c..c0b79d881ec 100755 --- a/ext/mvc/view.c +++ b/ext/mvc/view.c @@ -888,17 +888,9 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ PHALCON_INIT_NVAR(not_exists); ZVAL_BOOL(not_exists, 0); if (Z_TYPE_P(events_manager) == IS_OBJECT) { - phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); - PHALCON_INIT_NVAR(event_name); ZVAL_STRING(event_name, "view:afterRenderView", 1); - - PHALCON_INIT_NVAR(status); - PHALCON_CALL_METHOD_PARAMS_2(status, events_manager, "fire", event_name, this_ptr); - if (PHALCON_IS_FALSE(status)) { - zend_hash_move_forward_ex(ah0, &hp0); - continue; - } + PHALCON_CALL_METHOD_PARAMS_2_NORETURN(events_manager, "fire", event_name, this_ptr); } break; @@ -908,6 +900,17 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ } if (PHALCON_IS_TRUE(not_exists)) { + + /** + * Notify about not found views + */ + if (Z_TYPE_P(events_manager) == IS_OBJECT) { + phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); + + PHALCON_INIT_NVAR(event_name); + ZVAL_STRING(event_name, "view:notFoundView", 1); + PHALCON_CALL_METHOD_PARAMS_2_NORETURN(events_manager, "fire", event_name, this_ptr); + } if (!zend_is_true(silence)) { PHALCON_INIT_VAR(exception_message); PHALCON_CONCAT_SVS(exception_message, "View '", views_dir_path, "' was not found in the views directory"); diff --git a/ext/validation/validator.c b/ext/validation/validator.c index ae3c3c2bf28..ed05a37b231 100644 --- a/ext/validation/validator.c +++ b/ext/validation/validator.c @@ -86,6 +86,33 @@ PHP_METHOD(Phalcon_Validation_Validator, __construct){ PHALCON_MM_RESTORE(); } +/** + * Checks if an option is defined + * + * @param string $key + * @return mixed + */ +PHP_METHOD(Phalcon_Validation_Validator, isSetOption){ + + zval *key, *options; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &key) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(options); + phalcon_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); + if (Z_TYPE_P(options) == IS_ARRAY) { + if (phalcon_array_isset(options, key)) { + RETURN_MM_TRUE; + } + } + + RETURN_MM_FALSE; +} + /** * Returns an option in the validator's options * Returns null if the option hasn't been set diff --git a/ext/validation/validator.h b/ext/validation/validator.h index af5744c5750..bfd4b6f97ef 100644 --- a/ext/validation/validator.h +++ b/ext/validation/validator.h @@ -22,18 +22,24 @@ extern zend_class_entry *phalcon_validation_validator_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator); PHP_METHOD(Phalcon_Validation_Validator, __construct); +PHP_METHOD(Phalcon_Validation_Validator, isSetOption); PHP_METHOD(Phalcon_Validation_Validator, getOption); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_getoption, 0, 0, 1) ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_validation_validator_method_entry){ PHP_ME(Phalcon_Validation_Validator, __construct, arginfo_phalcon_validation_validator___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Validation_Validator, isSetOption, arginfo_phalcon_validation_validator_issetoption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator, getOption, arginfo_phalcon_validation_validator_getoption, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/validation/validator/exclusionin.c b/ext/validation/validator/exclusionin.c index f3384975504..d746a6a78ee 100644 --- a/ext/validation/validator/exclusionin.c +++ b/ext/validation/validator/exclusionin.c @@ -96,7 +96,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate){ */ PHALCON_INIT_VAR(in_array); PHALCON_CALL_FUNC_PARAMS_2(in_array, "in_array", value, domain); - if (!zend_is_true(in_array)) { + if (zend_is_true(in_array)) { PHALCON_INIT_NVAR(option); ZVAL_STRING(option, "message", 1); diff --git a/ext/validation/validator/stringlength.c b/ext/validation/validator/stringlength.c index 49795be19bc..7dc484980c9 100644 --- a/ext/validation/validator/stringlength.c +++ b/ext/validation/validator/stringlength.c @@ -77,7 +77,7 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength){ */ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ - zval *validator, *attribute, *option = NULL, *field, *is_set_min; + zval *validator, *attribute, *option = NULL, *is_set_min; zval *is_set_max, *value, *length = NULL, *invalid_maximum = NULL; zval *invalid_minimum = NULL, *maximum, *message_str = NULL; zval *type = NULL, *message = NULL, *minimum; @@ -88,20 +88,10 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ RETURN_MM_NULL(); } - PHALCON_INIT_VAR(option); - ZVAL_STRING(option, "field", 1); - - PHALCON_INIT_VAR(field); - PHALCON_CALL_METHOD_PARAMS_1(field, this_ptr, "getoption", option); - if (Z_TYPE_P(field) != IS_STRING) { - PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "Field name must be a string"); - return; - } - /** * At least one of 'min' or 'max' must be set */ - PHALCON_INIT_NVAR(option); + PHALCON_INIT_VAR(option); ZVAL_STRING(option, "min", 1); PHALCON_INIT_VAR(is_set_min); @@ -120,7 +110,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ } PHALCON_INIT_VAR(value); - PHALCON_CALL_METHOD_PARAMS_1(value, validator, "getvalue", field); + PHALCON_CALL_METHOD_PARAMS_1(value, validator, "getvalue", attribute); /** * Check if mbstring is available to calculate the correct length @@ -163,7 +153,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); if (!zend_is_true(message_str)) { PHALCON_INIT_NVAR(message_str); - PHALCON_CONCAT_SVSVS(message_str, "Value of field '", field, "' exceeds the maximum ", maximum, " characters"); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' exceeds the maximum ", maximum, " characters"); } PHALCON_INIT_VAR(type); @@ -202,7 +192,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); if (!zend_is_true(message_str)) { PHALCON_INIT_NVAR(message_str); - PHALCON_CONCAT_SVSVS(message_str, "Value of field '", field, "' is less than the minimum ", minimum, " characters"); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' is less than the minimum ", minimum, " characters"); } PHALCON_INIT_NVAR(type); diff --git a/ext/validation/validatorinterface.c b/ext/validation/validatorinterface.c index a564ab15a00..b16f1cd49ee 100644 --- a/ext/validation/validatorinterface.c +++ b/ext/validation/validatorinterface.c @@ -37,6 +37,14 @@ PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface){ return SUCCESS; } +/** + * Checks if an option is defined + * + * @param string $key + * @return mixed + */ +PHALCON_DOC_METHOD(Phalcon_Validation_ValidatorInterface, isSetOption); + /** * Returns an option in the validator's options * Returns null if the option hasn't been set diff --git a/ext/validation/validatorinterface.h b/ext/validation/validatorinterface.h index e70599ee34f..e8b00996730 100644 --- a/ext/validation/validatorinterface.h +++ b/ext/validation/validatorinterface.h @@ -21,6 +21,10 @@ extern zend_class_entry *phalcon_validation_validatorinterface_ce; PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_getoption, 0, 0, 1) ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() @@ -31,6 +35,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_validate, 0 ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_validation_validatorinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, isSetOption, arginfo_phalcon_validation_validatorinterface_issetoption) PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, getOption, arginfo_phalcon_validation_validatorinterface_getoption) PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, validate, arginfo_phalcon_validation_validatorinterface_validate) PHP_FE_END diff --git a/unit-tests/ValidationTest.php b/unit-tests/ValidationTest.php index c7d5c883c8a..f0eb032d7e0 100644 --- a/unit-tests/ValidationTest.php +++ b/unit-tests/ValidationTest.php @@ -22,6 +22,8 @@ Phalcon\Validation\Validator\Identical, Phalcon\Validation\Validator\Regex, Phalcon\Validation\Validator\InclusionIn, + Phalcon\Validation\Validator\ExclusionIn, + Phalcon\Validation\Validator\StringLength, Phalcon\Validation\Validator\Email; class ValidationTest extends PHPUnit_Framework_TestCase @@ -429,11 +431,11 @@ public function testValidationInclusionInCustomMessage() public function testValidationExclusionIn() { - $_POST = array(); + $_POST = array('status' => 'A'); $validation = new Phalcon\Validation(); - $validation->add('status', new InclusionIn(array( + $validation->add('status', new ExclusionIn(array( 'domain' => array('A', 'I') ))); @@ -442,8 +444,8 @@ public function testValidationExclusionIn() $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( '_messages' => array( 0 => Phalcon\Validation\Message::__set_state(array( - '_type' => 'InclusionIn', - '_message' => 'Value of field \'status\' must be part of list: A, I', + '_type' => 'ExclusionIn', + '_message' => 'Value of field \'status\' must not be part of list: A, I', '_field' => 'status', )) ) @@ -451,13 +453,13 @@ public function testValidationExclusionIn() $this->assertEquals($expectedMessages, $messages); - $_POST = array('status' => 'X'); + $_POST = array('status' => 'A'); $messages = $validation->validate($_POST); $this->assertEquals($expectedMessages, $messages); - $_POST = array('status' => 'A'); + $_POST = array('status' => 'X'); $messages = $validation->validate($_POST); @@ -466,12 +468,12 @@ public function testValidationExclusionIn() public function testValidationExclusionInCustomMessage() { - $_POST = array(); + $_POST = array('status' => 'A'); $validation = new Phalcon\Validation(); - $validation->add('status', new InclusionIn(array( - 'message' => 'The status must be A=Active or I=Inactive', + $validation->add('status', new ExclusionIn(array( + 'message' => 'The status must not be A=Active or I=Inactive', 'domain' => array('A', 'I') ))); @@ -480,8 +482,8 @@ public function testValidationExclusionInCustomMessage() $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( '_messages' => array( 0 => Phalcon\Validation\Message::__set_state(array( - '_type' => 'InclusionIn', - '_message' => 'The status must be A=Active or I=Inactive', + '_type' => 'ExclusionIn', + '_message' => 'The status must not be A=Active or I=Inactive', '_field' => 'status', )) ) @@ -489,13 +491,151 @@ public function testValidationExclusionInCustomMessage() $this->assertEquals($expectedMessages, $messages); - $_POST = array('status' => 'x=1'); + $_POST = array('status' => 'A'); $messages = $validation->validate($_POST); $this->assertEquals($expectedMessages, $messages); - $_POST = array('status' => 'A'); + $_POST = array('status' => 'X'); + + $messages = $validation->validate($_POST); + + $this->assertEquals(count($messages), 0); + } + + public function testValidationStringLengthMinimum() + { + $_POST = array(); + + $validation = new Phalcon\Validation(); + + $validation->add('name', new StringLength(array( + 'min' => 3 + ))); + + $messages = $validation->validate($_POST); + + $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( + '_messages' => array( + 0 => Phalcon\Validation\Message::__set_state(array( + '_type' => 'TooShort', + '_message' => 'Value of field \'name\' is less than the minimum 3 characters', + '_field' => 'name', + )) + ) + )); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'p'); + + $messages = $validation->validate($_POST); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'peter'); + + $messages = $validation->validate($_POST); + + $this->assertEquals(count($messages), 0); + } + + public function testValidationStringLengthMinimumCustomMessage() + { + $_POST = array(); + + $validation = new Phalcon\Validation(); + + $validation->add('name', new StringLength(array( + 'min' => 3, + 'messageMinimum' => 'The message is too short' + ))); + + $messages = $validation->validate($_POST); + + $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( + '_messages' => array( + 0 => Phalcon\Validation\Message::__set_state(array( + '_type' => 'TooShort', + '_message' => 'The message is too short', + '_field' => 'name', + )) + ) + )); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'p'); + + $messages = $validation->validate($_POST); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'peter'); + + $messages = $validation->validate($_POST); + + $this->assertEquals(count($messages), 0); + } + + public function testValidationStringLengthMaximum() + { + $_POST = array('name' => 'Johannes'); + + $validation = new Phalcon\Validation(); + + $validation->add('name', new StringLength(array( + 'max' => 4 + ))); + + $messages = $validation->validate($_POST); + + $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( + '_messages' => array( + 0 => Phalcon\Validation\Message::__set_state(array( + '_type' => 'TooLong', + '_message' => 'Value of field \'name\' exceeds the maximum 4 characters', + '_field' => 'name', + )) + ) + )); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'a'); + + $messages = $validation->validate($_POST); + + $this->assertEquals(count($messages), 0); + } + + public function testValidationStringLengthMaximumCustomMessage() + { + $_POST = array('name' => 'Johannes'); + + $validation = new Phalcon\Validation(); + + $validation->add('name', new StringLength(array( + 'max' => 4, + 'messageMaximum' => 'The message is too long' + ))); + + $messages = $validation->validate($_POST); + + $expectedMessages = Phalcon\Validation\Message\Group::__set_state(array( + '_messages' => array( + 0 => Phalcon\Validation\Message::__set_state(array( + '_type' => 'TooLong', + '_message' => 'The message is too long', + '_field' => 'name', + )) + ) + )); + + $this->assertEquals($expectedMessages, $messages); + + $_POST = array('name' => 'pet'); $messages = $validation->validate($_POST); @@ -520,7 +660,6 @@ public function testValidationMixed() $messages = $validation->validate($_POST); - } } From b80b8ee95c5ea95c9c07ddff6026f54f27d0c7fa Mon Sep 17 00:00:00 2001 From: phalcon Date: Sat, 9 Mar 2013 12:32:04 -0500 Subject: [PATCH 6/7] Regenerating 32bits build [ci skip] --- build/32bits/phalcon.c | 850 ++++++++++--- build/32bits/phalcon.h | 2717 +++++++++++++++++++++------------------- build/safe/phalcon.c | 850 ++++++++++--- build/safe/phalcon.h | 2717 +++++++++++++++++++++------------------- 4 files changed, 4236 insertions(+), 2898 deletions(-) diff --git a/build/32bits/phalcon.c b/build/32bits/phalcon.c index b9932bada80..7b337043a61 100644 --- a/build/32bits/phalcon.c +++ b/build/32bits/phalcon.c @@ -16114,6 +16114,27 @@ PHP_METHOD(Phalcon_Validation_Validator, __construct){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Validator, isSetOption){ + + zval *key, *options; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &key) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(options); + phalcon_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); + if (Z_TYPE_P(options) == IS_ARRAY) { + if (phalcon_array_isset(options, key)) { + RETURN_MM_TRUE; + } + } + + RETURN_MM_FALSE; +} + PHP_METHOD(Phalcon_Validation_Validator, getOption){ zval *key, *options, *value; @@ -16141,6 +16162,25 @@ PHP_METHOD(Phalcon_Validation_Validator, getOption){ +#ifdef HAVE_CONFIG_H +#endif + + + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface){ + + PHALCON_REGISTER_INTERFACE(Phalcon\\Validation, ValidatorInterface, validation_validatorinterface, phalcon_validation_validatorinterface_method_entry); + + return SUCCESS; +} + + + + + + + + #ifdef HAVE_CONFIG_H #endif @@ -16308,6 +16348,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Regex, validation_validator_regex, "phalcon\\validation\\validator", phalcon_validation_validator_regex_method_entry, 0); + zend_class_implements(phalcon_validation_validator_regex_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16388,10 +16430,151 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate){ +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, StringLength, validation_validator_stringlength, "phalcon\\validation\\validator", phalcon_validation_validator_stringlength_method_entry, 0); + + zend_class_implements(phalcon_validation_validator_stringlength_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ + + zval *validator, *attribute, *option = NULL, *is_set_min; + zval *is_set_max, *value, *length = NULL, *invalid_maximum = NULL; + zval *invalid_minimum = NULL, *maximum, *message_str = NULL; + zval *type = NULL, *message = NULL, *minimum; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &validator, &attribute) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_INIT_VAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(is_set_min); + PHALCON_CALL_METHOD_PARAMS_1_KEY(is_set_min, this_ptr, "issetoption", option, 2532732262UL); + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(is_set_max); + PHALCON_CALL_METHOD_PARAMS_1_KEY(is_set_max, this_ptr, "issetoption", option, 2532732262UL); + if (!zend_is_true(is_set_min)) { + if (!zend_is_true(is_set_max)) { + PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "A minimum or maximum must be set"); + return; + } + } + + PHALCON_INIT_VAR(value); + PHALCON_CALL_METHOD_PARAMS_1_KEY(value, validator, "getvalue", attribute, 31703298UL); + + if (phalcon_function_quick_exists_ex(SS("mb_strlen"), 3716840971UL TSRMLS_CC) == SUCCESS) { + PHALCON_INIT_VAR(length); + PHALCON_CALL_FUNC_PARAMS_1(length, "mb_strlen", value); + } else { + PHALCON_INIT_NVAR(length); + phalcon_fast_strlen(length, value); + } + + PHALCON_INIT_VAR(invalid_maximum); + ZVAL_BOOL(invalid_maximum, 0); + + PHALCON_INIT_VAR(invalid_minimum); + ZVAL_BOOL(invalid_minimum, 0); + + if (zend_is_true(is_set_max)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(maximum); + PHALCON_CALL_METHOD_PARAMS_1_KEY(maximum, this_ptr, "getoption", option, 1191969182UL); + + is_smaller_function(invalid_maximum, maximum, length TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_maximum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMaximum", 1); + + PHALCON_INIT_VAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1_KEY(message_str, this_ptr, "getoption", option, 1191969182UL); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' exceeds the maximum ", maximum, " characters"); + } + + PHALCON_INIT_VAR(type); + ZVAL_STRING(type, "TooLong", 1); + + PHALCON_INIT_VAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN_KEY(message, "__construct", message_str, attribute, type, 1107214344UL); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(validator, "appendmessage", message, 2313005058UL); + RETURN_MM_FALSE; + } + } + + if (zend_is_true(is_set_min)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(minimum); + PHALCON_CALL_METHOD_PARAMS_1_KEY(minimum, this_ptr, "getoption", option, 1191969182UL); + + is_smaller_function(invalid_minimum, length, minimum TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_minimum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMinimum", 1); + + PHALCON_INIT_NVAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1_KEY(message_str, this_ptr, "getoption", option, 1191969182UL); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' is less than the minimum ", minimum, " characters"); + } + + PHALCON_INIT_NVAR(type); + ZVAL_STRING(type, "TooShort", 1); + + PHALCON_INIT_NVAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN_KEY(message, "__construct", message_str, attribute, type, 1107214344UL); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(validator, "appendmessage", message, 2313005058UL); + RETURN_MM_FALSE; + } + } + + RETURN_MM_TRUE; +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Validation_Validator_PresenceOf){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, PresenceOf, validation_validator_presenceof, "phalcon\\validation\\validator", phalcon_validation_validator_presenceof_method_entry, 0); + zend_class_implements(phalcon_validation_validator_presenceof_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16450,6 +16633,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_InclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, InclusionIn, validation_validator_inclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_inclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_inclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16525,6 +16710,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, ExclusionIn, validation_validator_exclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_exclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_exclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16555,7 +16742,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate){ PHALCON_INIT_VAR(in_array); PHALCON_CALL_FUNC_PARAMS_2(in_array, "in_array", value, domain); - if (!zend_is_true(in_array)) { + if (zend_is_true(in_array)) { PHALCON_INIT_NVAR(option); ZVAL_STRING(option, "message", 1); @@ -16600,6 +16787,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Identical){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Identical, validation_validator_identical, "phalcon\\validation\\validator", phalcon_validation_validator_identical_method_entry, 0); + zend_class_implements(phalcon_validation_validator_identical_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16664,6 +16853,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Email, validation_validator_email, "phalcon\\validation\\validator", phalcon_validation_validator_email_method_entry, 0); + zend_class_implements(phalcon_validation_validator_email_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16847,6 +17038,35 @@ PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages){ + + zval *messages, *current_messages, *final_messages = NULL; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &messages) == FAILURE) { + RETURN_MM_NULL(); + } + + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_THROW_EXCEPTION_STR(phalcon_validation_exception_ce, "The messages must be an array"); + return; + } + + PHALCON_OBS_VAR(current_messages); + phalcon_read_property(¤t_messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (Z_TYPE_P(current_messages) == IS_ARRAY) { + PHALCON_INIT_VAR(final_messages); + PHALCON_CALL_FUNC_PARAMS_2(final_messages, "array_merge", current_messages, messages); + } else { + PHALCON_CPY_WRT(final_messages, messages); + } + + phalcon_update_property_zval(this_ptr, SL("_messages"), final_messages TSRMLS_CC); + + PHALCON_MM_RESTORE(); +} + PHP_METHOD(Phalcon_Validation_Message_Group, count){ zval *messages, *number; @@ -22458,6 +22678,60 @@ PHP_METHOD(Phalcon_Forms_Manager, create){ + + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Password, forms_element_password, "phalcon\\forms\\element", phalcon_forms_element_password_method_entry, 0); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Forms_Element_Password, render){ + + zval *attributes = NULL, *name, *widget_attributes = NULL; + zval *code; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &attributes) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!attributes) { + PHALCON_INIT_VAR(attributes); + } + + PHALCON_OBS_VAR(name); + phalcon_read_property(&name, this_ptr, SL("_name"), PH_NOISY_CC); + if (Z_TYPE_P(attributes) != IS_ARRAY) { + PHALCON_INIT_VAR(widget_attributes); + array_init(widget_attributes); + } else { + PHALCON_CPY_WRT(widget_attributes, attributes); + } + + phalcon_array_update_long(&widget_attributes, 0, &name, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_VAR(code); + PHALCON_CALL_STATIC_PARAMS_1(code, "phalcon\\tag", "passwordfield", widget_attributes); + + RETURN_CCTOR(code); +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Forms_Element_Text){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Text, forms_element_text, "phalcon\\forms\\element", phalcon_forms_element_text_method_entry, 0); @@ -22592,6 +22866,17 @@ PHP_METHOD(Phalcon_Forms_Element, getValidators){ RETURN_MEMBER(this_ptr, "_validators"); } +PHP_METHOD(Phalcon_Forms_Element, __toString){ + + zval *content; + + PHALCON_MM_GROW(); + + PHALCON_INIT_VAR(content); + PHALCON_CALL_METHOD(content, this_ptr, "render"); + RETURN_CCTOR(content); +} + @@ -22622,39 +22907,205 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Exception){ + + PHALCON_INIT_CLASS(Phalcon_Forms_Form){ PHALCON_REGISTER_CLASS(Phalcon\\Forms, Form, forms_form, phalcon_forms_form_method_entry, 0); zend_declare_property_null(phalcon_forms_form_ce, SL("_entity"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_forms_form_ce, SL("_elements"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_forms_form_ce, SL("_messages"), ZEND_ACC_PROTECTED TSRMLS_CC); return SUCCESS; } PHP_METHOD(Phalcon_Forms_Form, __construct){ - zval *entity; + zval *entity = NULL; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &entity) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &entity) == FAILURE) { RETURN_MM_NULL(); } - if (Z_TYPE_P(entity) != IS_OBJECT) { - PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); - return; + if (!entity) { + PHALCON_INIT_VAR(entity); + } + + if (Z_TYPE_P(entity) != IS_NULL) { + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); + return; + } + phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); } - phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); PHALCON_MM_RESTORE(); } PHP_METHOD(Phalcon_Forms_Form, isValid){ + zval *data = NULL, *entity = NULL, *elements, *failed = NULL, *messages; + zval *element = NULL, *validators = NULL, *validation = NULL, *element_messages = NULL; + zval *name = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &entity) == FAILURE) { + RETURN_MM_NULL(); + } + if (!data) { + PHALCON_INIT_VAR(data); + } + + if (!entity) { + PHALCON_INIT_VAR(entity); + } else { + PHALCON_SEPARATE_PARAM(entity); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (Z_TYPE_P(elements) == IS_ARRAY) { + + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_OBS_NVAR(entity); + phalcon_read_property(&entity, this_ptr, SL("_entity"), PH_NOISY_CC); + } + + PHALCON_INIT_VAR(failed); + ZVAL_BOOL(failed, 0); + + PHALCON_INIT_VAR(messages); + array_init(messages); + + if (!phalcon_is_iterable(elements, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_VALUE(element); + + PHALCON_INIT_NVAR(validators); + PHALCON_CALL_METHOD(validators, element, "getvalidators"); + if (Z_TYPE_P(validators) == IS_ARRAY) { + + PHALCON_INIT_NVAR(validation); + object_init_ex(validation, phalcon_validation_ce); + + PHALCON_INIT_NVAR(element_messages); + PHALCON_CALL_METHOD_PARAMS_2_KEY(element_messages, validation, "validate", data, entity, 2654098287UL); + if (phalcon_fast_count_ev(element_messages TSRMLS_CC)) { + PHALCON_INIT_NVAR(name); + PHALCON_CALL_METHOD(name, element, "getname"); + phalcon_array_update_zval(&messages, name, &element_messages, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_NVAR(failed); + ZVAL_BOOL(failed, 1); + } + } + + zend_hash_move_forward_ex(ah0, &hp0); + } + + if (zend_is_true(failed)) { + phalcon_update_property_zval(this_ptr, SL("_messages"), messages TSRMLS_CC); + } + + RETURN_NCTOR(failed); + } + + PHALCON_MM_RESTORE(); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessages){ + + zval *by_item_name = NULL, *messages, *group = NULL, *element_messages = NULL; + zval *element = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &by_item_name) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!by_item_name) { + PHALCON_INIT_VAR(by_item_name); + ZVAL_BOOL(by_item_name, 1); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (zend_is_true(by_item_name)) { + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + RETURN_CTOR(group); + } + + RETURN_CCTOR(messages); + } + + PHALCON_INIT_NVAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + if (!phalcon_is_iterable(messages, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_KEY(element, ah0, hp0); + PHALCON_GET_FOREACH_VALUE(element_messages); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(group, "appendmessages", element_messages, 3314726677UL); + + zend_hash_move_forward_ex(ah0, &hp0); + } + + + RETURN_CTOR(group); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor){ + + zval *name, *messages, *element_messages, *group; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (phalcon_array_isset(messages, name)) { + PHALCON_OBS_VAR(element_messages); + phalcon_array_fetch(&element_messages, messages, name, PH_NOISY_CC); + RETURN_CCTOR(element_messages); + } + + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + RETURN_CTOR(group); } PHP_METHOD(Phalcon_Forms_Form, add){ @@ -22676,7 +23127,7 @@ PHP_METHOD(Phalcon_Forms_Form, add){ PHALCON_CALL_METHOD(name, element, "getname"); phalcon_update_property_array(this_ptr, SL("_elements"), name, element TSRMLS_CC); - RETURN_CCTOR(element); + RETURN_THIS(); } PHP_METHOD(Phalcon_Forms_Form, render){ @@ -22712,6 +23163,31 @@ PHP_METHOD(Phalcon_Forms_Form, render){ RETURN_CCTOR(code); } +PHP_METHOD(Phalcon_Forms_Form, get){ + + zval *name, *elements, *exception_message, *element; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (!phalcon_array_isset(elements, name)) { + PHALCON_INIT_VAR(exception_message); + PHALCON_CONCAT_SVS(exception_message, "Element with ID=", name, " is not part of the form"); + PHALCON_THROW_EXCEPTION_ZVAL(phalcon_forms_exception_ce, exception_message); + return; + } + + PHALCON_OBS_VAR(element); + phalcon_array_fetch(&element, elements, name, PH_NOISY_CC); + + RETURN_CCTOR(element); +} + @@ -24940,6 +25416,24 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect){ PHALCON_MM_RESTORE();} +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare){ + + zval *sql_statement, *pdo, *statement; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &sql_statement) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(pdo); + phalcon_read_property(&pdo, this_ptr, SL("_pdo"), PH_NOISY_CC); + + PHALCON_INIT_VAR(statement); + PHALCON_CALL_METHOD_PARAMS_1_KEY(statement, pdo, "prepare", sql_statement, 329932052UL); + RETURN_CCTOR(statement); +} + PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared){ zval *statement = NULL, *placeholders = NULL, *data_types = NULL; @@ -37046,7 +37540,7 @@ PHP_METHOD(Phalcon_Version, _getVersion){ add_next_index_long(version, 0); add_next_index_long(version, 0); add_next_index_long(version, 2); - add_next_index_long(version, 1); + add_next_index_long(version, 2); RETURN_CTOR(version); } @@ -39158,17 +39652,9 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ PHALCON_INIT_NVAR(not_exists); ZVAL_BOOL(not_exists, 0); if (Z_TYPE_P(events_manager) == IS_OBJECT) { - phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); - PHALCON_INIT_NVAR(event_name); ZVAL_STRING(event_name, "view:afterRenderView", 1); - - PHALCON_INIT_NVAR(status); - PHALCON_CALL_METHOD_PARAMS_2_KEY(status, events_manager, "fire", event_name, this_ptr, 259017035UL); - if (PHALCON_IS_FALSE(status)) { - zend_hash_move_forward_ex(ah0, &hp0); - continue; - } + PHALCON_CALL_METHOD_PARAMS_2_NORETURN_KEY(events_manager, "fire", event_name, this_ptr, 259017035UL); } break; @@ -39178,6 +39664,14 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ } if (PHALCON_IS_TRUE(not_exists)) { + + if (Z_TYPE_P(events_manager) == IS_OBJECT) { + phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); + + PHALCON_INIT_NVAR(event_name); + ZVAL_STRING(event_name, "view:notFoundView", 1); + PHALCON_CALL_METHOD_PARAMS_2_NORETURN_KEY(events_manager, "fire", event_name, this_ptr, 259017035UL); + } if (!zend_is_true(silence)) { PHALCON_INIT_VAR(exception_message); PHALCON_CONCAT_SVS(exception_message, "View '", views_dir_path, "' was not found in the views directory"); @@ -77266,8 +77760,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords){ PHP_METHOD(Phalcon_Mvc_Model, save){ - zval *data = NULL, *meta_data, *attributes, *attribute = NULL; - zval *value = NULL, *possible_setter = NULL, *write_connection; + zval *data = NULL, *white_list = NULL, *meta_data, *attributes; + zval *attribute = NULL, *value = NULL, *possible_setter = NULL, *write_connection; zval *related, *status = NULL, *schema, *source, *table = NULL, *read_connection; zval *exists, *empty_array, *identity_field; zval *success = NULL; @@ -77278,7 +77772,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77286,6 +77780,10 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -77308,6 +77806,13 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ if (phalcon_array_isset(data, attribute)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute, PH_NOISY_CC); @@ -77419,18 +77924,18 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHP_METHOD(Phalcon_Mvc_Model, create){ - zval *data = NULL, *meta_data, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *read_connection; - zval *exists, *field, *type, *message, *model_message; - zval *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *read_connection, *exists, *field, *type, *message; + zval *model_message, *messages, *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77438,6 +77943,10 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -77480,6 +77989,13 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -77531,18 +78047,19 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHP_METHOD(Phalcon_Mvc_Model, update){ - zval *data = NULL, *meta_data = NULL, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *dirty_state; - zval *read_connection, *exists, *field, *type, *message; - zval *model_message, *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data = NULL, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *dirty_state, *read_connection, *exists; + zval *field, *type, *message, *model_message, *messages; + zval *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77550,6 +78067,10 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); if (Z_TYPE_P(data) != IS_NULL) { @@ -77593,6 +78114,13 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -79239,6 +79767,7 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ PHALCON_REGISTER_CLASS(Phalcon\\Mvc, Router, mvc_router, phalcon_mvc_router_method_entry, 0); zend_declare_property_null(phalcon_mvc_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_mvc_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_module"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_controller"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -79256,6 +79785,9 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ zend_declare_property_bool(phalcon_mvc_router_ce, SL("_removeExtraSlashes"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_GET_URL"), 0 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1 TSRMLS_CC); + zend_class_implements(phalcon_mvc_router_ce TSRMLS_CC, 2, phalcon_mvc_routerinterface_ce, phalcon_di_injectionawareinterface_ce); return SUCCESS; @@ -79338,18 +79870,23 @@ PHP_METHOD(Phalcon_Mvc_Router, getDI){ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ - zval *_GET, *url = NULL, *_SERVER, *question_mark, *url_parts; - zval *real_uri; + zval *uri_source, *_GET, *url = NULL, *_SERVER, *question_mark; + zval *url_parts, *real_uri; PHALCON_MM_GROW(); - phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); - if (phalcon_array_isset_quick_string(_GET, SS("_url"), 251147063UL)) { + PHALCON_OBS_VAR(uri_source); + phalcon_read_property(&uri_source, this_ptr, SL("_uriSource"), PH_NOISY_CC); - PHALCON_OBS_VAR(url); - phalcon_array_fetch_quick_string(&url, _GET, SS("_url"), 251147063UL, PH_NOISY_CC); - if (PHALCON_IS_NOT_EMPTY(url)) { - RETURN_CCTOR(url); + if (!zend_is_true(uri_source)) { + phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); + if (phalcon_array_isset_quick_string(_GET, SS("_url"), 251147063UL)) { + + PHALCON_OBS_VAR(url); + phalcon_array_fetch_quick_string(&url, _GET, SS("_url"), 251147063UL, PH_NOISY_CC); + if (PHALCON_IS_NOT_EMPTY(url)) { + RETURN_CCTOR(url); + } } } else { phalcon_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); @@ -79371,10 +79908,23 @@ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ } } } + PHALCON_MM_RESTORE(); RETURN_STRING("/", 1); } +PHP_METHOD(Phalcon_Mvc_Router, setUriSource){ + + zval *uri_source; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &uri_source) == FAILURE) { + RETURN_NULL(); + } + + phalcon_update_property_zval(this_ptr, SL("_uriSource"), uri_source TSRMLS_CC); + +} + PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes){ zval *remove; @@ -83088,25 +83638,25 @@ PHALCON_INIT_CLASS(Phalcon_EscaperInterface){ -zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_tag_ce; zend_class_entry *phalcon_di_ce; +zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_db_ce; zend_class_entry *phalcon_text_ce; -zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_exception_ce; +zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_multiple_ce; +zend_class_entry *phalcon_cache_frontend_none_ce; +zend_class_entry *phalcon_cache_frontend_data_ce; zend_class_entry *phalcon_cache_backend_mongo_ce; +zend_class_entry *phalcon_cache_backend_apc_ce; zend_class_entry *phalcon_cache_backend_memory_ce; zend_class_entry *phalcon_cache_backend_file_ce; -zend_class_entry *phalcon_cache_backend_apc_ce; -zend_class_entry *phalcon_cache_frontend_data_ce; -zend_class_entry *phalcon_cache_frontend_none_ce; zend_class_entry *phalcon_cache_frontendinterface_ce; -zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_cache_frontend_base64_ce; zend_class_entry *phalcon_cache_backendinterface_ce; zend_class_entry *phalcon_cache_backend_memcache_ce; +zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_tag_select_ce; zend_class_entry *phalcon_tag_exception_ce; zend_class_entry *phalcon_paginator_exception_ce; @@ -83114,33 +83664,35 @@ zend_class_entry *phalcon_paginator_adapter_model_ce; zend_class_entry *phalcon_paginator_adapterinterface_ce; zend_class_entry *phalcon_paginator_adapter_nativearray_ce; zend_class_entry *phalcon_validation_ce; -zend_class_entry *phalcon_validation_validator_ce; -zend_class_entry *phalcon_validation_message_ce; zend_class_entry *phalcon_validation_exception_ce; +zend_class_entry *phalcon_validation_message_ce; +zend_class_entry *phalcon_validation_validator_ce; zend_class_entry *phalcon_validation_message_group_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_regex_ce; -zend_class_entry *phalcon_validation_validator_inclusionin_ce; -zend_class_entry *phalcon_validation_validator_identical_ce; -zend_class_entry *phalcon_validation_validator_presenceof_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; +zend_class_entry *phalcon_validation_validator_presenceof_ce; +zend_class_entry *phalcon_validation_validatorinterface_ce; +zend_class_entry *phalcon_validation_validator_identical_ce; +zend_class_entry *phalcon_validation_validator_inclusionin_ce; +zend_class_entry *phalcon_validation_validator_stringlength_ce; zend_class_entry *phalcon_db_index_ce; -zend_class_entry *phalcon_db_reference_ce; -zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_adapter_ce; +zend_class_entry *phalcon_db_rawvalue_ce; +zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_exception_ce; zend_class_entry *phalcon_db_dialect_ce; -zend_class_entry *phalcon_db_rawvalue_ce; zend_class_entry *phalcon_db_profiler_ce; +zend_class_entry *phalcon_db_reference_ce; zend_class_entry *phalcon_db_adapter_pdo_ce; -zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; +zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; zend_class_entry *phalcon_db_columninterface_ce; zend_class_entry *phalcon_db_dialect_mysql_ce; -zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialectinterface_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialect_postgresql_ce; zend_class_entry *phalcon_db_indexinterface_ce; zend_class_entry *phalcon_db_profiler_item_ce; @@ -83157,18 +83709,18 @@ zend_class_entry *phalcon_acl_roleinterface_ce; zend_class_entry *phalcon_acl_resourceinterface_ce; zend_class_entry *phalcon_version_ce; zend_class_entry *phalcon_security_ce; -zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_session_ce; +zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_security_exception_ce; zend_class_entry *phalcon_session_bag_ce; zend_class_entry *phalcon_session_adapter_ce; -zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_exception_ce; +zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_adapterinterface_ce; zend_class_entry *phalcon_session_adapter_files_ce; zend_class_entry *phalcon_filter_ce; -zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_service_ce; +zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_factorydefault_ce; zend_class_entry *phalcon_di_factorydefault_cli_ce; zend_class_entry *phalcon_di_injectable_ce; @@ -83176,16 +83728,16 @@ zend_class_entry *phalcon_di_injectionawareinterface_ce; zend_class_entry *phalcon_di_serviceinterface_ce; zend_class_entry *phalcon_di_service_builder_ce; zend_class_entry *phalcon_diinterface_ce; -zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_filter_exception_ce; +zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_dispatcher_ce; zend_class_entry *phalcon_dispatcherinterface_ce; zend_class_entry *phalcon_flash_ce; zend_class_entry *phalcon_cli_task_ce; zend_class_entry *phalcon_flash_direct_ce; +zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_flashinterface_ce; zend_class_entry *phalcon_flash_exception_ce; -zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_cli_console_ce; zend_class_entry *phalcon_cli_router_ce; zend_class_entry *phalcon_cli_dispatcher_ce; @@ -83194,31 +83746,31 @@ zend_class_entry *phalcon_cli_dispatcher_exception_ce; zend_class_entry *phalcon_cli_router_exception_ce; zend_class_entry *phalcon_annotations_reader_ce; zend_class_entry *phalcon_annotations_adapter_ce; -zend_class_entry *phalcon_annotations_adapter_apc_ce; -zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_reflection_ce; zend_class_entry *phalcon_annotations_annotation_ce; +zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_adapter_apc_ce; zend_class_entry *phalcon_annotations_exception_ce; -zend_class_entry *phalcon_annotations_reflection_ce; -zend_class_entry *phalcon_annotations_adapter_memory_ce; -zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_adapterinterface_ce; +zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_readerinterface_ce; +zend_class_entry *phalcon_annotations_adapter_memory_ce; zend_class_entry *phalcon_config_ce; -zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_logger_ce; +zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_loader_exception_ce; zend_class_entry *phalcon_logger_item_ce; -zend_class_entry *phalcon_logger_adapter_ce; -zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_formatter_ce; zend_class_entry *phalcon_logger_multiple_ce; +zend_class_entry *phalcon_logger_adapter_ce; +zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_adapter_file_ce; zend_class_entry *phalcon_logger_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_syslog_ce; zend_class_entry *phalcon_logger_formatter_json_ce; -zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatter_line_ce; zend_class_entry *phalcon_logger_adapter_stream_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatterinterface_ce; zend_class_entry *phalcon_config_exception_ce; zend_class_entry *phalcon_config_adapter_ini_ce; @@ -83227,6 +83779,7 @@ zend_class_entry *phalcon_forms_element_ce; zend_class_entry *phalcon_forms_exception_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_forms_element_text_ce; +zend_class_entry *phalcon_forms_element_password_ce; zend_class_entry *phalcon_translate_ce; zend_class_entry *phalcon_translate_adapter_ce; zend_class_entry *phalcon_translate_exception_ce; @@ -83240,12 +83793,12 @@ zend_class_entry *phalcon_http_cookie_ce; zend_class_entry *phalcon_http_response_ce; zend_class_entry *phalcon_http_request_file_ce; zend_class_entry *phalcon_http_cookie_exception_ce; +zend_class_entry *phalcon_http_requestinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_http_response_exception_ce; -zend_class_entry *phalcon_http_requestinterface_ce; +zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_exception_ce; zend_class_entry *phalcon_http_response_cookies_ce; -zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_fileinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_queue_beanstalk_ce; @@ -83255,75 +83808,75 @@ zend_class_entry *phalcon_mvc_url_ce; zend_class_entry *phalcon_mvc_router_ce; zend_class_entry *phalcon_mvc_model_ce; zend_class_entry *phalcon_mvc_micro_ce; -zend_class_entry *phalcon_mvc_router_group_ce; zend_class_entry *phalcon_mvc_controller_ce; -zend_class_entry *phalcon_mvc_router_route_ce; -zend_class_entry *phalcon_mvc_urlinterface_ce; +zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_view_engine_ce; +zend_class_entry *phalcon_mvc_dispatcher_ce; +zend_class_entry *phalcon_mvc_urlinterface_ce; zend_class_entry *phalcon_mvc_user_module_ce; zend_class_entry *phalcon_mvc_user_plugin_ce; -zend_class_entry *phalcon_mvc_dispatcher_ce; -zend_class_entry *phalcon_mvc_model_row_ce; +zend_class_entry *phalcon_mvc_router_group_ce; +zend_class_entry *phalcon_mvc_router_route_ce; zend_class_entry *phalcon_mvc_model_query_ce; -zend_class_entry *phalcon_mvc_application_ce; -zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_model_row_ce; zend_class_entry *phalcon_mvc_application_exception_ce; +zend_class_entry *phalcon_mvc_collection_exception_ce; +zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_collection_manager_ce; -zend_class_entry *phalcon_mvc_controllerinterface_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; zend_class_entry *phalcon_mvc_collection_managerinterface_ce; -zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; -zend_class_entry *phalcon_mvc_model_query_lang_ce; -zend_class_entry *phalcon_mvc_model_validator_ce; -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_model_exception_ce; -zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_model_metadata_ce; +zend_class_entry *phalcon_mvc_model_manager_ce; zend_class_entry *phalcon_mvc_micro_exception_ce; zend_class_entry *phalcon_mvc_micro_collection_ce; -zend_class_entry *phalcon_mvc_model_manager_ce; -zend_class_entry *phalcon_mvc_model_message_ce; +zend_class_entry *phalcon_mvc_model_criteria_ce; zend_class_entry *phalcon_mvc_model_relation_ce; +zend_class_entry *phalcon_mvc_model_query_lang_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; -zend_class_entry *phalcon_mvc_model_criteria_ce; +zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_ce; +zend_class_entry *phalcon_mvc_model_message_ce; zend_class_entry *phalcon_mvc_model_queryinterface_ce; zend_class_entry *phalcon_mvc_model_transaction_ce; -zend_class_entry *phalcon_mvc_model_query_status_ce; -zend_class_entry *phalcon_mvc_model_validator_url_ce; -zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_metadata_files_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_query_status_ce; zend_class_entry *phalcon_mvc_model_metadata_apc_ce; -zend_class_entry *phalcon_mvc_model_metadata_session_ce; -zend_class_entry *phalcon_mvc_model_managerinterface_ce; -zend_class_entry *phalcon_mvc_model_metadata_memory_ce; -zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_messageinterface_ce; -zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_metadatainterface_ce; +zend_class_entry *phalcon_mvc_model_relationinterface_ce; +zend_class_entry *phalcon_mvc_model_metadata_memory_ce; zend_class_entry *phalcon_mvc_model_resultset_simple_ce; -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; zend_class_entry *phalcon_mvc_model_transaction_failed_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; -zend_class_entry *phalcon_mvc_model_metadatainterface_ce; -zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; +zend_class_entry *phalcon_mvc_model_managerinterface_ce; zend_class_entry *phalcon_mvc_model_validator_email_ce; -zend_class_entry *phalcon_mvc_model_relationinterface_ce; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; -zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behavior_timestampable_ce; +zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; zend_class_entry *phalcon_mvc_model_query_builderinterface_ce; +zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_exclusionin_ce; zend_class_entry *phalcon_mvc_model_transaction_exception_ce; -zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; -zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; -zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; zend_class_entry *phalcon_mvc_model_transactioninterface_ce; -zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; zend_class_entry *phalcon_mvc_model_behavior_softdelete_ce; +zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_annotations_ce; zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_introspection_ce; @@ -83334,10 +83887,10 @@ zend_class_entry *phalcon_mvc_router_annotations_ce; zend_class_entry *phalcon_mvc_router_routeinterface_ce; zend_class_entry *phalcon_mvc_user_component_ce; zend_class_entry *phalcon_mvc_url_exception_ce; -zend_class_entry *phalcon_mvc_view_exception_ce; -zend_class_entry *phalcon_mvc_view_engine_php_ce; -zend_class_entry *phalcon_mvc_view_engine_volt_ce; zend_class_entry *phalcon_mvc_viewinterface_ce; +zend_class_entry *phalcon_mvc_view_engine_volt_ce; +zend_class_entry *phalcon_mvc_view_engine_php_ce; +zend_class_entry *phalcon_mvc_view_exception_ce; zend_class_entry *phalcon_mvc_view_engineinterface_ce; zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; zend_class_entry *phalcon_events_event_ce; @@ -83378,6 +83931,7 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); + PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); @@ -83417,43 +83971,43 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); - PHALCON_INIT(Phalcon_Session_BagInterface); - PHALCON_INIT(Phalcon_FilterInterface); + PHALCON_INIT(Phalcon_Annotations_ReaderInterface); + PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); + PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); - PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); - PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_EscaperInterface); - PHALCON_INIT(Phalcon_Acl_RoleInterface); - PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); - PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Session_AdapterInterface); + PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); + PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); - PHALCON_INIT(Phalcon_Db_Dialect); - PHALCON_INIT(Phalcon_Logger_Formatter); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo); - PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Annotations_Adapter); + PHALCON_INIT(Phalcon_Logger_Adapter); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo); + PHALCON_INIT(Phalcon_Logger_Formatter); + PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Dispatcher); - PHALCON_INIT(Phalcon_Mvc_Model_Resultset); - PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_View_Engine); + PHALCON_INIT(Phalcon_Forms_Element); + PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); + PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_DI_FactoryDefault); - PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Model_Exception); + PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); - PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); @@ -83464,10 +84018,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); + PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Output); - PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); @@ -83477,25 +84031,26 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Validation_Message_Group); - PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); + PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); + PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); - PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); + PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); - PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_RawValue); + PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_Acl_Role); @@ -83518,8 +84073,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Flash_Direct); - PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_Flash_Exception); + PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); @@ -83530,29 +84085,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); - PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Annotation); + PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); - PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); + PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Exception); - PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Json); - PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); + PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); + PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); - PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Exception); + PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Element_Text); + PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); @@ -83569,10 +84125,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); - PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Url); + PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection); @@ -83593,30 +84149,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); + PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); - PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); - PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); + PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Route); @@ -83627,8 +84183,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Exception); - PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); + PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); diff --git a/build/32bits/phalcon.h b/build/32bits/phalcon.h index 684c45a0237..e75456d879f 100644 --- a/build/32bits/phalcon.h +++ b/build/32bits/phalcon.h @@ -67,6 +67,32 @@ PHALCON_INIT_FUNCS(phalcon_events_eventsawareinterface_method_entry){ +zend_class_entry *phalcon_validation_validatorinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_getoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validatorinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, isSetOption, arginfo_phalcon_validation_validatorinterface_issetoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, getOption, arginfo_phalcon_validation_validatorinterface_getoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, validate, arginfo_phalcon_validation_validatorinterface_validate) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_backendinterface_ce; PHALCON_INIT_CLASS(Phalcon_Cache_BackendInterface); @@ -2398,69 +2424,42 @@ PHALCON_INIT_FUNCS(phalcon_acl_resourceinterface_method_entry){ -zend_class_entry *phalcon_session_baginterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, property) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_annotations_readerinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) + ZEND_ARG_INFO(0, docBlock) + ZEND_ARG_INFO(0, file) + ZEND_ARG_INFO(0, line) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) +PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) + ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_filterinterface_ce; +zend_class_entry *phalcon_acl_roleinterface_ce; -PHALCON_INIT_CLASS(Phalcon_FilterInterface); +PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, handler) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) - ZEND_ARG_INFO(0, value) - ZEND_ARG_INFO(0, filters) + ZEND_ARG_INFO(0, description) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) +PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) PHP_FE_END }; @@ -2548,6 +2547,51 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapterinterface_method_entry){ +zend_class_entry *phalcon_session_baginterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, defaultValue) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_messageinterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MessageInterface); @@ -2589,53 +2633,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_messageinterface_method_entry){ -zend_class_entry *phalcon_session_adapterinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) - PHP_FE_END -}; - - - zend_class_entry *phalcon_di_serviceinterface_ce; PHALCON_INIT_CLASS(Phalcon_DI_ServiceInterface); @@ -2677,28 +2674,6 @@ PHALCON_INIT_FUNCS(phalcon_di_serviceinterface_method_entry){ -zend_class_entry *phalcon_annotations_readerinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) - ZEND_ARG_INFO(0, className) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) - ZEND_ARG_INFO(0, docBlock) - ZEND_ARG_INFO(0, file) - ZEND_ARG_INFO(0, line) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) - ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_events_managerinterface_ce; PHALCON_INIT_CLASS(Phalcon_Events_ManagerInterface); @@ -2778,95 +2753,110 @@ PHALCON_INIT_FUNCS(phalcon_escaperinterface_method_entry){ -zend_class_entry *phalcon_acl_roleinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, description) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) - ZEND_ARG_INFO(0, modelName) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_session_adapterinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) - ZEND_ARG_INFO(0, bindParams) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) - ZEND_ARG_INFO(0, orderColumns) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, defaultValue) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) - ZEND_ARG_INFO(0, limit) - ZEND_ARG_INFO(0, offset) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) - ZEND_ARG_INFO(0, forUpdate) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) - ZEND_ARG_INFO(0, sharedLock) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_filterinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_FilterInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) + ZEND_ARG_INFO(0, name) + ZEND_ARG_INFO(0, handler) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) + ZEND_ARG_INFO(0, value) + ZEND_ARG_INFO(0, filters) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) +PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) ZEND_ARG_INFO(0, dependencyInjector) - ZEND_ARG_INFO(0, modelName) - ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) - ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) + ZEND_ARG_INFO(0, autoBegin) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) + ZEND_ARG_INFO(0, collect) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) PHP_FE_END }; @@ -2904,40 +2894,76 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapterinterface_method_entry){ -zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) + ZEND_ARG_INFO(0, modelName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) - ZEND_ARG_INFO(0, autoBegin) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) + ZEND_ARG_INFO(0, bindParams) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) - ZEND_ARG_INFO(0, collect) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) + ZEND_ARG_INFO(0, orderColumns) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) + ZEND_ARG_INFO(0, limit) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) + ZEND_ARG_INFO(0, forUpdate) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) + ZEND_ARG_INFO(0, sharedLock) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) + ZEND_ARG_INFO(0, dependencyInjector) + ZEND_ARG_INFO(0, modelName) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) + ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) PHP_FE_END }; @@ -3325,18 +3351,24 @@ zend_class_entry *phalcon_validation_validator_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator); PHP_METHOD(Phalcon_Validation_Validator, __construct); +PHP_METHOD(Phalcon_Validation_Validator, isSetOption); PHP_METHOD(Phalcon_Validation_Validator, getOption); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_getoption, 0, 0, 1) ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_validation_validator_method_entry){ PHP_ME(Phalcon_Validation_Validator, __construct, arginfo_phalcon_validation_validator___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Validation_Validator, isSetOption, arginfo_phalcon_validation_validator_issetoption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator, getOption, arginfo_phalcon_validation_validator_getoption, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3550,75 +3582,133 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_method_entry){ -zend_class_entry *phalcon_db_dialect_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Dialect); +zend_class_entry *phalcon_annotations_adapter_ce; -PHP_METHOD(Phalcon_Db_Dialect, limit); -PHP_METHOD(Phalcon_Db_Dialect, forUpdate); -PHP_METHOD(Phalcon_Db_Dialect, sharedLock); -PHP_METHOD(Phalcon_Db_Dialect, getColumnList); -PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); -PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); -PHP_METHOD(Phalcon_Db_Dialect, select); +PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) - ZEND_ARG_INFO(0, sqlQuery) - ZEND_ARG_INFO(0, number) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Annotations_Adapter, setReader); +PHP_METHOD(Phalcon_Annotations_Adapter, getReader); +PHP_METHOD(Phalcon_Annotations_Adapter, get); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) + ZEND_ARG_INFO(0, reader) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) - ZEND_ARG_INFO(0, columnList) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) - ZEND_ARG_INFO(0, expression) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, methodName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) - ZEND_ARG_INFO(0, definition) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, propertyName) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ - PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ + PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_formatter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); - -PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); +zend_class_entry *phalcon_logger_adapter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) - ZEND_ARG_INFO(0, type) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); -PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ - PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) - PHP_FE_END +PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); +PHP_METHOD(Phalcon_Logger_Adapter, begin); +PHP_METHOD(Phalcon_Logger_Adapter, commit); +PHP_METHOD(Phalcon_Logger_Adapter, rollback); +PHP_METHOD(Phalcon_Logger_Adapter, emergence); +PHP_METHOD(Phalcon_Logger_Adapter, debug); +PHP_METHOD(Phalcon_Logger_Adapter, error); +PHP_METHOD(Phalcon_Logger_Adapter, info); +PHP_METHOD(Phalcon_Logger_Adapter, notice); +PHP_METHOD(Phalcon_Logger_Adapter, warning); +PHP_METHOD(Phalcon_Logger_Adapter, alert); +PHP_METHOD(Phalcon_Logger_Adapter, log); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) + ZEND_ARG_INFO(0, formatter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ + PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) + PHP_FE_END }; @@ -3629,6 +3719,7 @@ PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo); PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct); PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect); +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare); PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared); PHP_METHOD(Phalcon_Db_Adapter_Pdo, query); PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute); @@ -3658,6 +3749,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_connect, 0, 0, 0) ZEND_ARG_INFO(0, descriptor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_prepare, 0, 0, 1) + ZEND_ARG_INFO(0, sqlStatement) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_executeprepared, 0, 0, 3) ZEND_ARG_INFO(0, statement) ZEND_ARG_INFO(0, placeholders) @@ -3716,6 +3811,7 @@ ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ PHP_ME(Phalcon_Db_Adapter_Pdo, __construct, arginfo_phalcon_db_adapter_pdo___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Db_Adapter_Pdo, connect, arginfo_phalcon_db_adapter_pdo_connect, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo, prepare, arginfo_phalcon_db_adapter_pdo_prepare, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, executePrepared, arginfo_phalcon_db_adapter_pdo_executeprepared, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, query, arginfo_phalcon_db_adapter_pdo_query, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, execute, arginfo_phalcon_db_adapter_pdo_execute, ZEND_ACC_PUBLIC) @@ -3741,132 +3837,74 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ -zend_class_entry *phalcon_logger_adapter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); - -PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); -PHP_METHOD(Phalcon_Logger_Adapter, begin); -PHP_METHOD(Phalcon_Logger_Adapter, commit); -PHP_METHOD(Phalcon_Logger_Adapter, rollback); -PHP_METHOD(Phalcon_Logger_Adapter, emergence); -PHP_METHOD(Phalcon_Logger_Adapter, debug); -PHP_METHOD(Phalcon_Logger_Adapter, error); -PHP_METHOD(Phalcon_Logger_Adapter, info); -PHP_METHOD(Phalcon_Logger_Adapter, notice); -PHP_METHOD(Phalcon_Logger_Adapter, warning); -PHP_METHOD(Phalcon_Logger_Adapter, alert); -PHP_METHOD(Phalcon_Logger_Adapter, log); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) - ZEND_ARG_INFO(0, formatter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_logger_formatter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ - PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ + PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_annotations_adapter_ce; +zend_class_entry *phalcon_db_dialect_ce; -PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect); -PHP_METHOD(Phalcon_Annotations_Adapter, setReader); -PHP_METHOD(Phalcon_Annotations_Adapter, getReader); -PHP_METHOD(Phalcon_Annotations_Adapter, get); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); +PHP_METHOD(Phalcon_Db_Dialect, limit); +PHP_METHOD(Phalcon_Db_Dialect, forUpdate); +PHP_METHOD(Phalcon_Db_Dialect, sharedLock); +PHP_METHOD(Phalcon_Db_Dialect, getColumnList); +PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); +PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); +PHP_METHOD(Phalcon_Db_Dialect, select); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) - ZEND_ARG_INFO(0, reader) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) + ZEND_ARG_INFO(0, sqlQuery) + ZEND_ARG_INFO(0, number) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, methodName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) + ZEND_ARG_INFO(0, columnList) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) + ZEND_ARG_INFO(0, expression) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, propertyName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ - PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) + ZEND_ARG_INFO(0, definition) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ + PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3980,85 +4018,70 @@ PHALCON_INIT_FUNCS(phalcon_dispatcher_method_entry){ -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_view_engine_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); +PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); +PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); +PHP_METHOD(Phalcon_Mvc_View_Engine, partial); +PHP_METHOD(Phalcon_Mvc_View_Engine, getView); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) - ZEND_ARG_INFO(0, position) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) + ZEND_ARG_INFO(0, view) + ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) - ZEND_ARG_INFO(0, index) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, offset) + +zend_class_entry *phalcon_forms_element_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element); + +PHP_METHOD(Phalcon_Forms_Element, __construct); +PHP_METHOD(Phalcon_Forms_Element, setName); +PHP_METHOD(Phalcon_Forms_Element, getName); +PHP_METHOD(Phalcon_Forms_Element, addValidators); +PHP_METHOD(Phalcon_Forms_Element, addValidator); +PHP_METHOD(Phalcon_Forms_Element, getValidators); +PHP_METHOD(Phalcon_Forms_Element, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) - ZEND_ARG_INFO(0, isFresh) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) - ZEND_ARG_INFO(0, hydrateMode) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) + ZEND_ARG_INFO(0, validators) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) - ZEND_ARG_INFO(0, conditionCallback) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) + ZEND_ARG_INFO(0, validator) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ + PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, __toString, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4111,48 +4134,20 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_warning, 0, 0, 1) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_outputmessage, 0, 0, 2) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ - PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_engine_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); - -PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); -PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); -PHP_METHOD(Phalcon_Mvc_View_Engine, partial); -PHP_METHOD(Phalcon_Mvc_View_Engine, getView); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) - ZEND_ARG_INFO(0, view) - ZEND_ARG_INFO(0, dependencyInjector) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ + PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4194,6 +4189,90 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_behavior_method_entry){ +zend_class_entry *phalcon_mvc_model_resultset_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); + +PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) + ZEND_ARG_INFO(0, position) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) + ZEND_ARG_INFO(0, isFresh) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) + ZEND_ARG_INFO(0, hydrateMode) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) + ZEND_ARG_INFO(0, conditionCallback) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_adapter_ce; PHALCON_INIT_CLASS(Phalcon_Translate_Adapter); @@ -4309,6 +4388,11 @@ PHALCON_INIT_FUNCS(phalcon_di_factorydefault_method_entry){ +zend_class_entry *phalcon_mvc_model_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); + + zend_class_entry *phalcon_config_ce; PHALCON_INIT_CLASS(Phalcon_Config); @@ -4372,11 +4456,6 @@ PHALCON_INIT_FUNCS(phalcon_config_method_entry){ -zend_class_entry *phalcon_mvc_model_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); - - zend_class_entry *phalcon_mvc_router_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Router); @@ -4385,6 +4464,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct); PHP_METHOD(Phalcon_Mvc_Router, setDI); PHP_METHOD(Phalcon_Mvc_Router, getDI); PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri); +PHP_METHOD(Phalcon_Mvc_Router, setUriSource); PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes); PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace); PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule); @@ -4423,6 +4503,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seturisource, 0, 0, 1) + ZEND_ARG_INFO(0, uriSource) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_removeextraslashes, 0, 0, 1) ZEND_ARG_INFO(0, remove) ZEND_END_ARG_INFO() @@ -4513,6 +4597,7 @@ PHALCON_INIT_FUNCS(phalcon_mvc_router_method_entry){ PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDI, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, _getRewriteUri, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Router, setUriSource, arginfo_phalcon_mvc_router_seturisource, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, removeExtraSlashes, arginfo_phalcon_mvc_router_removeextraslashes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultModule, arginfo_phalcon_mvc_router_setdefaultmodule, ZEND_ACC_PUBLIC) @@ -4580,45 +4665,6 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapter_method_entry){ -zend_class_entry *phalcon_forms_element_ce; - -PHALCON_INIT_CLASS(Phalcon_Forms_Element); - -PHP_METHOD(Phalcon_Forms_Element, __construct); -PHP_METHOD(Phalcon_Forms_Element, setName); -PHP_METHOD(Phalcon_Forms_Element, getName); -PHP_METHOD(Phalcon_Forms_Element, addValidators); -PHP_METHOD(Phalcon_Forms_Element, addValidator); -PHP_METHOD(Phalcon_Forms_Element, getValidators); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) - ZEND_ARG_INFO(0, validators) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) - ZEND_ARG_INFO(0, validator) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ - PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_ce; PHALCON_INIT_CLASS(Phalcon_Db); @@ -5165,6 +5211,45 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_memcache_method_entry){ +zend_class_entry *phalcon_cache_frontend_data_ce; + +PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); + +PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); +PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); +PHP_METHOD(Phalcon_Cache_Frontend_Data, start); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); +PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); +PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); +PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) + ZEND_ARG_INFO(0, frontendOptions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ + PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_frontend_base64_ce; PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64); @@ -5282,45 +5367,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){ -zend_class_entry *phalcon_cache_frontend_data_ce; - -PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); - -PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); -PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); -PHP_METHOD(Phalcon_Cache_Frontend_Data, start); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); -PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); -PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); -PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) - ZEND_ARG_INFO(0, frontendOptions) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ - PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_tag_select_ce; PHALCON_INIT_CLASS(Phalcon_Tag_Select); @@ -5519,6 +5565,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet); PHP_METHOD(Phalcon_Validation_Message_Group, offsetExists); PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset); PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage); +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages); PHP_METHOD(Phalcon_Validation_Message_Group, count); PHP_METHOD(Phalcon_Validation_Message_Group, rewind); PHP_METHOD(Phalcon_Validation_Message_Group, current); @@ -5552,6 +5599,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessage, 0 ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessages, 0, 0, 1) + ZEND_ARG_INFO(0, messages) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group___set_state, 0, 0, 1) ZEND_ARG_INFO(0, group) ZEND_END_ARG_INFO() @@ -5563,6 +5614,7 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ PHP_ME(Phalcon_Validation_Message_Group, offsetExists, arginfo_phalcon_validation_message_group_offsetexists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, offsetUnset, arginfo_phalcon_validation_message_group_offsetunset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, appendMessage, arginfo_phalcon_validation_message_group_appendmessage, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message_Group, appendMessages, arginfo_phalcon_validation_message_group_appendmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, count, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, rewind, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, current, NULL, ZEND_ACC_PUBLIC) @@ -5575,37 +5627,37 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ -zend_class_entry *phalcon_validation_validator_regex_ce; +zend_class_entry *phalcon_validation_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); -PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); +PHP_METHOD(Phalcon_Validation_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_validation_validator_email_ce; +zend_class_entry *phalcon_validation_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); -PHP_METHOD(Phalcon_Validation_Validator_Email, validate); +PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -5647,6 +5699,24 @@ PHALCON_INIT_FUNCS(phalcon_validation_validator_inclusionin_method_entry){ +zend_class_entry *phalcon_validation_validator_stringlength_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength); + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_stringlength_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validator_stringlength_method_entry){ + PHP_ME(Phalcon_Validation_Validator_StringLength, validate, arginfo_phalcon_validation_validator_stringlength_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_validation_validator_exclusionin_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn); @@ -5761,30 +5831,6 @@ PHALCON_INIT_FUNCS(phalcon_db_column_method_entry){ -zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); - -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) - ZEND_ARG_INFO(0, identifier) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, schema) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Sqlite); @@ -5823,6 +5869,30 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_sqlite_method_entry){ +zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); + +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) + ZEND_ARG_INFO(0, identifier) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, schema) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Postgresql); @@ -5851,301 +5921,301 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_postgresql_method_entry){ -zend_class_entry *phalcon_db_dialect_mysql_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) + ZEND_ARG_INFO(0, indexName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_db_dialect_sqlite_ce; +zend_class_entry *phalcon_db_dialect_mysql_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) - ZEND_ARG_INFO(0, indexName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -6371,6 +6441,27 @@ PHALCON_INIT_FUNCS(phalcon_db_profiler_item_method_entry){ +zend_class_entry *phalcon_db_rawvalue_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_RawValue); + +PHP_METHOD(Phalcon_Db_RawValue, __construct); +PHP_METHOD(Phalcon_Db_RawValue, getValue); +PHP_METHOD(Phalcon_Db_RawValue, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ + PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_reference_ce; PHALCON_INIT_CLASS(Phalcon_Db_Reference); @@ -6407,27 +6498,6 @@ PHALCON_INIT_FUNCS(phalcon_db_reference_method_entry){ -zend_class_entry *phalcon_db_rawvalue_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_RawValue); - -PHP_METHOD(Phalcon_Db_RawValue, __construct); -PHP_METHOD(Phalcon_Db_RawValue, getValue); -PHP_METHOD(Phalcon_Db_RawValue, __toString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ - PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_result_pdo_ce; PHALCON_INIT_CLASS(Phalcon_Db_Result_Pdo); @@ -7094,6 +7164,11 @@ PHALCON_INIT_FUNCS(phalcon_flash_direct_method_entry){ +zend_class_entry *phalcon_flash_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Flash_Exception); + + zend_class_entry *phalcon_flash_session_ce; PHALCON_INIT_CLASS(Phalcon_Flash_Session); @@ -7137,11 +7212,6 @@ PHALCON_INIT_FUNCS(phalcon_flash_session_method_entry){ -zend_class_entry *phalcon_flash_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Flash_Exception); - - zend_class_entry *phalcon_cli_task_ce; PHALCON_INIT_CLASS(Phalcon_CLI_Task); @@ -7361,37 +7431,6 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_apc_method_entry){ -zend_class_entry *phalcon_annotations_reflection_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); - -PHP_METHOD(Phalcon_Annotations_Reflection, __construct); -PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); -PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) - ZEND_ARG_INFO(0, reflectionData) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ - PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_annotations_annotation_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Annotation); @@ -7447,6 +7486,37 @@ PHALCON_INIT_FUNCS(phalcon_annotations_annotation_method_entry){ +zend_class_entry *phalcon_annotations_reflection_ce; + +PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); + +PHP_METHOD(Phalcon_Annotations_Reflection, __construct); +PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); +PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) + ZEND_ARG_INFO(0, reflectionData) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ + PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_annotations_collection_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Collection); @@ -7544,6 +7614,11 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_memory_method_entry){ +zend_class_entry *phalcon_logger_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger); + + zend_class_entry *phalcon_loader_ce; PHALCON_INIT_CLASS(Phalcon_Loader); @@ -7623,11 +7698,6 @@ PHALCON_INIT_FUNCS(phalcon_loader_method_entry){ -zend_class_entry *phalcon_logger_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger); - - zend_class_entry *phalcon_loader_exception_ce; PHALCON_INIT_CLASS(Phalcon_Loader_Exception); @@ -7739,48 +7809,6 @@ zend_class_entry *phalcon_logger_exception_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Exception); -zend_class_entry *phalcon_logger_formatter_line_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); - -PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, format); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) - ZEND_ARG_INFO(0, format) - ZEND_ARG_INFO(0, dateFormat) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) - ZEND_ARG_INFO(0, format) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) - ZEND_ARG_INFO(0, date) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) - ZEND_ARG_INFO(0, message) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, timestamp) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ - PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_logger_formatter_json_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Json); @@ -7800,63 +7828,63 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_json_method_entry){ -zend_class_entry *phalcon_logger_adapter_file_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); -PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_File, close); -PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_adapter_syslog_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); +zend_class_entry *phalcon_logger_adapter_file_ce; -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) +PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_File, close); +PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -7892,6 +7920,48 @@ PHALCON_INIT_FUNCS(phalcon_logger_adapter_stream_method_entry){ +zend_class_entry *phalcon_logger_formatter_line_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); + +PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, format); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) + ZEND_ARG_INFO(0, format) + ZEND_ARG_INFO(0, dateFormat) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) + ZEND_ARG_INFO(0, format) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) + ZEND_ARG_INFO(0, date) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, timestamp) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ + PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_logger_formatter_syslog_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Syslog); @@ -7911,6 +7981,11 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_syslog_method_entry){ +zend_class_entry *phalcon_config_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Config_Exception); + + zend_class_entry *phalcon_config_adapter_ini_ce; PHALCON_INIT_CLASS(Phalcon_Config_Adapter_Ini); @@ -7928,24 +8003,35 @@ PHALCON_INIT_FUNCS(phalcon_config_adapter_ini_method_entry){ -zend_class_entry *phalcon_config_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Config_Exception); - - zend_class_entry *phalcon_forms_form_ce; PHALCON_INIT_CLASS(Phalcon_Forms_Form); PHP_METHOD(Phalcon_Forms_Form, __construct); PHP_METHOD(Phalcon_Forms_Form, isValid); +PHP_METHOD(Phalcon_Forms_Form, getMessages); +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor); PHP_METHOD(Phalcon_Forms_Form, add); PHP_METHOD(Phalcon_Forms_Form, render); +PHP_METHOD(Phalcon_Forms_Form, get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 0) + ZEND_ARG_INFO(0, entity) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_isvalid, 0, 0, 0) + ZEND_ARG_INFO(0, data) ZEND_ARG_INFO(0, entity) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessages, 0, 0, 0) + ZEND_ARG_INFO(0, byItemName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessagesfor, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_add, 0, 0, 1) ZEND_ARG_INFO(0, element) ZEND_END_ARG_INFO() @@ -7955,11 +8041,18 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_render, 0, 0, 1) ZEND_ARG_INFO(0, attributes) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_get, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + PHALCON_INIT_FUNCS(phalcon_forms_form_method_entry){ PHP_ME(Phalcon_Forms_Form, __construct, arginfo_phalcon_forms_form___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Form, isValid, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, isValid, arginfo_phalcon_forms_form_isvalid, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessages, arginfo_phalcon_forms_form_getmessages, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessagesFor, arginfo_phalcon_forms_form_getmessagesfor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, add, arginfo_phalcon_forms_form_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, render, arginfo_phalcon_forms_form_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, get, arginfo_phalcon_forms_form_get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8004,6 +8097,23 @@ PHALCON_INIT_FUNCS(phalcon_forms_element_text_method_entry){ +zend_class_entry *phalcon_forms_element_password_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password); + +PHP_METHOD(Phalcon_Forms_Element_Password, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_password_render, 0, 0, 0) + ZEND_ARG_INFO(0, attributes) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_forms_element_password_method_entry){ + PHP_ME(Phalcon_Forms_Element_Password, render, arginfo_phalcon_forms_element_password_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_ce; PHALCON_INIT_CLASS(Phalcon_Translate); @@ -8574,275 +8684,66 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady); PHP_METHOD(Phalcon_Queue_Beanstalk, readStatus); PHP_METHOD(Phalcon_Queue_Beanstalk, read); PHP_METHOD(Phalcon_Queue_Beanstalk, write); -PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) - ZEND_ARG_INFO(0, data) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) - ZEND_ARG_INFO(0, timeout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) - ZEND_ARG_INFO(0, length) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_queue_beanstalk_job_ce; - -PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); - -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, id) - ZEND_ARG_INFO(0, body) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View); - -PHP_METHOD(Phalcon_Mvc_View, __construct); -PHP_METHOD(Phalcon_Mvc_View, setViewsDir); -PHP_METHOD(Phalcon_Mvc_View, getViewsDir); -PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, setBasePath); -PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); -PHP_METHOD(Phalcon_Mvc_View, disableLevel); -PHP_METHOD(Phalcon_Mvc_View, setMainView); -PHP_METHOD(Phalcon_Mvc_View, getMainView); -PHP_METHOD(Phalcon_Mvc_View, setLayout); -PHP_METHOD(Phalcon_Mvc_View, getLayout); -PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, setParamToView); -PHP_METHOD(Phalcon_Mvc_View, setVars); -PHP_METHOD(Phalcon_Mvc_View, setVar); -PHP_METHOD(Phalcon_Mvc_View, getVar); -PHP_METHOD(Phalcon_Mvc_View, getParamsToView); -PHP_METHOD(Phalcon_Mvc_View, getControllerName); -PHP_METHOD(Phalcon_Mvc_View, getActionName); -PHP_METHOD(Phalcon_Mvc_View, getParams); -PHP_METHOD(Phalcon_Mvc_View, start); -PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); -PHP_METHOD(Phalcon_Mvc_View, _engineRender); -PHP_METHOD(Phalcon_Mvc_View, registerEngines); -PHP_METHOD(Phalcon_Mvc_View, render); -PHP_METHOD(Phalcon_Mvc_View, pick); -PHP_METHOD(Phalcon_Mvc_View, partial); -PHP_METHOD(Phalcon_Mvc_View, getRender); -PHP_METHOD(Phalcon_Mvc_View, finish); -PHP_METHOD(Phalcon_Mvc_View, _createCache); -PHP_METHOD(Phalcon_Mvc_View, isCaching); -PHP_METHOD(Phalcon_Mvc_View, getCache); -PHP_METHOD(Phalcon_Mvc_View, cache); -PHP_METHOD(Phalcon_Mvc_View, setContent); -PHP_METHOD(Phalcon_Mvc_View, getContent); -PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); -PHP_METHOD(Phalcon_Mvc_View, disable); -PHP_METHOD(Phalcon_Mvc_View, enable); -PHP_METHOD(Phalcon_Mvc_View, reset); -PHP_METHOD(Phalcon_Mvc_View, __set); -PHP_METHOD(Phalcon_Mvc_View, __get); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) - ZEND_ARG_INFO(0, viewsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) - ZEND_ARG_INFO(0, layoutsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) - ZEND_ARG_INFO(0, partialsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) - ZEND_ARG_INFO(0, viewPath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) - ZEND_ARG_INFO(0, layout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) - ZEND_ARG_INFO(0, templateBefore) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) - ZEND_ARG_INFO(0, templateAfter) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, merge) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) + ZEND_ARG_INFO(0, timeout) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) - ZEND_ARG_INFO(0, engines) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) + ZEND_ARG_INFO(0, length) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) - ZEND_ARG_INFO(0, renderView) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_queue_beanstalk_job_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) - ZEND_ARG_INFO(0, content) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) + ZEND_ARG_INFO(0, queue) + ZEND_ARG_INFO(0, id) + ZEND_ARG_INFO(0, body) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ - PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9205,14 +9106,17 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_save, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_create, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_update, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_skipoperation, 0, 0, 1) @@ -9365,48 +9269,257 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_method_entry){ -zend_class_entry *phalcon_mvc_url_ce; +zend_class_entry *phalcon_mvc_url_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Url); + +PHP_METHOD(Phalcon_Mvc_Url, setDI); +PHP_METHOD(Phalcon_Mvc_Url, getDI); +PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, setBasePath); +PHP_METHOD(Phalcon_Mvc_Url, getBasePath); +PHP_METHOD(Phalcon_Mvc_Url, get); +PHP_METHOD(Phalcon_Mvc_Url, path); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) + ZEND_ARG_INFO(0, dependencyInjector) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) + ZEND_ARG_INFO(0, baseUri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) + ZEND_ARG_INFO(0, uri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ + PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_view_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View); + +PHP_METHOD(Phalcon_Mvc_View, __construct); +PHP_METHOD(Phalcon_Mvc_View, setViewsDir); +PHP_METHOD(Phalcon_Mvc_View, getViewsDir); +PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, setBasePath); +PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); +PHP_METHOD(Phalcon_Mvc_View, disableLevel); +PHP_METHOD(Phalcon_Mvc_View, setMainView); +PHP_METHOD(Phalcon_Mvc_View, getMainView); +PHP_METHOD(Phalcon_Mvc_View, setLayout); +PHP_METHOD(Phalcon_Mvc_View, getLayout); +PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, setParamToView); +PHP_METHOD(Phalcon_Mvc_View, setVars); +PHP_METHOD(Phalcon_Mvc_View, setVar); +PHP_METHOD(Phalcon_Mvc_View, getVar); +PHP_METHOD(Phalcon_Mvc_View, getParamsToView); +PHP_METHOD(Phalcon_Mvc_View, getControllerName); +PHP_METHOD(Phalcon_Mvc_View, getActionName); +PHP_METHOD(Phalcon_Mvc_View, getParams); +PHP_METHOD(Phalcon_Mvc_View, start); +PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); +PHP_METHOD(Phalcon_Mvc_View, _engineRender); +PHP_METHOD(Phalcon_Mvc_View, registerEngines); +PHP_METHOD(Phalcon_Mvc_View, render); +PHP_METHOD(Phalcon_Mvc_View, pick); +PHP_METHOD(Phalcon_Mvc_View, partial); +PHP_METHOD(Phalcon_Mvc_View, getRender); +PHP_METHOD(Phalcon_Mvc_View, finish); +PHP_METHOD(Phalcon_Mvc_View, _createCache); +PHP_METHOD(Phalcon_Mvc_View, isCaching); +PHP_METHOD(Phalcon_Mvc_View, getCache); +PHP_METHOD(Phalcon_Mvc_View, cache); +PHP_METHOD(Phalcon_Mvc_View, setContent); +PHP_METHOD(Phalcon_Mvc_View, getContent); +PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); +PHP_METHOD(Phalcon_Mvc_View, disable); +PHP_METHOD(Phalcon_Mvc_View, enable); +PHP_METHOD(Phalcon_Mvc_View, reset); +PHP_METHOD(Phalcon_Mvc_View, __set); +PHP_METHOD(Phalcon_Mvc_View, __get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) + ZEND_ARG_INFO(0, viewsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) + ZEND_ARG_INFO(0, layoutsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) + ZEND_ARG_INFO(0, partialsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) + ZEND_ARG_INFO(0, viewPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) + ZEND_ARG_INFO(0, layout) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) + ZEND_ARG_INFO(0, templateBefore) +ZEND_END_ARG_INFO() -PHALCON_INIT_CLASS(Phalcon_Mvc_Url); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) + ZEND_ARG_INFO(0, templateAfter) +ZEND_END_ARG_INFO() -PHP_METHOD(Phalcon_Mvc_Url, setDI); -PHP_METHOD(Phalcon_Mvc_Url, getDI); -PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, setBasePath); -PHP_METHOD(Phalcon_Mvc_Url, getBasePath); -PHP_METHOD(Phalcon_Mvc_Url, get); -PHP_METHOD(Phalcon_Mvc_Url, path); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, merge) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) - ZEND_ARG_INFO(0, baseUri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) + ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) - ZEND_ARG_INFO(0, uri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) + ZEND_ARG_INFO(0, engines) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) - ZEND_ARG_INFO(0, path) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ - PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) + ZEND_ARG_INFO(0, renderView) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ + PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10687,90 +10800,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_apc_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_query_status_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); - -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) - ZEND_ARG_INFO(0, success) - ZEND_ARG_INFO(0, model) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_metadata_files_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_query_builder_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Builder); @@ -10892,35 +10921,102 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_query_builder_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_metadata_files_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_metadata_apc_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_query_status_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) + ZEND_ARG_INFO(0, success) + ZEND_ARG_INFO(0, model) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10956,36 +11052,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_memory_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_session_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_resultset_simple_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset_Simple); @@ -11050,57 +11116,65 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_complex_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_email_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); -PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_transaction_failed_ce; +zend_class_entry *phalcon_mvc_model_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -11141,6 +11215,45 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_uniqueness_method_entry){ +zend_class_entry *phalcon_mvc_model_transaction_failed_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); + +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_transaction_manager_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Manager); @@ -11290,6 +11403,23 @@ zend_class_entry *phalcon_mvc_model_transaction_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Exception); +zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_StringLength); @@ -11341,23 +11471,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_exclusionin_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); - -PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_ModuleDefinitionInterface); @@ -11638,25 +11751,6 @@ zend_class_entry *phalcon_mvc_view_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Exception); -zend_class_entry *phalcon_mvc_view_engine_php_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); - -PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) - ZEND_ARG_INFO(0, path) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, mustClean) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_view_engine_volt_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt); @@ -11715,6 +11809,25 @@ PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_volt_method_entry){ +zend_class_entry *phalcon_mvc_view_engine_php_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); + +PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) + ZEND_ARG_INFO(0, path) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, mustClean) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt_Compiler); diff --git a/build/safe/phalcon.c b/build/safe/phalcon.c index bb43b34ec23..4b3698f5b5e 100644 --- a/build/safe/phalcon.c +++ b/build/safe/phalcon.c @@ -16114,6 +16114,27 @@ PHP_METHOD(Phalcon_Validation_Validator, __construct){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Validator, isSetOption){ + + zval *key, *options; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &key) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(options); + phalcon_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); + if (Z_TYPE_P(options) == IS_ARRAY) { + if (phalcon_array_isset(options, key)) { + RETURN_MM_TRUE; + } + } + + RETURN_MM_FALSE; +} + PHP_METHOD(Phalcon_Validation_Validator, getOption){ zval *key, *options, *value; @@ -16141,6 +16162,25 @@ PHP_METHOD(Phalcon_Validation_Validator, getOption){ +#ifdef HAVE_CONFIG_H +#endif + + + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface){ + + PHALCON_REGISTER_INTERFACE(Phalcon\\Validation, ValidatorInterface, validation_validatorinterface, phalcon_validation_validatorinterface_method_entry); + + return SUCCESS; +} + + + + + + + + #ifdef HAVE_CONFIG_H #endif @@ -16308,6 +16348,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Regex, validation_validator_regex, "phalcon\\validation\\validator", phalcon_validation_validator_regex_method_entry, 0); + zend_class_implements(phalcon_validation_validator_regex_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16388,10 +16430,151 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate){ +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, StringLength, validation_validator_stringlength, "phalcon\\validation\\validator", phalcon_validation_validator_stringlength_method_entry, 0); + + zend_class_implements(phalcon_validation_validator_stringlength_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ + + zval *validator, *attribute, *option = NULL, *is_set_min; + zval *is_set_max, *value, *length = NULL, *invalid_maximum = NULL; + zval *invalid_minimum = NULL, *maximum, *message_str = NULL; + zval *type = NULL, *message = NULL, *minimum; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &validator, &attribute) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_INIT_VAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(is_set_min); + PHALCON_CALL_METHOD_PARAMS_1(is_set_min, this_ptr, "issetoption", option); + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(is_set_max); + PHALCON_CALL_METHOD_PARAMS_1(is_set_max, this_ptr, "issetoption", option); + if (!zend_is_true(is_set_min)) { + if (!zend_is_true(is_set_max)) { + PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "A minimum or maximum must be set"); + return; + } + } + + PHALCON_INIT_VAR(value); + PHALCON_CALL_METHOD_PARAMS_1(value, validator, "getvalue", attribute); + + if (phalcon_function_exists_ex(SS("mb_strlen") TSRMLS_CC) == SUCCESS) { + PHALCON_INIT_VAR(length); + PHALCON_CALL_FUNC_PARAMS_1(length, "mb_strlen", value); + } else { + PHALCON_INIT_NVAR(length); + phalcon_fast_strlen(length, value); + } + + PHALCON_INIT_VAR(invalid_maximum); + ZVAL_BOOL(invalid_maximum, 0); + + PHALCON_INIT_VAR(invalid_minimum); + ZVAL_BOOL(invalid_minimum, 0); + + if (zend_is_true(is_set_max)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(maximum); + PHALCON_CALL_METHOD_PARAMS_1(maximum, this_ptr, "getoption", option); + + is_smaller_function(invalid_maximum, maximum, length TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_maximum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMaximum", 1); + + PHALCON_INIT_VAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' exceeds the maximum ", maximum, " characters"); + } + + PHALCON_INIT_VAR(type); + ZVAL_STRING(type, "TooLong", 1); + + PHALCON_INIT_VAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN(message, "__construct", message_str, attribute, type); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(validator, "appendmessage", message); + RETURN_MM_FALSE; + } + } + + if (zend_is_true(is_set_min)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(minimum); + PHALCON_CALL_METHOD_PARAMS_1(minimum, this_ptr, "getoption", option); + + is_smaller_function(invalid_minimum, length, minimum TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_minimum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMinimum", 1); + + PHALCON_INIT_NVAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1(message_str, this_ptr, "getoption", option); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' is less than the minimum ", minimum, " characters"); + } + + PHALCON_INIT_NVAR(type); + ZVAL_STRING(type, "TooShort", 1); + + PHALCON_INIT_NVAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN(message, "__construct", message_str, attribute, type); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(validator, "appendmessage", message); + RETURN_MM_FALSE; + } + } + + RETURN_MM_TRUE; +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Validation_Validator_PresenceOf){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, PresenceOf, validation_validator_presenceof, "phalcon\\validation\\validator", phalcon_validation_validator_presenceof_method_entry, 0); + zend_class_implements(phalcon_validation_validator_presenceof_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16450,6 +16633,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_InclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, InclusionIn, validation_validator_inclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_inclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_inclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16525,6 +16710,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, ExclusionIn, validation_validator_exclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_exclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_exclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16555,7 +16742,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate){ PHALCON_INIT_VAR(in_array); PHALCON_CALL_FUNC_PARAMS_2(in_array, "in_array", value, domain); - if (!zend_is_true(in_array)) { + if (zend_is_true(in_array)) { PHALCON_INIT_NVAR(option); ZVAL_STRING(option, "message", 1); @@ -16600,6 +16787,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Identical){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Identical, validation_validator_identical, "phalcon\\validation\\validator", phalcon_validation_validator_identical_method_entry, 0); + zend_class_implements(phalcon_validation_validator_identical_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16664,6 +16853,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Email, validation_validator_email, "phalcon\\validation\\validator", phalcon_validation_validator_email_method_entry, 0); + zend_class_implements(phalcon_validation_validator_email_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -16847,6 +17038,35 @@ PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages){ + + zval *messages, *current_messages, *final_messages = NULL; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &messages) == FAILURE) { + RETURN_MM_NULL(); + } + + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_THROW_EXCEPTION_STR(phalcon_validation_exception_ce, "The messages must be an array"); + return; + } + + PHALCON_OBS_VAR(current_messages); + phalcon_read_property(¤t_messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (Z_TYPE_P(current_messages) == IS_ARRAY) { + PHALCON_INIT_VAR(final_messages); + PHALCON_CALL_FUNC_PARAMS_2(final_messages, "array_merge", current_messages, messages); + } else { + PHALCON_CPY_WRT(final_messages, messages); + } + + phalcon_update_property_zval(this_ptr, SL("_messages"), final_messages TSRMLS_CC); + + PHALCON_MM_RESTORE(); +} + PHP_METHOD(Phalcon_Validation_Message_Group, count){ zval *messages, *number; @@ -22458,6 +22678,60 @@ PHP_METHOD(Phalcon_Forms_Manager, create){ + + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Password, forms_element_password, "phalcon\\forms\\element", phalcon_forms_element_password_method_entry, 0); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Forms_Element_Password, render){ + + zval *attributes = NULL, *name, *widget_attributes = NULL; + zval *code; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &attributes) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!attributes) { + PHALCON_INIT_VAR(attributes); + } + + PHALCON_OBS_VAR(name); + phalcon_read_property(&name, this_ptr, SL("_name"), PH_NOISY_CC); + if (Z_TYPE_P(attributes) != IS_ARRAY) { + PHALCON_INIT_VAR(widget_attributes); + array_init(widget_attributes); + } else { + PHALCON_CPY_WRT(widget_attributes, attributes); + } + + phalcon_array_update_long(&widget_attributes, 0, &name, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_VAR(code); + PHALCON_CALL_STATIC_PARAMS_1(code, "phalcon\\tag", "passwordfield", widget_attributes); + + RETURN_CCTOR(code); +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Forms_Element_Text){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Text, forms_element_text, "phalcon\\forms\\element", phalcon_forms_element_text_method_entry, 0); @@ -22592,6 +22866,17 @@ PHP_METHOD(Phalcon_Forms_Element, getValidators){ RETURN_MEMBER(this_ptr, "_validators"); } +PHP_METHOD(Phalcon_Forms_Element, __toString){ + + zval *content; + + PHALCON_MM_GROW(); + + PHALCON_INIT_VAR(content); + PHALCON_CALL_METHOD(content, this_ptr, "render"); + RETURN_CCTOR(content); +} + @@ -22622,39 +22907,205 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Exception){ + + PHALCON_INIT_CLASS(Phalcon_Forms_Form){ PHALCON_REGISTER_CLASS(Phalcon\\Forms, Form, forms_form, phalcon_forms_form_method_entry, 0); zend_declare_property_null(phalcon_forms_form_ce, SL("_entity"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_forms_form_ce, SL("_elements"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_forms_form_ce, SL("_messages"), ZEND_ACC_PROTECTED TSRMLS_CC); return SUCCESS; } PHP_METHOD(Phalcon_Forms_Form, __construct){ - zval *entity; + zval *entity = NULL; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &entity) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &entity) == FAILURE) { RETURN_MM_NULL(); } - if (Z_TYPE_P(entity) != IS_OBJECT) { - PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); - return; + if (!entity) { + PHALCON_INIT_VAR(entity); + } + + if (Z_TYPE_P(entity) != IS_NULL) { + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); + return; + } + phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); } - phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); PHALCON_MM_RESTORE(); } PHP_METHOD(Phalcon_Forms_Form, isValid){ + zval *data = NULL, *entity = NULL, *elements, *failed = NULL, *messages; + zval *element = NULL, *validators = NULL, *validation = NULL, *element_messages = NULL; + zval *name = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &entity) == FAILURE) { + RETURN_MM_NULL(); + } + if (!data) { + PHALCON_INIT_VAR(data); + } + + if (!entity) { + PHALCON_INIT_VAR(entity); + } else { + PHALCON_SEPARATE_PARAM(entity); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (Z_TYPE_P(elements) == IS_ARRAY) { + + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_OBS_NVAR(entity); + phalcon_read_property(&entity, this_ptr, SL("_entity"), PH_NOISY_CC); + } + + PHALCON_INIT_VAR(failed); + ZVAL_BOOL(failed, 0); + + PHALCON_INIT_VAR(messages); + array_init(messages); + + if (!phalcon_is_iterable(elements, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_VALUE(element); + + PHALCON_INIT_NVAR(validators); + PHALCON_CALL_METHOD(validators, element, "getvalidators"); + if (Z_TYPE_P(validators) == IS_ARRAY) { + + PHALCON_INIT_NVAR(validation); + object_init_ex(validation, phalcon_validation_ce); + + PHALCON_INIT_NVAR(element_messages); + PHALCON_CALL_METHOD_PARAMS_2(element_messages, validation, "validate", data, entity); + if (phalcon_fast_count_ev(element_messages TSRMLS_CC)) { + PHALCON_INIT_NVAR(name); + PHALCON_CALL_METHOD(name, element, "getname"); + phalcon_array_update_zval(&messages, name, &element_messages, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_NVAR(failed); + ZVAL_BOOL(failed, 1); + } + } + + zend_hash_move_forward_ex(ah0, &hp0); + } + + if (zend_is_true(failed)) { + phalcon_update_property_zval(this_ptr, SL("_messages"), messages TSRMLS_CC); + } + + RETURN_NCTOR(failed); + } + + PHALCON_MM_RESTORE(); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessages){ + + zval *by_item_name = NULL, *messages, *group = NULL, *element_messages = NULL; + zval *element = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &by_item_name) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!by_item_name) { + PHALCON_INIT_VAR(by_item_name); + ZVAL_BOOL(by_item_name, 1); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (zend_is_true(by_item_name)) { + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + RETURN_CTOR(group); + } + + RETURN_CCTOR(messages); + } + + PHALCON_INIT_NVAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + if (!phalcon_is_iterable(messages, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_KEY(element, ah0, hp0); + PHALCON_GET_FOREACH_VALUE(element_messages); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN(group, "appendmessages", element_messages); + + zend_hash_move_forward_ex(ah0, &hp0); + } + + + RETURN_CTOR(group); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor){ + + zval *name, *messages, *element_messages, *group; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (phalcon_array_isset(messages, name)) { + PHALCON_OBS_VAR(element_messages); + phalcon_array_fetch(&element_messages, messages, name, PH_NOISY_CC); + RETURN_CCTOR(element_messages); + } + + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + RETURN_CTOR(group); } PHP_METHOD(Phalcon_Forms_Form, add){ @@ -22676,7 +23127,7 @@ PHP_METHOD(Phalcon_Forms_Form, add){ PHALCON_CALL_METHOD(name, element, "getname"); phalcon_update_property_array(this_ptr, SL("_elements"), name, element TSRMLS_CC); - RETURN_CCTOR(element); + RETURN_THIS(); } PHP_METHOD(Phalcon_Forms_Form, render){ @@ -22712,6 +23163,31 @@ PHP_METHOD(Phalcon_Forms_Form, render){ RETURN_CCTOR(code); } +PHP_METHOD(Phalcon_Forms_Form, get){ + + zval *name, *elements, *exception_message, *element; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (!phalcon_array_isset(elements, name)) { + PHALCON_INIT_VAR(exception_message); + PHALCON_CONCAT_SVS(exception_message, "Element with ID=", name, " is not part of the form"); + PHALCON_THROW_EXCEPTION_ZVAL(phalcon_forms_exception_ce, exception_message); + return; + } + + PHALCON_OBS_VAR(element); + phalcon_array_fetch(&element, elements, name, PH_NOISY_CC); + + RETURN_CCTOR(element); +} + @@ -24940,6 +25416,24 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect){ PHALCON_MM_RESTORE();} +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare){ + + zval *sql_statement, *pdo, *statement; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &sql_statement) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(pdo); + phalcon_read_property(&pdo, this_ptr, SL("_pdo"), PH_NOISY_CC); + + PHALCON_INIT_VAR(statement); + PHALCON_CALL_METHOD_PARAMS_1(statement, pdo, "prepare", sql_statement); + RETURN_CCTOR(statement); +} + PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared){ zval *statement = NULL, *placeholders = NULL, *data_types = NULL; @@ -37046,7 +37540,7 @@ PHP_METHOD(Phalcon_Version, _getVersion){ add_next_index_long(version, 0); add_next_index_long(version, 0); add_next_index_long(version, 2); - add_next_index_long(version, 1); + add_next_index_long(version, 2); RETURN_CTOR(version); } @@ -39158,17 +39652,9 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ PHALCON_INIT_NVAR(not_exists); ZVAL_BOOL(not_exists, 0); if (Z_TYPE_P(events_manager) == IS_OBJECT) { - phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); - PHALCON_INIT_NVAR(event_name); ZVAL_STRING(event_name, "view:afterRenderView", 1); - - PHALCON_INIT_NVAR(status); - PHALCON_CALL_METHOD_PARAMS_2(status, events_manager, "fire", event_name, this_ptr); - if (PHALCON_IS_FALSE(status)) { - zend_hash_move_forward_ex(ah0, &hp0); - continue; - } + PHALCON_CALL_METHOD_PARAMS_2_NORETURN(events_manager, "fire", event_name, this_ptr); } break; @@ -39178,6 +39664,14 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ } if (PHALCON_IS_TRUE(not_exists)) { + + if (Z_TYPE_P(events_manager) == IS_OBJECT) { + phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); + + PHALCON_INIT_NVAR(event_name); + ZVAL_STRING(event_name, "view:notFoundView", 1); + PHALCON_CALL_METHOD_PARAMS_2_NORETURN(events_manager, "fire", event_name, this_ptr); + } if (!zend_is_true(silence)) { PHALCON_INIT_VAR(exception_message); PHALCON_CONCAT_SVS(exception_message, "View '", views_dir_path, "' was not found in the views directory"); @@ -77266,8 +77760,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords){ PHP_METHOD(Phalcon_Mvc_Model, save){ - zval *data = NULL, *meta_data, *attributes, *attribute = NULL; - zval *value = NULL, *possible_setter = NULL, *write_connection; + zval *data = NULL, *white_list = NULL, *meta_data, *attributes; + zval *attribute = NULL, *value = NULL, *possible_setter = NULL, *write_connection; zval *related, *status = NULL, *schema, *source, *table = NULL, *read_connection; zval *exists, *empty_array, *identity_field; zval *success = NULL; @@ -77278,7 +77772,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77286,6 +77780,10 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -77308,6 +77806,13 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ if (phalcon_array_isset(data, attribute)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute, PH_NOISY_CC); @@ -77419,18 +77924,18 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHP_METHOD(Phalcon_Mvc_Model, create){ - zval *data = NULL, *meta_data, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *read_connection; - zval *exists, *field, *type, *message, *model_message; - zval *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *read_connection, *exists, *field, *type, *message; + zval *model_message, *messages, *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77438,6 +77943,10 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -77480,6 +77989,13 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -77531,18 +78047,19 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHP_METHOD(Phalcon_Mvc_Model, update){ - zval *data = NULL, *meta_data = NULL, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *dirty_state; - zval *read_connection, *exists, *field, *type, *message; - zval *model_message, *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data = NULL, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *dirty_state, *read_connection, *exists; + zval *field, *type, *message, *model_message, *messages; + zval *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -77550,6 +78067,10 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); if (Z_TYPE_P(data) != IS_NULL) { @@ -77593,6 +78114,13 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -79239,6 +79767,7 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ PHALCON_REGISTER_CLASS(Phalcon\\Mvc, Router, mvc_router, phalcon_mvc_router_method_entry, 0); zend_declare_property_null(phalcon_mvc_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_mvc_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_module"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_controller"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -79256,6 +79785,9 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ zend_declare_property_bool(phalcon_mvc_router_ce, SL("_removeExtraSlashes"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_GET_URL"), 0 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1 TSRMLS_CC); + zend_class_implements(phalcon_mvc_router_ce TSRMLS_CC, 2, phalcon_mvc_routerinterface_ce, phalcon_di_injectionawareinterface_ce); return SUCCESS; @@ -79338,18 +79870,23 @@ PHP_METHOD(Phalcon_Mvc_Router, getDI){ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ - zval *_GET, *url = NULL, *_SERVER, *question_mark, *url_parts; - zval *real_uri; + zval *uri_source, *_GET, *url = NULL, *_SERVER, *question_mark; + zval *url_parts, *real_uri; PHALCON_MM_GROW(); - phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); - if (phalcon_array_isset_string(_GET, SS("_url"))) { + PHALCON_OBS_VAR(uri_source); + phalcon_read_property(&uri_source, this_ptr, SL("_uriSource"), PH_NOISY_CC); - PHALCON_OBS_VAR(url); - phalcon_array_fetch_string(&url, _GET, SL("_url"), PH_NOISY_CC); - if (PHALCON_IS_NOT_EMPTY(url)) { - RETURN_CCTOR(url); + if (!zend_is_true(uri_source)) { + phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); + if (phalcon_array_isset_string(_GET, SS("_url"))) { + + PHALCON_OBS_VAR(url); + phalcon_array_fetch_string(&url, _GET, SL("_url"), PH_NOISY_CC); + if (PHALCON_IS_NOT_EMPTY(url)) { + RETURN_CCTOR(url); + } } } else { phalcon_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); @@ -79371,10 +79908,23 @@ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ } } } + PHALCON_MM_RESTORE(); RETURN_STRING("/", 1); } +PHP_METHOD(Phalcon_Mvc_Router, setUriSource){ + + zval *uri_source; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &uri_source) == FAILURE) { + RETURN_NULL(); + } + + phalcon_update_property_zval(this_ptr, SL("_uriSource"), uri_source TSRMLS_CC); + +} + PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes){ zval *remove; @@ -83088,25 +83638,25 @@ PHALCON_INIT_CLASS(Phalcon_EscaperInterface){ -zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_tag_ce; zend_class_entry *phalcon_di_ce; +zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_db_ce; zend_class_entry *phalcon_text_ce; -zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_exception_ce; +zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_multiple_ce; +zend_class_entry *phalcon_cache_frontend_none_ce; +zend_class_entry *phalcon_cache_frontend_data_ce; zend_class_entry *phalcon_cache_backend_mongo_ce; +zend_class_entry *phalcon_cache_backend_apc_ce; zend_class_entry *phalcon_cache_backend_memory_ce; zend_class_entry *phalcon_cache_backend_file_ce; -zend_class_entry *phalcon_cache_backend_apc_ce; -zend_class_entry *phalcon_cache_frontend_data_ce; -zend_class_entry *phalcon_cache_frontend_none_ce; zend_class_entry *phalcon_cache_frontendinterface_ce; -zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_cache_frontend_base64_ce; zend_class_entry *phalcon_cache_backendinterface_ce; zend_class_entry *phalcon_cache_backend_memcache_ce; +zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_tag_select_ce; zend_class_entry *phalcon_tag_exception_ce; zend_class_entry *phalcon_paginator_exception_ce; @@ -83114,33 +83664,35 @@ zend_class_entry *phalcon_paginator_adapter_model_ce; zend_class_entry *phalcon_paginator_adapterinterface_ce; zend_class_entry *phalcon_paginator_adapter_nativearray_ce; zend_class_entry *phalcon_validation_ce; -zend_class_entry *phalcon_validation_validator_ce; -zend_class_entry *phalcon_validation_message_ce; zend_class_entry *phalcon_validation_exception_ce; +zend_class_entry *phalcon_validation_message_ce; +zend_class_entry *phalcon_validation_validator_ce; zend_class_entry *phalcon_validation_message_group_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_regex_ce; -zend_class_entry *phalcon_validation_validator_inclusionin_ce; -zend_class_entry *phalcon_validation_validator_identical_ce; -zend_class_entry *phalcon_validation_validator_presenceof_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; +zend_class_entry *phalcon_validation_validator_presenceof_ce; +zend_class_entry *phalcon_validation_validatorinterface_ce; +zend_class_entry *phalcon_validation_validator_identical_ce; +zend_class_entry *phalcon_validation_validator_inclusionin_ce; +zend_class_entry *phalcon_validation_validator_stringlength_ce; zend_class_entry *phalcon_db_index_ce; -zend_class_entry *phalcon_db_reference_ce; -zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_adapter_ce; +zend_class_entry *phalcon_db_rawvalue_ce; +zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_exception_ce; zend_class_entry *phalcon_db_dialect_ce; -zend_class_entry *phalcon_db_rawvalue_ce; zend_class_entry *phalcon_db_profiler_ce; +zend_class_entry *phalcon_db_reference_ce; zend_class_entry *phalcon_db_adapter_pdo_ce; -zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; +zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; zend_class_entry *phalcon_db_columninterface_ce; zend_class_entry *phalcon_db_dialect_mysql_ce; -zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialectinterface_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialect_postgresql_ce; zend_class_entry *phalcon_db_indexinterface_ce; zend_class_entry *phalcon_db_profiler_item_ce; @@ -83157,18 +83709,18 @@ zend_class_entry *phalcon_acl_roleinterface_ce; zend_class_entry *phalcon_acl_resourceinterface_ce; zend_class_entry *phalcon_version_ce; zend_class_entry *phalcon_security_ce; -zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_session_ce; +zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_security_exception_ce; zend_class_entry *phalcon_session_bag_ce; zend_class_entry *phalcon_session_adapter_ce; -zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_exception_ce; +zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_adapterinterface_ce; zend_class_entry *phalcon_session_adapter_files_ce; zend_class_entry *phalcon_filter_ce; -zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_service_ce; +zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_factorydefault_ce; zend_class_entry *phalcon_di_factorydefault_cli_ce; zend_class_entry *phalcon_di_injectable_ce; @@ -83176,16 +83728,16 @@ zend_class_entry *phalcon_di_injectionawareinterface_ce; zend_class_entry *phalcon_di_serviceinterface_ce; zend_class_entry *phalcon_di_service_builder_ce; zend_class_entry *phalcon_diinterface_ce; -zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_filter_exception_ce; +zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_dispatcher_ce; zend_class_entry *phalcon_dispatcherinterface_ce; zend_class_entry *phalcon_flash_ce; zend_class_entry *phalcon_cli_task_ce; zend_class_entry *phalcon_flash_direct_ce; +zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_flashinterface_ce; zend_class_entry *phalcon_flash_exception_ce; -zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_cli_console_ce; zend_class_entry *phalcon_cli_router_ce; zend_class_entry *phalcon_cli_dispatcher_ce; @@ -83194,31 +83746,31 @@ zend_class_entry *phalcon_cli_dispatcher_exception_ce; zend_class_entry *phalcon_cli_router_exception_ce; zend_class_entry *phalcon_annotations_reader_ce; zend_class_entry *phalcon_annotations_adapter_ce; -zend_class_entry *phalcon_annotations_adapter_apc_ce; -zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_reflection_ce; zend_class_entry *phalcon_annotations_annotation_ce; +zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_adapter_apc_ce; zend_class_entry *phalcon_annotations_exception_ce; -zend_class_entry *phalcon_annotations_reflection_ce; -zend_class_entry *phalcon_annotations_adapter_memory_ce; -zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_adapterinterface_ce; +zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_readerinterface_ce; +zend_class_entry *phalcon_annotations_adapter_memory_ce; zend_class_entry *phalcon_config_ce; -zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_logger_ce; +zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_loader_exception_ce; zend_class_entry *phalcon_logger_item_ce; -zend_class_entry *phalcon_logger_adapter_ce; -zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_formatter_ce; zend_class_entry *phalcon_logger_multiple_ce; +zend_class_entry *phalcon_logger_adapter_ce; +zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_adapter_file_ce; zend_class_entry *phalcon_logger_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_syslog_ce; zend_class_entry *phalcon_logger_formatter_json_ce; -zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatter_line_ce; zend_class_entry *phalcon_logger_adapter_stream_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatterinterface_ce; zend_class_entry *phalcon_config_exception_ce; zend_class_entry *phalcon_config_adapter_ini_ce; @@ -83227,6 +83779,7 @@ zend_class_entry *phalcon_forms_element_ce; zend_class_entry *phalcon_forms_exception_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_forms_element_text_ce; +zend_class_entry *phalcon_forms_element_password_ce; zend_class_entry *phalcon_translate_ce; zend_class_entry *phalcon_translate_adapter_ce; zend_class_entry *phalcon_translate_exception_ce; @@ -83240,12 +83793,12 @@ zend_class_entry *phalcon_http_cookie_ce; zend_class_entry *phalcon_http_response_ce; zend_class_entry *phalcon_http_request_file_ce; zend_class_entry *phalcon_http_cookie_exception_ce; +zend_class_entry *phalcon_http_requestinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_http_response_exception_ce; -zend_class_entry *phalcon_http_requestinterface_ce; +zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_exception_ce; zend_class_entry *phalcon_http_response_cookies_ce; -zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_fileinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_queue_beanstalk_ce; @@ -83255,75 +83808,75 @@ zend_class_entry *phalcon_mvc_url_ce; zend_class_entry *phalcon_mvc_router_ce; zend_class_entry *phalcon_mvc_model_ce; zend_class_entry *phalcon_mvc_micro_ce; -zend_class_entry *phalcon_mvc_router_group_ce; zend_class_entry *phalcon_mvc_controller_ce; -zend_class_entry *phalcon_mvc_router_route_ce; -zend_class_entry *phalcon_mvc_urlinterface_ce; +zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_view_engine_ce; +zend_class_entry *phalcon_mvc_dispatcher_ce; +zend_class_entry *phalcon_mvc_urlinterface_ce; zend_class_entry *phalcon_mvc_user_module_ce; zend_class_entry *phalcon_mvc_user_plugin_ce; -zend_class_entry *phalcon_mvc_dispatcher_ce; -zend_class_entry *phalcon_mvc_model_row_ce; +zend_class_entry *phalcon_mvc_router_group_ce; +zend_class_entry *phalcon_mvc_router_route_ce; zend_class_entry *phalcon_mvc_model_query_ce; -zend_class_entry *phalcon_mvc_application_ce; -zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_model_row_ce; zend_class_entry *phalcon_mvc_application_exception_ce; +zend_class_entry *phalcon_mvc_collection_exception_ce; +zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_collection_manager_ce; -zend_class_entry *phalcon_mvc_controllerinterface_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; zend_class_entry *phalcon_mvc_collection_managerinterface_ce; -zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; -zend_class_entry *phalcon_mvc_model_query_lang_ce; -zend_class_entry *phalcon_mvc_model_validator_ce; -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_model_exception_ce; -zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_model_metadata_ce; +zend_class_entry *phalcon_mvc_model_manager_ce; zend_class_entry *phalcon_mvc_micro_exception_ce; zend_class_entry *phalcon_mvc_micro_collection_ce; -zend_class_entry *phalcon_mvc_model_manager_ce; -zend_class_entry *phalcon_mvc_model_message_ce; +zend_class_entry *phalcon_mvc_model_criteria_ce; zend_class_entry *phalcon_mvc_model_relation_ce; +zend_class_entry *phalcon_mvc_model_query_lang_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; -zend_class_entry *phalcon_mvc_model_criteria_ce; +zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_ce; +zend_class_entry *phalcon_mvc_model_message_ce; zend_class_entry *phalcon_mvc_model_queryinterface_ce; zend_class_entry *phalcon_mvc_model_transaction_ce; -zend_class_entry *phalcon_mvc_model_query_status_ce; -zend_class_entry *phalcon_mvc_model_validator_url_ce; -zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_metadata_files_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_query_status_ce; zend_class_entry *phalcon_mvc_model_metadata_apc_ce; -zend_class_entry *phalcon_mvc_model_metadata_session_ce; -zend_class_entry *phalcon_mvc_model_managerinterface_ce; -zend_class_entry *phalcon_mvc_model_metadata_memory_ce; -zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_messageinterface_ce; -zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_metadatainterface_ce; +zend_class_entry *phalcon_mvc_model_relationinterface_ce; +zend_class_entry *phalcon_mvc_model_metadata_memory_ce; zend_class_entry *phalcon_mvc_model_resultset_simple_ce; -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; zend_class_entry *phalcon_mvc_model_transaction_failed_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; -zend_class_entry *phalcon_mvc_model_metadatainterface_ce; -zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; +zend_class_entry *phalcon_mvc_model_managerinterface_ce; zend_class_entry *phalcon_mvc_model_validator_email_ce; -zend_class_entry *phalcon_mvc_model_relationinterface_ce; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; -zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behavior_timestampable_ce; +zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; zend_class_entry *phalcon_mvc_model_query_builderinterface_ce; +zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_exclusionin_ce; zend_class_entry *phalcon_mvc_model_transaction_exception_ce; -zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; -zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; -zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; zend_class_entry *phalcon_mvc_model_transactioninterface_ce; -zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; zend_class_entry *phalcon_mvc_model_behavior_softdelete_ce; +zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_annotations_ce; zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_introspection_ce; @@ -83334,10 +83887,10 @@ zend_class_entry *phalcon_mvc_router_annotations_ce; zend_class_entry *phalcon_mvc_router_routeinterface_ce; zend_class_entry *phalcon_mvc_user_component_ce; zend_class_entry *phalcon_mvc_url_exception_ce; -zend_class_entry *phalcon_mvc_view_exception_ce; -zend_class_entry *phalcon_mvc_view_engine_php_ce; -zend_class_entry *phalcon_mvc_view_engine_volt_ce; zend_class_entry *phalcon_mvc_viewinterface_ce; +zend_class_entry *phalcon_mvc_view_engine_volt_ce; +zend_class_entry *phalcon_mvc_view_engine_php_ce; +zend_class_entry *phalcon_mvc_view_exception_ce; zend_class_entry *phalcon_mvc_view_engineinterface_ce; zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; zend_class_entry *phalcon_events_event_ce; @@ -83378,6 +83931,7 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); + PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); @@ -83417,43 +83971,43 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); - PHALCON_INIT(Phalcon_Session_BagInterface); - PHALCON_INIT(Phalcon_FilterInterface); + PHALCON_INIT(Phalcon_Annotations_ReaderInterface); + PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); + PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); - PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); - PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_EscaperInterface); - PHALCON_INIT(Phalcon_Acl_RoleInterface); - PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); - PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Session_AdapterInterface); + PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); + PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); - PHALCON_INIT(Phalcon_Db_Dialect); - PHALCON_INIT(Phalcon_Logger_Formatter); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo); - PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Annotations_Adapter); + PHALCON_INIT(Phalcon_Logger_Adapter); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo); + PHALCON_INIT(Phalcon_Logger_Formatter); + PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Dispatcher); - PHALCON_INIT(Phalcon_Mvc_Model_Resultset); - PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_View_Engine); + PHALCON_INIT(Phalcon_Forms_Element); + PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); + PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_DI_FactoryDefault); - PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Model_Exception); + PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); - PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); @@ -83464,10 +84018,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); + PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Output); - PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); @@ -83477,25 +84031,26 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Validation_Message_Group); - PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); + PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); + PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); - PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); + PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); - PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_RawValue); + PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_Acl_Role); @@ -83518,8 +84073,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Flash_Direct); - PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_Flash_Exception); + PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); @@ -83530,29 +84085,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); - PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Annotation); + PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); - PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); + PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Exception); - PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Json); - PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); + PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); + PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); - PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Exception); + PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Element_Text); + PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); @@ -83569,10 +84125,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); - PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Url); + PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection); @@ -83593,30 +84149,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); + PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); - PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); - PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); + PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Route); @@ -83627,8 +84183,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Exception); - PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); + PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); diff --git a/build/safe/phalcon.h b/build/safe/phalcon.h index 684c45a0237..e75456d879f 100644 --- a/build/safe/phalcon.h +++ b/build/safe/phalcon.h @@ -67,6 +67,32 @@ PHALCON_INIT_FUNCS(phalcon_events_eventsawareinterface_method_entry){ +zend_class_entry *phalcon_validation_validatorinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_getoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validatorinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, isSetOption, arginfo_phalcon_validation_validatorinterface_issetoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, getOption, arginfo_phalcon_validation_validatorinterface_getoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, validate, arginfo_phalcon_validation_validatorinterface_validate) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_backendinterface_ce; PHALCON_INIT_CLASS(Phalcon_Cache_BackendInterface); @@ -2398,69 +2424,42 @@ PHALCON_INIT_FUNCS(phalcon_acl_resourceinterface_method_entry){ -zend_class_entry *phalcon_session_baginterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, property) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_annotations_readerinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) + ZEND_ARG_INFO(0, docBlock) + ZEND_ARG_INFO(0, file) + ZEND_ARG_INFO(0, line) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) +PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) + ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_filterinterface_ce; +zend_class_entry *phalcon_acl_roleinterface_ce; -PHALCON_INIT_CLASS(Phalcon_FilterInterface); +PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, handler) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) - ZEND_ARG_INFO(0, value) - ZEND_ARG_INFO(0, filters) + ZEND_ARG_INFO(0, description) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) +PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) PHP_FE_END }; @@ -2548,6 +2547,51 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapterinterface_method_entry){ +zend_class_entry *phalcon_session_baginterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, defaultValue) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_messageinterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MessageInterface); @@ -2589,53 +2633,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_messageinterface_method_entry){ -zend_class_entry *phalcon_session_adapterinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) - PHP_FE_END -}; - - - zend_class_entry *phalcon_di_serviceinterface_ce; PHALCON_INIT_CLASS(Phalcon_DI_ServiceInterface); @@ -2677,28 +2674,6 @@ PHALCON_INIT_FUNCS(phalcon_di_serviceinterface_method_entry){ -zend_class_entry *phalcon_annotations_readerinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) - ZEND_ARG_INFO(0, className) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) - ZEND_ARG_INFO(0, docBlock) - ZEND_ARG_INFO(0, file) - ZEND_ARG_INFO(0, line) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) - ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_events_managerinterface_ce; PHALCON_INIT_CLASS(Phalcon_Events_ManagerInterface); @@ -2778,95 +2753,110 @@ PHALCON_INIT_FUNCS(phalcon_escaperinterface_method_entry){ -zend_class_entry *phalcon_acl_roleinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, description) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) - ZEND_ARG_INFO(0, modelName) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_session_adapterinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) - ZEND_ARG_INFO(0, bindParams) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) - ZEND_ARG_INFO(0, orderColumns) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, defaultValue) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) - ZEND_ARG_INFO(0, limit) - ZEND_ARG_INFO(0, offset) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) - ZEND_ARG_INFO(0, forUpdate) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) - ZEND_ARG_INFO(0, sharedLock) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_filterinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_FilterInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) + ZEND_ARG_INFO(0, name) + ZEND_ARG_INFO(0, handler) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) + ZEND_ARG_INFO(0, value) + ZEND_ARG_INFO(0, filters) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) +PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) ZEND_ARG_INFO(0, dependencyInjector) - ZEND_ARG_INFO(0, modelName) - ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) - ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) + ZEND_ARG_INFO(0, autoBegin) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) + ZEND_ARG_INFO(0, collect) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) PHP_FE_END }; @@ -2904,40 +2894,76 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapterinterface_method_entry){ -zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) + ZEND_ARG_INFO(0, modelName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) - ZEND_ARG_INFO(0, autoBegin) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) + ZEND_ARG_INFO(0, bindParams) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) - ZEND_ARG_INFO(0, collect) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) + ZEND_ARG_INFO(0, orderColumns) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) + ZEND_ARG_INFO(0, limit) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) + ZEND_ARG_INFO(0, forUpdate) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) + ZEND_ARG_INFO(0, sharedLock) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) + ZEND_ARG_INFO(0, dependencyInjector) + ZEND_ARG_INFO(0, modelName) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) + ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) PHP_FE_END }; @@ -3325,18 +3351,24 @@ zend_class_entry *phalcon_validation_validator_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator); PHP_METHOD(Phalcon_Validation_Validator, __construct); +PHP_METHOD(Phalcon_Validation_Validator, isSetOption); PHP_METHOD(Phalcon_Validation_Validator, getOption); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_getoption, 0, 0, 1) ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_validation_validator_method_entry){ PHP_ME(Phalcon_Validation_Validator, __construct, arginfo_phalcon_validation_validator___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Validation_Validator, isSetOption, arginfo_phalcon_validation_validator_issetoption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator, getOption, arginfo_phalcon_validation_validator_getoption, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3550,75 +3582,133 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_method_entry){ -zend_class_entry *phalcon_db_dialect_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Dialect); +zend_class_entry *phalcon_annotations_adapter_ce; -PHP_METHOD(Phalcon_Db_Dialect, limit); -PHP_METHOD(Phalcon_Db_Dialect, forUpdate); -PHP_METHOD(Phalcon_Db_Dialect, sharedLock); -PHP_METHOD(Phalcon_Db_Dialect, getColumnList); -PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); -PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); -PHP_METHOD(Phalcon_Db_Dialect, select); +PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) - ZEND_ARG_INFO(0, sqlQuery) - ZEND_ARG_INFO(0, number) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Annotations_Adapter, setReader); +PHP_METHOD(Phalcon_Annotations_Adapter, getReader); +PHP_METHOD(Phalcon_Annotations_Adapter, get); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) + ZEND_ARG_INFO(0, reader) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) - ZEND_ARG_INFO(0, columnList) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) - ZEND_ARG_INFO(0, expression) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, methodName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) - ZEND_ARG_INFO(0, definition) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, propertyName) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ - PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ + PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_formatter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); - -PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); +zend_class_entry *phalcon_logger_adapter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) - ZEND_ARG_INFO(0, type) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); -PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ - PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) - PHP_FE_END +PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); +PHP_METHOD(Phalcon_Logger_Adapter, begin); +PHP_METHOD(Phalcon_Logger_Adapter, commit); +PHP_METHOD(Phalcon_Logger_Adapter, rollback); +PHP_METHOD(Phalcon_Logger_Adapter, emergence); +PHP_METHOD(Phalcon_Logger_Adapter, debug); +PHP_METHOD(Phalcon_Logger_Adapter, error); +PHP_METHOD(Phalcon_Logger_Adapter, info); +PHP_METHOD(Phalcon_Logger_Adapter, notice); +PHP_METHOD(Phalcon_Logger_Adapter, warning); +PHP_METHOD(Phalcon_Logger_Adapter, alert); +PHP_METHOD(Phalcon_Logger_Adapter, log); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) + ZEND_ARG_INFO(0, formatter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ + PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) + PHP_FE_END }; @@ -3629,6 +3719,7 @@ PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo); PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct); PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect); +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare); PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared); PHP_METHOD(Phalcon_Db_Adapter_Pdo, query); PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute); @@ -3658,6 +3749,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_connect, 0, 0, 0) ZEND_ARG_INFO(0, descriptor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_prepare, 0, 0, 1) + ZEND_ARG_INFO(0, sqlStatement) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_executeprepared, 0, 0, 3) ZEND_ARG_INFO(0, statement) ZEND_ARG_INFO(0, placeholders) @@ -3716,6 +3811,7 @@ ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ PHP_ME(Phalcon_Db_Adapter_Pdo, __construct, arginfo_phalcon_db_adapter_pdo___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Db_Adapter_Pdo, connect, arginfo_phalcon_db_adapter_pdo_connect, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo, prepare, arginfo_phalcon_db_adapter_pdo_prepare, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, executePrepared, arginfo_phalcon_db_adapter_pdo_executeprepared, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, query, arginfo_phalcon_db_adapter_pdo_query, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, execute, arginfo_phalcon_db_adapter_pdo_execute, ZEND_ACC_PUBLIC) @@ -3741,132 +3837,74 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ -zend_class_entry *phalcon_logger_adapter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); - -PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); -PHP_METHOD(Phalcon_Logger_Adapter, begin); -PHP_METHOD(Phalcon_Logger_Adapter, commit); -PHP_METHOD(Phalcon_Logger_Adapter, rollback); -PHP_METHOD(Phalcon_Logger_Adapter, emergence); -PHP_METHOD(Phalcon_Logger_Adapter, debug); -PHP_METHOD(Phalcon_Logger_Adapter, error); -PHP_METHOD(Phalcon_Logger_Adapter, info); -PHP_METHOD(Phalcon_Logger_Adapter, notice); -PHP_METHOD(Phalcon_Logger_Adapter, warning); -PHP_METHOD(Phalcon_Logger_Adapter, alert); -PHP_METHOD(Phalcon_Logger_Adapter, log); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) - ZEND_ARG_INFO(0, formatter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_logger_formatter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ - PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ + PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_annotations_adapter_ce; +zend_class_entry *phalcon_db_dialect_ce; -PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect); -PHP_METHOD(Phalcon_Annotations_Adapter, setReader); -PHP_METHOD(Phalcon_Annotations_Adapter, getReader); -PHP_METHOD(Phalcon_Annotations_Adapter, get); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); +PHP_METHOD(Phalcon_Db_Dialect, limit); +PHP_METHOD(Phalcon_Db_Dialect, forUpdate); +PHP_METHOD(Phalcon_Db_Dialect, sharedLock); +PHP_METHOD(Phalcon_Db_Dialect, getColumnList); +PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); +PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); +PHP_METHOD(Phalcon_Db_Dialect, select); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) - ZEND_ARG_INFO(0, reader) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) + ZEND_ARG_INFO(0, sqlQuery) + ZEND_ARG_INFO(0, number) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, methodName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) + ZEND_ARG_INFO(0, columnList) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) + ZEND_ARG_INFO(0, expression) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, propertyName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ - PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) + ZEND_ARG_INFO(0, definition) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ + PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3980,85 +4018,70 @@ PHALCON_INIT_FUNCS(phalcon_dispatcher_method_entry){ -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_view_engine_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); +PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); +PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); +PHP_METHOD(Phalcon_Mvc_View_Engine, partial); +PHP_METHOD(Phalcon_Mvc_View_Engine, getView); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) - ZEND_ARG_INFO(0, position) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) + ZEND_ARG_INFO(0, view) + ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) - ZEND_ARG_INFO(0, index) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, offset) + +zend_class_entry *phalcon_forms_element_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element); + +PHP_METHOD(Phalcon_Forms_Element, __construct); +PHP_METHOD(Phalcon_Forms_Element, setName); +PHP_METHOD(Phalcon_Forms_Element, getName); +PHP_METHOD(Phalcon_Forms_Element, addValidators); +PHP_METHOD(Phalcon_Forms_Element, addValidator); +PHP_METHOD(Phalcon_Forms_Element, getValidators); +PHP_METHOD(Phalcon_Forms_Element, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) - ZEND_ARG_INFO(0, isFresh) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) - ZEND_ARG_INFO(0, hydrateMode) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) + ZEND_ARG_INFO(0, validators) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) - ZEND_ARG_INFO(0, conditionCallback) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) + ZEND_ARG_INFO(0, validator) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ + PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, __toString, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4111,48 +4134,20 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_warning, 0, 0, 1) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_outputmessage, 0, 0, 2) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ - PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_engine_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); - -PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); -PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); -PHP_METHOD(Phalcon_Mvc_View_Engine, partial); -PHP_METHOD(Phalcon_Mvc_View_Engine, getView); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) - ZEND_ARG_INFO(0, view) - ZEND_ARG_INFO(0, dependencyInjector) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ + PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4194,6 +4189,90 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_behavior_method_entry){ +zend_class_entry *phalcon_mvc_model_resultset_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); + +PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) + ZEND_ARG_INFO(0, position) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) + ZEND_ARG_INFO(0, isFresh) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) + ZEND_ARG_INFO(0, hydrateMode) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) + ZEND_ARG_INFO(0, conditionCallback) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_adapter_ce; PHALCON_INIT_CLASS(Phalcon_Translate_Adapter); @@ -4309,6 +4388,11 @@ PHALCON_INIT_FUNCS(phalcon_di_factorydefault_method_entry){ +zend_class_entry *phalcon_mvc_model_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); + + zend_class_entry *phalcon_config_ce; PHALCON_INIT_CLASS(Phalcon_Config); @@ -4372,11 +4456,6 @@ PHALCON_INIT_FUNCS(phalcon_config_method_entry){ -zend_class_entry *phalcon_mvc_model_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); - - zend_class_entry *phalcon_mvc_router_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Router); @@ -4385,6 +4464,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct); PHP_METHOD(Phalcon_Mvc_Router, setDI); PHP_METHOD(Phalcon_Mvc_Router, getDI); PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri); +PHP_METHOD(Phalcon_Mvc_Router, setUriSource); PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes); PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace); PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule); @@ -4423,6 +4503,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seturisource, 0, 0, 1) + ZEND_ARG_INFO(0, uriSource) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_removeextraslashes, 0, 0, 1) ZEND_ARG_INFO(0, remove) ZEND_END_ARG_INFO() @@ -4513,6 +4597,7 @@ PHALCON_INIT_FUNCS(phalcon_mvc_router_method_entry){ PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDI, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, _getRewriteUri, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Router, setUriSource, arginfo_phalcon_mvc_router_seturisource, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, removeExtraSlashes, arginfo_phalcon_mvc_router_removeextraslashes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultModule, arginfo_phalcon_mvc_router_setdefaultmodule, ZEND_ACC_PUBLIC) @@ -4580,45 +4665,6 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapter_method_entry){ -zend_class_entry *phalcon_forms_element_ce; - -PHALCON_INIT_CLASS(Phalcon_Forms_Element); - -PHP_METHOD(Phalcon_Forms_Element, __construct); -PHP_METHOD(Phalcon_Forms_Element, setName); -PHP_METHOD(Phalcon_Forms_Element, getName); -PHP_METHOD(Phalcon_Forms_Element, addValidators); -PHP_METHOD(Phalcon_Forms_Element, addValidator); -PHP_METHOD(Phalcon_Forms_Element, getValidators); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) - ZEND_ARG_INFO(0, validators) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) - ZEND_ARG_INFO(0, validator) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ - PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_ce; PHALCON_INIT_CLASS(Phalcon_Db); @@ -5165,6 +5211,45 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_memcache_method_entry){ +zend_class_entry *phalcon_cache_frontend_data_ce; + +PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); + +PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); +PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); +PHP_METHOD(Phalcon_Cache_Frontend_Data, start); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); +PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); +PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); +PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) + ZEND_ARG_INFO(0, frontendOptions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ + PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_frontend_base64_ce; PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64); @@ -5282,45 +5367,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){ -zend_class_entry *phalcon_cache_frontend_data_ce; - -PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); - -PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); -PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); -PHP_METHOD(Phalcon_Cache_Frontend_Data, start); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); -PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); -PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); -PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) - ZEND_ARG_INFO(0, frontendOptions) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ - PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_tag_select_ce; PHALCON_INIT_CLASS(Phalcon_Tag_Select); @@ -5519,6 +5565,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet); PHP_METHOD(Phalcon_Validation_Message_Group, offsetExists); PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset); PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage); +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages); PHP_METHOD(Phalcon_Validation_Message_Group, count); PHP_METHOD(Phalcon_Validation_Message_Group, rewind); PHP_METHOD(Phalcon_Validation_Message_Group, current); @@ -5552,6 +5599,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessage, 0 ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessages, 0, 0, 1) + ZEND_ARG_INFO(0, messages) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group___set_state, 0, 0, 1) ZEND_ARG_INFO(0, group) ZEND_END_ARG_INFO() @@ -5563,6 +5614,7 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ PHP_ME(Phalcon_Validation_Message_Group, offsetExists, arginfo_phalcon_validation_message_group_offsetexists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, offsetUnset, arginfo_phalcon_validation_message_group_offsetunset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, appendMessage, arginfo_phalcon_validation_message_group_appendmessage, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message_Group, appendMessages, arginfo_phalcon_validation_message_group_appendmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, count, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, rewind, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, current, NULL, ZEND_ACC_PUBLIC) @@ -5575,37 +5627,37 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ -zend_class_entry *phalcon_validation_validator_regex_ce; +zend_class_entry *phalcon_validation_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); -PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); +PHP_METHOD(Phalcon_Validation_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_validation_validator_email_ce; +zend_class_entry *phalcon_validation_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); -PHP_METHOD(Phalcon_Validation_Validator_Email, validate); +PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -5647,6 +5699,24 @@ PHALCON_INIT_FUNCS(phalcon_validation_validator_inclusionin_method_entry){ +zend_class_entry *phalcon_validation_validator_stringlength_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength); + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_stringlength_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validator_stringlength_method_entry){ + PHP_ME(Phalcon_Validation_Validator_StringLength, validate, arginfo_phalcon_validation_validator_stringlength_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_validation_validator_exclusionin_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn); @@ -5761,30 +5831,6 @@ PHALCON_INIT_FUNCS(phalcon_db_column_method_entry){ -zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); - -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) - ZEND_ARG_INFO(0, identifier) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, schema) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Sqlite); @@ -5823,6 +5869,30 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_sqlite_method_entry){ +zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); + +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) + ZEND_ARG_INFO(0, identifier) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, schema) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Postgresql); @@ -5851,301 +5921,301 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_postgresql_method_entry){ -zend_class_entry *phalcon_db_dialect_mysql_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) + ZEND_ARG_INFO(0, indexName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_db_dialect_sqlite_ce; +zend_class_entry *phalcon_db_dialect_mysql_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) - ZEND_ARG_INFO(0, indexName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -6371,6 +6441,27 @@ PHALCON_INIT_FUNCS(phalcon_db_profiler_item_method_entry){ +zend_class_entry *phalcon_db_rawvalue_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_RawValue); + +PHP_METHOD(Phalcon_Db_RawValue, __construct); +PHP_METHOD(Phalcon_Db_RawValue, getValue); +PHP_METHOD(Phalcon_Db_RawValue, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ + PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_reference_ce; PHALCON_INIT_CLASS(Phalcon_Db_Reference); @@ -6407,27 +6498,6 @@ PHALCON_INIT_FUNCS(phalcon_db_reference_method_entry){ -zend_class_entry *phalcon_db_rawvalue_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_RawValue); - -PHP_METHOD(Phalcon_Db_RawValue, __construct); -PHP_METHOD(Phalcon_Db_RawValue, getValue); -PHP_METHOD(Phalcon_Db_RawValue, __toString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ - PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_result_pdo_ce; PHALCON_INIT_CLASS(Phalcon_Db_Result_Pdo); @@ -7094,6 +7164,11 @@ PHALCON_INIT_FUNCS(phalcon_flash_direct_method_entry){ +zend_class_entry *phalcon_flash_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Flash_Exception); + + zend_class_entry *phalcon_flash_session_ce; PHALCON_INIT_CLASS(Phalcon_Flash_Session); @@ -7137,11 +7212,6 @@ PHALCON_INIT_FUNCS(phalcon_flash_session_method_entry){ -zend_class_entry *phalcon_flash_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Flash_Exception); - - zend_class_entry *phalcon_cli_task_ce; PHALCON_INIT_CLASS(Phalcon_CLI_Task); @@ -7361,37 +7431,6 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_apc_method_entry){ -zend_class_entry *phalcon_annotations_reflection_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); - -PHP_METHOD(Phalcon_Annotations_Reflection, __construct); -PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); -PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) - ZEND_ARG_INFO(0, reflectionData) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ - PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_annotations_annotation_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Annotation); @@ -7447,6 +7486,37 @@ PHALCON_INIT_FUNCS(phalcon_annotations_annotation_method_entry){ +zend_class_entry *phalcon_annotations_reflection_ce; + +PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); + +PHP_METHOD(Phalcon_Annotations_Reflection, __construct); +PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); +PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) + ZEND_ARG_INFO(0, reflectionData) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ + PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_annotations_collection_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Collection); @@ -7544,6 +7614,11 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_memory_method_entry){ +zend_class_entry *phalcon_logger_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger); + + zend_class_entry *phalcon_loader_ce; PHALCON_INIT_CLASS(Phalcon_Loader); @@ -7623,11 +7698,6 @@ PHALCON_INIT_FUNCS(phalcon_loader_method_entry){ -zend_class_entry *phalcon_logger_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger); - - zend_class_entry *phalcon_loader_exception_ce; PHALCON_INIT_CLASS(Phalcon_Loader_Exception); @@ -7739,48 +7809,6 @@ zend_class_entry *phalcon_logger_exception_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Exception); -zend_class_entry *phalcon_logger_formatter_line_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); - -PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, format); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) - ZEND_ARG_INFO(0, format) - ZEND_ARG_INFO(0, dateFormat) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) - ZEND_ARG_INFO(0, format) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) - ZEND_ARG_INFO(0, date) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) - ZEND_ARG_INFO(0, message) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, timestamp) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ - PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_logger_formatter_json_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Json); @@ -7800,63 +7828,63 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_json_method_entry){ -zend_class_entry *phalcon_logger_adapter_file_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); -PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_File, close); -PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_adapter_syslog_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); +zend_class_entry *phalcon_logger_adapter_file_ce; -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) +PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_File, close); +PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -7892,6 +7920,48 @@ PHALCON_INIT_FUNCS(phalcon_logger_adapter_stream_method_entry){ +zend_class_entry *phalcon_logger_formatter_line_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); + +PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, format); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) + ZEND_ARG_INFO(0, format) + ZEND_ARG_INFO(0, dateFormat) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) + ZEND_ARG_INFO(0, format) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) + ZEND_ARG_INFO(0, date) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, timestamp) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ + PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_logger_formatter_syslog_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Syslog); @@ -7911,6 +7981,11 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_syslog_method_entry){ +zend_class_entry *phalcon_config_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Config_Exception); + + zend_class_entry *phalcon_config_adapter_ini_ce; PHALCON_INIT_CLASS(Phalcon_Config_Adapter_Ini); @@ -7928,24 +8003,35 @@ PHALCON_INIT_FUNCS(phalcon_config_adapter_ini_method_entry){ -zend_class_entry *phalcon_config_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Config_Exception); - - zend_class_entry *phalcon_forms_form_ce; PHALCON_INIT_CLASS(Phalcon_Forms_Form); PHP_METHOD(Phalcon_Forms_Form, __construct); PHP_METHOD(Phalcon_Forms_Form, isValid); +PHP_METHOD(Phalcon_Forms_Form, getMessages); +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor); PHP_METHOD(Phalcon_Forms_Form, add); PHP_METHOD(Phalcon_Forms_Form, render); +PHP_METHOD(Phalcon_Forms_Form, get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 0) + ZEND_ARG_INFO(0, entity) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_isvalid, 0, 0, 0) + ZEND_ARG_INFO(0, data) ZEND_ARG_INFO(0, entity) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessages, 0, 0, 0) + ZEND_ARG_INFO(0, byItemName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessagesfor, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_add, 0, 0, 1) ZEND_ARG_INFO(0, element) ZEND_END_ARG_INFO() @@ -7955,11 +8041,18 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_render, 0, 0, 1) ZEND_ARG_INFO(0, attributes) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_get, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + PHALCON_INIT_FUNCS(phalcon_forms_form_method_entry){ PHP_ME(Phalcon_Forms_Form, __construct, arginfo_phalcon_forms_form___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Form, isValid, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, isValid, arginfo_phalcon_forms_form_isvalid, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessages, arginfo_phalcon_forms_form_getmessages, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessagesFor, arginfo_phalcon_forms_form_getmessagesfor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, add, arginfo_phalcon_forms_form_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, render, arginfo_phalcon_forms_form_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, get, arginfo_phalcon_forms_form_get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8004,6 +8097,23 @@ PHALCON_INIT_FUNCS(phalcon_forms_element_text_method_entry){ +zend_class_entry *phalcon_forms_element_password_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password); + +PHP_METHOD(Phalcon_Forms_Element_Password, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_password_render, 0, 0, 0) + ZEND_ARG_INFO(0, attributes) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_forms_element_password_method_entry){ + PHP_ME(Phalcon_Forms_Element_Password, render, arginfo_phalcon_forms_element_password_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_ce; PHALCON_INIT_CLASS(Phalcon_Translate); @@ -8574,275 +8684,66 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady); PHP_METHOD(Phalcon_Queue_Beanstalk, readStatus); PHP_METHOD(Phalcon_Queue_Beanstalk, read); PHP_METHOD(Phalcon_Queue_Beanstalk, write); -PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) - ZEND_ARG_INFO(0, data) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) - ZEND_ARG_INFO(0, timeout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) - ZEND_ARG_INFO(0, length) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_queue_beanstalk_job_ce; - -PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); - -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, id) - ZEND_ARG_INFO(0, body) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View); - -PHP_METHOD(Phalcon_Mvc_View, __construct); -PHP_METHOD(Phalcon_Mvc_View, setViewsDir); -PHP_METHOD(Phalcon_Mvc_View, getViewsDir); -PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, setBasePath); -PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); -PHP_METHOD(Phalcon_Mvc_View, disableLevel); -PHP_METHOD(Phalcon_Mvc_View, setMainView); -PHP_METHOD(Phalcon_Mvc_View, getMainView); -PHP_METHOD(Phalcon_Mvc_View, setLayout); -PHP_METHOD(Phalcon_Mvc_View, getLayout); -PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, setParamToView); -PHP_METHOD(Phalcon_Mvc_View, setVars); -PHP_METHOD(Phalcon_Mvc_View, setVar); -PHP_METHOD(Phalcon_Mvc_View, getVar); -PHP_METHOD(Phalcon_Mvc_View, getParamsToView); -PHP_METHOD(Phalcon_Mvc_View, getControllerName); -PHP_METHOD(Phalcon_Mvc_View, getActionName); -PHP_METHOD(Phalcon_Mvc_View, getParams); -PHP_METHOD(Phalcon_Mvc_View, start); -PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); -PHP_METHOD(Phalcon_Mvc_View, _engineRender); -PHP_METHOD(Phalcon_Mvc_View, registerEngines); -PHP_METHOD(Phalcon_Mvc_View, render); -PHP_METHOD(Phalcon_Mvc_View, pick); -PHP_METHOD(Phalcon_Mvc_View, partial); -PHP_METHOD(Phalcon_Mvc_View, getRender); -PHP_METHOD(Phalcon_Mvc_View, finish); -PHP_METHOD(Phalcon_Mvc_View, _createCache); -PHP_METHOD(Phalcon_Mvc_View, isCaching); -PHP_METHOD(Phalcon_Mvc_View, getCache); -PHP_METHOD(Phalcon_Mvc_View, cache); -PHP_METHOD(Phalcon_Mvc_View, setContent); -PHP_METHOD(Phalcon_Mvc_View, getContent); -PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); -PHP_METHOD(Phalcon_Mvc_View, disable); -PHP_METHOD(Phalcon_Mvc_View, enable); -PHP_METHOD(Phalcon_Mvc_View, reset); -PHP_METHOD(Phalcon_Mvc_View, __set); -PHP_METHOD(Phalcon_Mvc_View, __get); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) - ZEND_ARG_INFO(0, viewsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) - ZEND_ARG_INFO(0, layoutsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) - ZEND_ARG_INFO(0, partialsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) - ZEND_ARG_INFO(0, viewPath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) - ZEND_ARG_INFO(0, layout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) - ZEND_ARG_INFO(0, templateBefore) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) - ZEND_ARG_INFO(0, templateAfter) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, merge) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) + ZEND_ARG_INFO(0, timeout) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) - ZEND_ARG_INFO(0, engines) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) + ZEND_ARG_INFO(0, length) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) - ZEND_ARG_INFO(0, renderView) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_queue_beanstalk_job_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) - ZEND_ARG_INFO(0, content) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) + ZEND_ARG_INFO(0, queue) + ZEND_ARG_INFO(0, id) + ZEND_ARG_INFO(0, body) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ - PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9205,14 +9106,17 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_save, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_create, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_update, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_skipoperation, 0, 0, 1) @@ -9365,48 +9269,257 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_method_entry){ -zend_class_entry *phalcon_mvc_url_ce; +zend_class_entry *phalcon_mvc_url_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Url); + +PHP_METHOD(Phalcon_Mvc_Url, setDI); +PHP_METHOD(Phalcon_Mvc_Url, getDI); +PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, setBasePath); +PHP_METHOD(Phalcon_Mvc_Url, getBasePath); +PHP_METHOD(Phalcon_Mvc_Url, get); +PHP_METHOD(Phalcon_Mvc_Url, path); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) + ZEND_ARG_INFO(0, dependencyInjector) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) + ZEND_ARG_INFO(0, baseUri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) + ZEND_ARG_INFO(0, uri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ + PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_view_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View); + +PHP_METHOD(Phalcon_Mvc_View, __construct); +PHP_METHOD(Phalcon_Mvc_View, setViewsDir); +PHP_METHOD(Phalcon_Mvc_View, getViewsDir); +PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, setBasePath); +PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); +PHP_METHOD(Phalcon_Mvc_View, disableLevel); +PHP_METHOD(Phalcon_Mvc_View, setMainView); +PHP_METHOD(Phalcon_Mvc_View, getMainView); +PHP_METHOD(Phalcon_Mvc_View, setLayout); +PHP_METHOD(Phalcon_Mvc_View, getLayout); +PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, setParamToView); +PHP_METHOD(Phalcon_Mvc_View, setVars); +PHP_METHOD(Phalcon_Mvc_View, setVar); +PHP_METHOD(Phalcon_Mvc_View, getVar); +PHP_METHOD(Phalcon_Mvc_View, getParamsToView); +PHP_METHOD(Phalcon_Mvc_View, getControllerName); +PHP_METHOD(Phalcon_Mvc_View, getActionName); +PHP_METHOD(Phalcon_Mvc_View, getParams); +PHP_METHOD(Phalcon_Mvc_View, start); +PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); +PHP_METHOD(Phalcon_Mvc_View, _engineRender); +PHP_METHOD(Phalcon_Mvc_View, registerEngines); +PHP_METHOD(Phalcon_Mvc_View, render); +PHP_METHOD(Phalcon_Mvc_View, pick); +PHP_METHOD(Phalcon_Mvc_View, partial); +PHP_METHOD(Phalcon_Mvc_View, getRender); +PHP_METHOD(Phalcon_Mvc_View, finish); +PHP_METHOD(Phalcon_Mvc_View, _createCache); +PHP_METHOD(Phalcon_Mvc_View, isCaching); +PHP_METHOD(Phalcon_Mvc_View, getCache); +PHP_METHOD(Phalcon_Mvc_View, cache); +PHP_METHOD(Phalcon_Mvc_View, setContent); +PHP_METHOD(Phalcon_Mvc_View, getContent); +PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); +PHP_METHOD(Phalcon_Mvc_View, disable); +PHP_METHOD(Phalcon_Mvc_View, enable); +PHP_METHOD(Phalcon_Mvc_View, reset); +PHP_METHOD(Phalcon_Mvc_View, __set); +PHP_METHOD(Phalcon_Mvc_View, __get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) + ZEND_ARG_INFO(0, viewsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) + ZEND_ARG_INFO(0, layoutsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) + ZEND_ARG_INFO(0, partialsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) + ZEND_ARG_INFO(0, viewPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) + ZEND_ARG_INFO(0, layout) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) + ZEND_ARG_INFO(0, templateBefore) +ZEND_END_ARG_INFO() -PHALCON_INIT_CLASS(Phalcon_Mvc_Url); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) + ZEND_ARG_INFO(0, templateAfter) +ZEND_END_ARG_INFO() -PHP_METHOD(Phalcon_Mvc_Url, setDI); -PHP_METHOD(Phalcon_Mvc_Url, getDI); -PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, setBasePath); -PHP_METHOD(Phalcon_Mvc_Url, getBasePath); -PHP_METHOD(Phalcon_Mvc_Url, get); -PHP_METHOD(Phalcon_Mvc_Url, path); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, merge) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) - ZEND_ARG_INFO(0, baseUri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) + ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) - ZEND_ARG_INFO(0, uri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) + ZEND_ARG_INFO(0, engines) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) - ZEND_ARG_INFO(0, path) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ - PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) + ZEND_ARG_INFO(0, renderView) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ + PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10687,90 +10800,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_apc_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_query_status_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); - -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) - ZEND_ARG_INFO(0, success) - ZEND_ARG_INFO(0, model) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_metadata_files_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_query_builder_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Builder); @@ -10892,35 +10921,102 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_query_builder_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_metadata_files_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_metadata_apc_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_query_status_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) + ZEND_ARG_INFO(0, success) + ZEND_ARG_INFO(0, model) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10956,36 +11052,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_memory_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_session_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_resultset_simple_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset_Simple); @@ -11050,57 +11116,65 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_complex_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_email_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); -PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_transaction_failed_ce; +zend_class_entry *phalcon_mvc_model_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -11141,6 +11215,45 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_uniqueness_method_entry){ +zend_class_entry *phalcon_mvc_model_transaction_failed_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); + +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_transaction_manager_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Manager); @@ -11290,6 +11403,23 @@ zend_class_entry *phalcon_mvc_model_transaction_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Exception); +zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_StringLength); @@ -11341,23 +11471,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_exclusionin_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); - -PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_ModuleDefinitionInterface); @@ -11638,25 +11751,6 @@ zend_class_entry *phalcon_mvc_view_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Exception); -zend_class_entry *phalcon_mvc_view_engine_php_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); - -PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) - ZEND_ARG_INFO(0, path) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, mustClean) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_view_engine_volt_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt); @@ -11715,6 +11809,25 @@ PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_volt_method_entry){ +zend_class_entry *phalcon_mvc_view_engine_php_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); + +PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) + ZEND_ARG_INFO(0, path) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, mustClean) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt_Compiler); From da00140ae7dd7cd1262fd314444c2f560412f153 Mon Sep 17 00:00:00 2001 From: phalcon Date: Sat, 9 Mar 2013 11:41:23 -0600 Subject: [PATCH 7/7] Regenerating build for 64bits [ci skip] --- build/64bits/phalcon.c | 850 ++++++++++--- build/64bits/phalcon.h | 2717 +++++++++++++++++++++------------------- 2 files changed, 2118 insertions(+), 1449 deletions(-) diff --git a/build/64bits/phalcon.c b/build/64bits/phalcon.c index 6471155bf66..9acb0cd8fb3 100644 --- a/build/64bits/phalcon.c +++ b/build/64bits/phalcon.c @@ -20011,6 +20011,24 @@ PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect){ PHALCON_MM_RESTORE();} +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare){ + + zval *sql_statement, *pdo, *statement; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &sql_statement) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(pdo); + phalcon_read_property(&pdo, this_ptr, SL("_pdo"), PH_NOISY_CC); + + PHALCON_INIT_VAR(statement); + PHALCON_CALL_METHOD_PARAMS_1_KEY(statement, pdo, "prepare", sql_statement, 7572809356827924UL); + RETURN_CCTOR(statement); +} + PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared){ zval *statement = NULL, *placeholders = NULL, *data_types = NULL; @@ -30338,6 +30356,60 @@ PHALCON_INIT_CLASS(Phalcon_FlashInterface){ + + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Password, forms_element_password, "phalcon\\forms\\element", phalcon_forms_element_password_method_entry, 0); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Forms_Element_Password, render){ + + zval *attributes = NULL, *name, *widget_attributes = NULL; + zval *code; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &attributes) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!attributes) { + PHALCON_INIT_VAR(attributes); + } + + PHALCON_OBS_VAR(name); + phalcon_read_property(&name, this_ptr, SL("_name"), PH_NOISY_CC); + if (Z_TYPE_P(attributes) != IS_ARRAY) { + PHALCON_INIT_VAR(widget_attributes); + array_init(widget_attributes); + } else { + PHALCON_CPY_WRT(widget_attributes, attributes); + } + + phalcon_array_update_long(&widget_attributes, 0, &name, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_VAR(code); + PHALCON_CALL_STATIC_PARAMS_1(code, "phalcon\\tag", "passwordfield", widget_attributes); + + RETURN_CCTOR(code); +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Forms_Element_Text){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Forms\\Element, Text, forms_element_text, "phalcon\\forms\\element", phalcon_forms_element_text_method_entry, 0); @@ -30472,6 +30544,17 @@ PHP_METHOD(Phalcon_Forms_Element, getValidators){ RETURN_MEMBER(this_ptr, "_validators"); } +PHP_METHOD(Phalcon_Forms_Element, __toString){ + + zval *content; + + PHALCON_MM_GROW(); + + PHALCON_INIT_VAR(content); + PHALCON_CALL_METHOD(content, this_ptr, "render"); + RETURN_CCTOR(content); +} + @@ -30502,39 +30585,205 @@ PHALCON_INIT_CLASS(Phalcon_Forms_Exception){ + + PHALCON_INIT_CLASS(Phalcon_Forms_Form){ PHALCON_REGISTER_CLASS(Phalcon\\Forms, Form, forms_form, phalcon_forms_form_method_entry, 0); zend_declare_property_null(phalcon_forms_form_ce, SL("_entity"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_forms_form_ce, SL("_elements"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_forms_form_ce, SL("_messages"), ZEND_ACC_PROTECTED TSRMLS_CC); return SUCCESS; } PHP_METHOD(Phalcon_Forms_Form, __construct){ - zval *entity; + zval *entity = NULL; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &entity) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &entity) == FAILURE) { RETURN_MM_NULL(); } - if (Z_TYPE_P(entity) != IS_OBJECT) { - PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); - return; + if (!entity) { + PHALCON_INIT_VAR(entity); + } + + if (Z_TYPE_P(entity) != IS_NULL) { + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_THROW_EXCEPTION_STR(phalcon_forms_exception_ce, "The base entity is not valid"); + return; + } + phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); } - phalcon_update_property_zval(this_ptr, SL("_entity"), entity TSRMLS_CC); PHALCON_MM_RESTORE(); } PHP_METHOD(Phalcon_Forms_Form, isValid){ + zval *data = NULL, *entity = NULL, *elements, *failed = NULL, *messages; + zval *element = NULL, *validators = NULL, *validation = NULL, *element_messages = NULL; + zval *name = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &entity) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!data) { + PHALCON_INIT_VAR(data); + } + + if (!entity) { + PHALCON_INIT_VAR(entity); + } else { + PHALCON_SEPARATE_PARAM(entity); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (Z_TYPE_P(elements) == IS_ARRAY) { + + if (Z_TYPE_P(entity) != IS_OBJECT) { + PHALCON_OBS_NVAR(entity); + phalcon_read_property(&entity, this_ptr, SL("_entity"), PH_NOISY_CC); + } + + PHALCON_INIT_VAR(failed); + ZVAL_BOOL(failed, 0); + + PHALCON_INIT_VAR(messages); + array_init(messages); + + if (!phalcon_is_iterable(elements, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_VALUE(element); + + PHALCON_INIT_NVAR(validators); + PHALCON_CALL_METHOD(validators, element, "getvalidators"); + if (Z_TYPE_P(validators) == IS_ARRAY) { + + PHALCON_INIT_NVAR(validation); + object_init_ex(validation, phalcon_validation_ce); + + PHALCON_INIT_NVAR(element_messages); + PHALCON_CALL_METHOD_PARAMS_2_KEY(element_messages, validation, "validate", data, entity, 249910431482794863UL); + if (phalcon_fast_count_ev(element_messages TSRMLS_CC)) { + PHALCON_INIT_NVAR(name); + PHALCON_CALL_METHOD(name, element, "getname"); + phalcon_array_update_zval(&messages, name, &element_messages, PH_COPY | PH_SEPARATE TSRMLS_CC); + + PHALCON_INIT_NVAR(failed); + ZVAL_BOOL(failed, 1); + } + } + + zend_hash_move_forward_ex(ah0, &hp0); + } + + if (zend_is_true(failed)) { + phalcon_update_property_zval(this_ptr, SL("_messages"), messages TSRMLS_CC); + } + + + RETURN_NCTOR(failed); + } + + PHALCON_MM_RESTORE(); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessages){ + + zval *by_item_name = NULL, *messages, *group = NULL, *element_messages = NULL; + zval *element = NULL; + HashTable *ah0; + HashPosition hp0; + zval **hd; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &by_item_name) == FAILURE) { + RETURN_MM_NULL(); + } + + if (!by_item_name) { + PHALCON_INIT_VAR(by_item_name); + ZVAL_BOOL(by_item_name, 1); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (zend_is_true(by_item_name)) { + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + RETURN_CTOR(group); + } + + RETURN_CCTOR(messages); + } + + PHALCON_INIT_NVAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + if (!phalcon_is_iterable(messages, &ah0, &hp0, 0, 0 TSRMLS_CC)) { + return; + } + + while (zend_hash_get_current_data_ex(ah0, (void**) &hd, &hp0) == SUCCESS) { + + PHALCON_GET_FOREACH_KEY(element, ah0, hp0); + PHALCON_GET_FOREACH_VALUE(element_messages); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(group, "appendmessages", element_messages, 6403740643299079957UL); + + zend_hash_move_forward_ex(ah0, &hp0); + } + + + RETURN_CTOR(group); +} + +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor){ + zval *name, *messages, *element_messages, *group; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(messages); + phalcon_read_property(&messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (phalcon_array_isset(messages, name)) { + PHALCON_OBS_VAR(element_messages); + phalcon_array_fetch(&element_messages, messages, name, PH_NOISY_CC); + RETURN_CCTOR(element_messages); + } + PHALCON_INIT_VAR(group); + object_init_ex(group, phalcon_validation_message_group_ce); + PHALCON_CALL_METHOD_NORETURN(group, "__construct"); + + + RETURN_CTOR(group); } PHP_METHOD(Phalcon_Forms_Form, add){ @@ -30556,7 +30805,7 @@ PHP_METHOD(Phalcon_Forms_Form, add){ PHALCON_CALL_METHOD(name, element, "getname"); phalcon_update_property_array(this_ptr, SL("_elements"), name, element TSRMLS_CC); - RETURN_CCTOR(element); + RETURN_THIS(); } PHP_METHOD(Phalcon_Forms_Form, render){ @@ -30592,6 +30841,31 @@ PHP_METHOD(Phalcon_Forms_Form, render){ RETURN_CCTOR(code); } +PHP_METHOD(Phalcon_Forms_Form, get){ + + zval *name, *elements, *exception_message, *element; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(elements); + phalcon_read_property(&elements, this_ptr, SL("_elements"), PH_NOISY_CC); + if (!phalcon_array_isset(elements, name)) { + PHALCON_INIT_VAR(exception_message); + PHALCON_CONCAT_SVS(exception_message, "Element with ID=", name, " is not part of the form"); + PHALCON_THROW_EXCEPTION_ZVAL(phalcon_forms_exception_ce, exception_message); + return; + } + + PHALCON_OBS_VAR(element); + phalcon_array_fetch(&element, elements, name, PH_NOISY_CC); + + RETURN_CCTOR(element); +} + @@ -61963,8 +62237,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords){ PHP_METHOD(Phalcon_Mvc_Model, save){ - zval *data = NULL, *meta_data, *attributes, *attribute = NULL; - zval *value = NULL, *possible_setter = NULL, *write_connection; + zval *data = NULL, *white_list = NULL, *meta_data, *attributes; + zval *attribute = NULL, *value = NULL, *possible_setter = NULL, *write_connection; zval *related, *status = NULL, *schema, *source, *table = NULL, *read_connection; zval *exists, *empty_array, *identity_field; zval *success = NULL; @@ -61975,7 +62249,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -61983,6 +62257,10 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -62005,6 +62283,13 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ if (phalcon_array_isset(data, attribute)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute, PH_NOISY_CC); @@ -62116,18 +62401,18 @@ PHP_METHOD(Phalcon_Mvc_Model, save){ PHP_METHOD(Phalcon_Mvc_Model, create){ - zval *data = NULL, *meta_data, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *read_connection; - zval *exists, *field, *type, *message, *model_message; - zval *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *read_connection, *exists, *field, *type, *message; + zval *model_message, *messages, *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -62135,6 +62420,10 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); PHALCON_CALL_METHOD(meta_data, this_ptr, "getmodelsmetadata"); @@ -62177,6 +62466,13 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -62228,18 +62524,19 @@ PHP_METHOD(Phalcon_Mvc_Model, create){ PHP_METHOD(Phalcon_Mvc_Model, update){ - zval *data = NULL, *meta_data = NULL, *column_map = NULL, *attributes; - zval *attribute = NULL, *attribute_field = NULL, *exception_message = NULL; - zval *value = NULL, *possible_setter = NULL, *dirty_state; - zval *read_connection, *exists, *field, *type, *message; - zval *model_message, *messages, *success; + zval *data = NULL, *white_list = NULL, *meta_data = NULL, *column_map = NULL; + zval *attributes, *attribute = NULL, *attribute_field = NULL; + zval *exception_message = NULL, *value = NULL, *possible_setter = NULL; + zval *dirty_state, *read_connection, *exists; + zval *field, *type, *message, *model_message, *messages; + zval *success; HashTable *ah0; HashPosition hp0; zval **hd; PHALCON_MM_GROW(); - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z", &data) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|zz", &data, &white_list) == FAILURE) { RETURN_MM_NULL(); } @@ -62247,6 +62544,10 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ PHALCON_INIT_VAR(data); } + if (!white_list) { + PHALCON_INIT_VAR(white_list); + } + PHALCON_INIT_VAR(meta_data); if (Z_TYPE_P(data) != IS_NULL) { @@ -62290,6 +62591,13 @@ PHP_METHOD(Phalcon_Mvc_Model, update){ if (phalcon_array_isset(data, attribute_field)) { + if (Z_TYPE_P(white_list) == IS_ARRAY) { + if (!phalcon_array_isset(white_list, attribute_field)) { + zend_hash_move_forward_ex(ah0, &hp0); + continue; + } + } + PHALCON_OBS_NVAR(value); phalcon_array_fetch(&value, data, attribute_field, PH_NOISY_CC); @@ -65258,6 +65566,7 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ PHALCON_REGISTER_CLASS(Phalcon\\Mvc, Router, mvc_router, phalcon_mvc_router_method_entry, 0); zend_declare_property_null(phalcon_mvc_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_property_null(phalcon_mvc_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_module"), ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_controller"), ZEND_ACC_PROTECTED TSRMLS_CC); @@ -65275,6 +65584,9 @@ PHALCON_INIT_CLASS(Phalcon_Mvc_Router){ zend_declare_property_bool(phalcon_mvc_router_ce, SL("_removeExtraSlashes"), 0, ZEND_ACC_PROTECTED TSRMLS_CC); zend_declare_property_null(phalcon_mvc_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_GET_URL"), 0 TSRMLS_CC); + zend_declare_class_constant_long(phalcon_mvc_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1 TSRMLS_CC); + zend_class_implements(phalcon_mvc_router_ce TSRMLS_CC, 2, phalcon_mvc_routerinterface_ce, phalcon_di_injectionawareinterface_ce); return SUCCESS; @@ -65357,18 +65669,23 @@ PHP_METHOD(Phalcon_Mvc_Router, getDI){ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ - zval *_GET, *url = NULL, *_SERVER, *question_mark, *url_parts; - zval *real_uri; + zval *uri_source, *_GET, *url = NULL, *_SERVER, *question_mark; + zval *url_parts, *real_uri; PHALCON_MM_GROW(); - phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); - if (phalcon_array_isset_quick_string(_GET, SS("_url"), 210704544567UL)) { + PHALCON_OBS_VAR(uri_source); + phalcon_read_property(&uri_source, this_ptr, SL("_uriSource"), PH_NOISY_CC); - PHALCON_OBS_VAR(url); - phalcon_array_fetch_quick_string(&url, _GET, SS("_url"), 210704544567UL, PH_NOISY_CC); - if (PHALCON_IS_NOT_EMPTY(url)) { - RETURN_CCTOR(url); + if (!zend_is_true(uri_source)) { + phalcon_get_global(&_GET, SS("_GET") TSRMLS_CC); + if (phalcon_array_isset_quick_string(_GET, SS("_url"), 210704544567UL)) { + + PHALCON_OBS_VAR(url); + phalcon_array_fetch_quick_string(&url, _GET, SS("_url"), 210704544567UL, PH_NOISY_CC); + if (PHALCON_IS_NOT_EMPTY(url)) { + RETURN_CCTOR(url); + } } } else { phalcon_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); @@ -65390,10 +65707,23 @@ PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri){ } } } + PHALCON_MM_RESTORE(); RETURN_STRING("/", 1); } +PHP_METHOD(Phalcon_Mvc_Router, setUriSource){ + + zval *uri_source; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &uri_source) == FAILURE) { + RETURN_NULL(); + } + + phalcon_update_property_zval(this_ptr, SL("_uriSource"), uri_source TSRMLS_CC); + +} + PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes){ zval *remove; @@ -76882,17 +77212,9 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ PHALCON_INIT_NVAR(not_exists); ZVAL_BOOL(not_exists, 0); if (Z_TYPE_P(events_manager) == IS_OBJECT) { - phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); - PHALCON_INIT_NVAR(event_name); ZVAL_STRING(event_name, "view:afterRenderView", 1); - - PHALCON_INIT_NVAR(status); - PHALCON_CALL_METHOD_PARAMS_2_KEY(status, events_manager, "fire", event_name, this_ptr, 210712414539UL); - if (PHALCON_IS_FALSE(status)) { - zend_hash_move_forward_ex(ah0, &hp0); - continue; - } + PHALCON_CALL_METHOD_PARAMS_2_NORETURN_KEY(events_manager, "fire", event_name, this_ptr, 210712414539UL); } break; @@ -76902,6 +77224,14 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender){ } if (PHALCON_IS_TRUE(not_exists)) { + + if (Z_TYPE_P(events_manager) == IS_OBJECT) { + phalcon_update_property_zval(this_ptr, SL("_activeRenderPath"), view_engine_path TSRMLS_CC); + + PHALCON_INIT_NVAR(event_name); + ZVAL_STRING(event_name, "view:notFoundView", 1); + PHALCON_CALL_METHOD_PARAMS_2_NORETURN_KEY(events_manager, "fire", event_name, this_ptr, 210712414539UL); + } if (!zend_is_true(silence)) { PHALCON_INIT_VAR(exception_message); PHALCON_CONCAT_SVS(exception_message, "View '", views_dir_path, "' was not found in the views directory"); @@ -81976,6 +82306,35 @@ PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages){ + + zval *messages, *current_messages, *final_messages = NULL; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &messages) == FAILURE) { + RETURN_MM_NULL(); + } + + if (Z_TYPE_P(messages) != IS_ARRAY) { + PHALCON_THROW_EXCEPTION_STR(phalcon_validation_exception_ce, "The messages must be an array"); + return; + } + + PHALCON_OBS_VAR(current_messages); + phalcon_read_property(¤t_messages, this_ptr, SL("_messages"), PH_NOISY_CC); + if (Z_TYPE_P(current_messages) == IS_ARRAY) { + PHALCON_INIT_VAR(final_messages); + PHALCON_CALL_FUNC_PARAMS_2(final_messages, "array_merge", current_messages, messages); + } else { + PHALCON_CPY_WRT(final_messages, messages); + } + + phalcon_update_property_zval(this_ptr, SL("_messages"), final_messages TSRMLS_CC); + + PHALCON_MM_RESTORE(); +} + PHP_METHOD(Phalcon_Validation_Message_Group, count){ zval *messages, *number; @@ -82220,6 +82579,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Email, validation_validator_email, "phalcon\\validation\\validator", phalcon_validation_validator_email_method_entry, 0); + zend_class_implements(phalcon_validation_validator_email_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82285,6 +82646,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, ExclusionIn, validation_validator_exclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_exclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_exclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82315,7 +82678,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate){ PHALCON_INIT_VAR(in_array); PHALCON_CALL_FUNC_PARAMS_2(in_array, "in_array", value, domain); - if (!zend_is_true(in_array)) { + if (zend_is_true(in_array)) { PHALCON_INIT_NVAR(option); ZVAL_STRING(option, "message", 1); @@ -82360,6 +82723,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Identical){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Identical, validation_validator_identical, "phalcon\\validation\\validator", phalcon_validation_validator_identical_method_entry, 0); + zend_class_implements(phalcon_validation_validator_identical_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82424,6 +82789,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_InclusionIn){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, InclusionIn, validation_validator_inclusionin, "phalcon\\validation\\validator", phalcon_validation_validator_inclusionin_method_entry, 0); + zend_class_implements(phalcon_validation_validator_inclusionin_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82499,6 +82866,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_PresenceOf){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, PresenceOf, validation_validator_presenceof, "phalcon\\validation\\validator", phalcon_validation_validator_presenceof_method_entry, 0); + zend_class_implements(phalcon_validation_validator_presenceof_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82557,6 +82926,8 @@ PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex){ PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Regex, validation_validator_regex, "phalcon\\validation\\validator", phalcon_validation_validator_regex_method_entry, 0); + zend_class_implements(phalcon_validation_validator_regex_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + return SUCCESS; } @@ -82637,6 +83008,145 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate){ +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength){ + + PHALCON_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, StringLength, validation_validator_stringlength, "phalcon\\validation\\validator", phalcon_validation_validator_stringlength_method_entry, 0); + + zend_class_implements(phalcon_validation_validator_stringlength_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce); + + return SUCCESS; +} + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate){ + + zval *validator, *attribute, *option = NULL, *is_set_min; + zval *is_set_max, *value, *length = NULL, *invalid_maximum = NULL; + zval *invalid_minimum = NULL, *maximum, *message_str = NULL; + zval *type = NULL, *message = NULL, *minimum; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &validator, &attribute) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_INIT_VAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(is_set_min); + PHALCON_CALL_METHOD_PARAMS_1_KEY(is_set_min, this_ptr, "issetoption", option, 15284397366010342758UL); + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(is_set_max); + PHALCON_CALL_METHOD_PARAMS_1_KEY(is_set_max, this_ptr, "issetoption", option, 15284397366010342758UL); + if (!zend_is_true(is_set_min)) { + if (!zend_is_true(is_set_max)) { + PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_model_exception_ce, "A minimum or maximum must be set"); + return; + } + } + + PHALCON_INIT_VAR(value); + PHALCON_CALL_METHOD_PARAMS_1_KEY(value, validator, "getvalue", attribute, 249889516664635650UL); + + if (phalcon_function_quick_exists_ex(SS("mb_strlen"), 8246627401502195211UL TSRMLS_CC) == SUCCESS) { + PHALCON_INIT_VAR(length); + PHALCON_CALL_FUNC_PARAMS_1(length, "mb_strlen", value); + } else { + PHALCON_INIT_NVAR(length); + phalcon_fast_strlen(length, value); + } + + PHALCON_INIT_VAR(invalid_maximum); + ZVAL_BOOL(invalid_maximum, 0); + + PHALCON_INIT_VAR(invalid_minimum); + ZVAL_BOOL(invalid_minimum, 0); + + if (zend_is_true(is_set_max)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "max", 1); + + PHALCON_INIT_VAR(maximum); + PHALCON_CALL_METHOD_PARAMS_1_KEY(maximum, this_ptr, "getoption", option, 8246354041488802206UL); + + is_smaller_function(invalid_maximum, maximum, length TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_maximum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMaximum", 1); + + PHALCON_INIT_VAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1_KEY(message_str, this_ptr, "getoption", option, 8246354041488802206UL); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' exceeds the maximum ", maximum, " characters"); + } + + PHALCON_INIT_VAR(type); + ZVAL_STRING(type, "TooLong", 1); + + PHALCON_INIT_VAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN_KEY(message, "__construct", message_str, attribute, type, 14747615951113338888UL); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(validator, "appendmessage", message, 2989013970055964674UL); + RETURN_MM_FALSE; + } + } + + if (zend_is_true(is_set_min)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "min", 1); + + PHALCON_INIT_VAR(minimum); + PHALCON_CALL_METHOD_PARAMS_1_KEY(minimum, this_ptr, "getoption", option, 8246354041488802206UL); + + is_smaller_function(invalid_minimum, length, minimum TSRMLS_CC); + if (PHALCON_IS_TRUE(invalid_minimum)) { + + PHALCON_INIT_NVAR(option); + ZVAL_STRING(option, "messageMinimum", 1); + + PHALCON_INIT_NVAR(message_str); + PHALCON_CALL_METHOD_PARAMS_1_KEY(message_str, this_ptr, "getoption", option, 8246354041488802206UL); + if (!zend_is_true(message_str)) { + PHALCON_INIT_NVAR(message_str); + PHALCON_CONCAT_SVSVS(message_str, "Value of field '", attribute, "' is less than the minimum ", minimum, " characters"); + } + + PHALCON_INIT_NVAR(type); + ZVAL_STRING(type, "TooShort", 1); + + PHALCON_INIT_NVAR(message); + object_init_ex(message, phalcon_validation_message_ce); + PHALCON_CALL_METHOD_PARAMS_3_NORETURN_KEY(message, "__construct", message_str, attribute, type, 14747615951113338888UL); + + PHALCON_CALL_METHOD_PARAMS_1_NORETURN_KEY(validator, "appendmessage", message, 2989013970055964674UL); + RETURN_MM_FALSE; + } + } + + RETURN_MM_TRUE; +} + + + + + +#ifdef HAVE_CONFIG_H +#endif + + + + + + + PHALCON_INIT_CLASS(Phalcon_Validation_Validator){ PHALCON_REGISTER_CLASS(Phalcon\\Validation, Validator, validation_validator, phalcon_validation_validator_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); @@ -82672,6 +83182,27 @@ PHP_METHOD(Phalcon_Validation_Validator, __construct){ PHALCON_MM_RESTORE(); } +PHP_METHOD(Phalcon_Validation_Validator, isSetOption){ + + zval *key, *options; + + PHALCON_MM_GROW(); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &key) == FAILURE) { + RETURN_MM_NULL(); + } + + PHALCON_OBS_VAR(options); + phalcon_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); + if (Z_TYPE_P(options) == IS_ARRAY) { + if (phalcon_array_isset(options, key)) { + RETURN_MM_TRUE; + } + } + + RETURN_MM_FALSE; +} + PHP_METHOD(Phalcon_Validation_Validator, getOption){ zval *key, *options, *value; @@ -82699,6 +83230,25 @@ PHP_METHOD(Phalcon_Validation_Validator, getOption){ +#ifdef HAVE_CONFIG_H +#endif + + + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface){ + + PHALCON_REGISTER_INTERFACE(Phalcon\\Validation, ValidatorInterface, validation_validatorinterface, phalcon_validation_validatorinterface_method_entry); + + return SUCCESS; +} + + + + + + + + #ifdef HAVE_CONFIG_H #endif @@ -82976,7 +83526,7 @@ PHP_METHOD(Phalcon_Version, _getVersion){ add_next_index_long(version, 0); add_next_index_long(version, 0); add_next_index_long(version, 2); - add_next_index_long(version, 1); + add_next_index_long(version, 2); RETURN_CTOR(version); } @@ -83088,25 +83638,25 @@ PHP_METHOD(Phalcon_Version, getId){ -zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_tag_ce; zend_class_entry *phalcon_di_ce; +zend_class_entry *phalcon_acl_ce; zend_class_entry *phalcon_db_ce; zend_class_entry *phalcon_text_ce; -zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_exception_ce; +zend_class_entry *phalcon_cache_backend_ce; zend_class_entry *phalcon_cache_multiple_ce; +zend_class_entry *phalcon_cache_frontend_none_ce; +zend_class_entry *phalcon_cache_frontend_data_ce; zend_class_entry *phalcon_cache_backend_mongo_ce; +zend_class_entry *phalcon_cache_backend_apc_ce; zend_class_entry *phalcon_cache_backend_memory_ce; zend_class_entry *phalcon_cache_backend_file_ce; -zend_class_entry *phalcon_cache_backend_apc_ce; -zend_class_entry *phalcon_cache_frontend_data_ce; -zend_class_entry *phalcon_cache_frontend_none_ce; zend_class_entry *phalcon_cache_frontendinterface_ce; -zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_cache_frontend_base64_ce; zend_class_entry *phalcon_cache_backendinterface_ce; zend_class_entry *phalcon_cache_backend_memcache_ce; +zend_class_entry *phalcon_cache_frontend_output_ce; zend_class_entry *phalcon_tag_select_ce; zend_class_entry *phalcon_tag_exception_ce; zend_class_entry *phalcon_paginator_exception_ce; @@ -83114,33 +83664,35 @@ zend_class_entry *phalcon_paginator_adapter_model_ce; zend_class_entry *phalcon_paginator_adapterinterface_ce; zend_class_entry *phalcon_paginator_adapter_nativearray_ce; zend_class_entry *phalcon_validation_ce; -zend_class_entry *phalcon_validation_validator_ce; -zend_class_entry *phalcon_validation_message_ce; zend_class_entry *phalcon_validation_exception_ce; +zend_class_entry *phalcon_validation_message_ce; +zend_class_entry *phalcon_validation_validator_ce; zend_class_entry *phalcon_validation_message_group_ce; zend_class_entry *phalcon_validation_validator_email_ce; zend_class_entry *phalcon_validation_validator_regex_ce; -zend_class_entry *phalcon_validation_validator_inclusionin_ce; -zend_class_entry *phalcon_validation_validator_identical_ce; -zend_class_entry *phalcon_validation_validator_presenceof_ce; zend_class_entry *phalcon_validation_validator_exclusionin_ce; +zend_class_entry *phalcon_validation_validator_presenceof_ce; +zend_class_entry *phalcon_validation_validatorinterface_ce; +zend_class_entry *phalcon_validation_validator_identical_ce; +zend_class_entry *phalcon_validation_validator_inclusionin_ce; +zend_class_entry *phalcon_validation_validator_stringlength_ce; zend_class_entry *phalcon_db_index_ce; -zend_class_entry *phalcon_db_reference_ce; -zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_adapter_ce; +zend_class_entry *phalcon_db_rawvalue_ce; +zend_class_entry *phalcon_db_column_ce; zend_class_entry *phalcon_db_exception_ce; zend_class_entry *phalcon_db_dialect_ce; -zend_class_entry *phalcon_db_rawvalue_ce; zend_class_entry *phalcon_db_profiler_ce; +zend_class_entry *phalcon_db_reference_ce; zend_class_entry *phalcon_db_adapter_pdo_ce; -zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; +zend_class_entry *phalcon_db_adapterinterface_ce; zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; zend_class_entry *phalcon_db_columninterface_ce; zend_class_entry *phalcon_db_dialect_mysql_ce; -zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialectinterface_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; zend_class_entry *phalcon_db_dialect_postgresql_ce; zend_class_entry *phalcon_db_indexinterface_ce; zend_class_entry *phalcon_db_profiler_item_ce; @@ -83157,18 +83709,18 @@ zend_class_entry *phalcon_acl_roleinterface_ce; zend_class_entry *phalcon_acl_resourceinterface_ce; zend_class_entry *phalcon_version_ce; zend_class_entry *phalcon_security_ce; -zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_session_ce; +zend_class_entry *phalcon_kernel_ce; zend_class_entry *phalcon_security_exception_ce; zend_class_entry *phalcon_session_bag_ce; zend_class_entry *phalcon_session_adapter_ce; -zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_exception_ce; +zend_class_entry *phalcon_session_baginterface_ce; zend_class_entry *phalcon_session_adapterinterface_ce; zend_class_entry *phalcon_session_adapter_files_ce; zend_class_entry *phalcon_filter_ce; -zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_service_ce; +zend_class_entry *phalcon_di_exception_ce; zend_class_entry *phalcon_di_factorydefault_ce; zend_class_entry *phalcon_di_factorydefault_cli_ce; zend_class_entry *phalcon_di_injectable_ce; @@ -83176,16 +83728,16 @@ zend_class_entry *phalcon_di_injectionawareinterface_ce; zend_class_entry *phalcon_di_serviceinterface_ce; zend_class_entry *phalcon_di_service_builder_ce; zend_class_entry *phalcon_diinterface_ce; -zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_filter_exception_ce; +zend_class_entry *phalcon_filterinterface_ce; zend_class_entry *phalcon_dispatcher_ce; zend_class_entry *phalcon_dispatcherinterface_ce; zend_class_entry *phalcon_flash_ce; zend_class_entry *phalcon_cli_task_ce; zend_class_entry *phalcon_flash_direct_ce; +zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_flashinterface_ce; zend_class_entry *phalcon_flash_exception_ce; -zend_class_entry *phalcon_flash_session_ce; zend_class_entry *phalcon_cli_console_ce; zend_class_entry *phalcon_cli_router_ce; zend_class_entry *phalcon_cli_dispatcher_ce; @@ -83194,31 +83746,31 @@ zend_class_entry *phalcon_cli_dispatcher_exception_ce; zend_class_entry *phalcon_cli_router_exception_ce; zend_class_entry *phalcon_annotations_reader_ce; zend_class_entry *phalcon_annotations_adapter_ce; -zend_class_entry *phalcon_annotations_adapter_apc_ce; -zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_reflection_ce; zend_class_entry *phalcon_annotations_annotation_ce; +zend_class_entry *phalcon_annotations_collection_ce; +zend_class_entry *phalcon_annotations_adapter_apc_ce; zend_class_entry *phalcon_annotations_exception_ce; -zend_class_entry *phalcon_annotations_reflection_ce; -zend_class_entry *phalcon_annotations_adapter_memory_ce; -zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_adapterinterface_ce; +zend_class_entry *phalcon_annotations_adapter_files_ce; zend_class_entry *phalcon_annotations_readerinterface_ce; +zend_class_entry *phalcon_annotations_adapter_memory_ce; zend_class_entry *phalcon_config_ce; -zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_logger_ce; +zend_class_entry *phalcon_loader_ce; zend_class_entry *phalcon_loader_exception_ce; zend_class_entry *phalcon_logger_item_ce; -zend_class_entry *phalcon_logger_adapter_ce; -zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_formatter_ce; zend_class_entry *phalcon_logger_multiple_ce; +zend_class_entry *phalcon_logger_adapter_ce; +zend_class_entry *phalcon_logger_exception_ce; zend_class_entry *phalcon_logger_adapter_file_ce; zend_class_entry *phalcon_logger_adapterinterface_ce; zend_class_entry *phalcon_logger_formatter_syslog_ce; zend_class_entry *phalcon_logger_formatter_json_ce; -zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatter_line_ce; zend_class_entry *phalcon_logger_adapter_stream_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; zend_class_entry *phalcon_logger_formatterinterface_ce; zend_class_entry *phalcon_config_exception_ce; zend_class_entry *phalcon_config_adapter_ini_ce; @@ -83227,6 +83779,7 @@ zend_class_entry *phalcon_forms_element_ce; zend_class_entry *phalcon_forms_exception_ce; zend_class_entry *phalcon_forms_manager_ce; zend_class_entry *phalcon_forms_element_text_ce; +zend_class_entry *phalcon_forms_element_password_ce; zend_class_entry *phalcon_translate_ce; zend_class_entry *phalcon_translate_adapter_ce; zend_class_entry *phalcon_translate_exception_ce; @@ -83240,12 +83793,12 @@ zend_class_entry *phalcon_http_cookie_ce; zend_class_entry *phalcon_http_response_ce; zend_class_entry *phalcon_http_request_file_ce; zend_class_entry *phalcon_http_cookie_exception_ce; +zend_class_entry *phalcon_http_requestinterface_ce; zend_class_entry *phalcon_http_responseinterface_ce; zend_class_entry *phalcon_http_response_exception_ce; -zend_class_entry *phalcon_http_requestinterface_ce; +zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_exception_ce; zend_class_entry *phalcon_http_response_cookies_ce; -zend_class_entry *phalcon_http_response_headers_ce; zend_class_entry *phalcon_http_request_fileinterface_ce; zend_class_entry *phalcon_http_response_headersinterface_ce; zend_class_entry *phalcon_queue_beanstalk_ce; @@ -83255,75 +83808,75 @@ zend_class_entry *phalcon_mvc_url_ce; zend_class_entry *phalcon_mvc_router_ce; zend_class_entry *phalcon_mvc_model_ce; zend_class_entry *phalcon_mvc_micro_ce; -zend_class_entry *phalcon_mvc_router_group_ce; zend_class_entry *phalcon_mvc_controller_ce; -zend_class_entry *phalcon_mvc_router_route_ce; -zend_class_entry *phalcon_mvc_urlinterface_ce; +zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_application_ce; zend_class_entry *phalcon_mvc_view_engine_ce; +zend_class_entry *phalcon_mvc_dispatcher_ce; +zend_class_entry *phalcon_mvc_urlinterface_ce; zend_class_entry *phalcon_mvc_user_module_ce; zend_class_entry *phalcon_mvc_user_plugin_ce; -zend_class_entry *phalcon_mvc_dispatcher_ce; -zend_class_entry *phalcon_mvc_model_row_ce; +zend_class_entry *phalcon_mvc_router_group_ce; +zend_class_entry *phalcon_mvc_router_route_ce; zend_class_entry *phalcon_mvc_model_query_ce; -zend_class_entry *phalcon_mvc_application_ce; -zend_class_entry *phalcon_mvc_collection_ce; +zend_class_entry *phalcon_mvc_model_row_ce; zend_class_entry *phalcon_mvc_application_exception_ce; +zend_class_entry *phalcon_mvc_collection_exception_ce; +zend_class_entry *phalcon_mvc_controllerinterface_ce; zend_class_entry *phalcon_mvc_collectioninterface_ce; zend_class_entry *phalcon_mvc_collection_manager_ce; -zend_class_entry *phalcon_mvc_controllerinterface_ce; -zend_class_entry *phalcon_mvc_collection_exception_ce; zend_class_entry *phalcon_mvc_collection_managerinterface_ce; -zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_dispatcherinterface_ce; -zend_class_entry *phalcon_mvc_model_query_lang_ce; -zend_class_entry *phalcon_mvc_model_validator_ce; -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_dispatcher_exception_ce; zend_class_entry *phalcon_mvc_model_exception_ce; -zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_ce; zend_class_entry *phalcon_mvc_model_metadata_ce; +zend_class_entry *phalcon_mvc_model_manager_ce; zend_class_entry *phalcon_mvc_micro_exception_ce; zend_class_entry *phalcon_mvc_micro_collection_ce; -zend_class_entry *phalcon_mvc_model_manager_ce; -zend_class_entry *phalcon_mvc_model_message_ce; +zend_class_entry *phalcon_mvc_model_criteria_ce; zend_class_entry *phalcon_mvc_model_relation_ce; +zend_class_entry *phalcon_mvc_model_query_lang_ce; zend_class_entry *phalcon_mvc_model_behavior_ce; -zend_class_entry *phalcon_mvc_model_criteria_ce; +zend_class_entry *phalcon_mvc_modelinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_ce; +zend_class_entry *phalcon_mvc_model_message_ce; zend_class_entry *phalcon_mvc_model_queryinterface_ce; zend_class_entry *phalcon_mvc_model_transaction_ce; -zend_class_entry *phalcon_mvc_model_query_status_ce; -zend_class_entry *phalcon_mvc_model_validator_url_ce; -zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_metadata_files_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_query_status_ce; zend_class_entry *phalcon_mvc_model_metadata_apc_ce; -zend_class_entry *phalcon_mvc_model_metadata_session_ce; -zend_class_entry *phalcon_mvc_model_managerinterface_ce; -zend_class_entry *phalcon_mvc_model_metadata_memory_ce; -zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_query_builder_ce; zend_class_entry *phalcon_mvc_model_messageinterface_ce; -zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; +zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_metadatainterface_ce; +zend_class_entry *phalcon_mvc_model_relationinterface_ce; +zend_class_entry *phalcon_mvc_model_metadata_memory_ce; zend_class_entry *phalcon_mvc_model_resultset_simple_ce; -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; zend_class_entry *phalcon_mvc_model_transaction_failed_ce; zend_class_entry *phalcon_mvc_model_resultsetinterface_ce; -zend_class_entry *phalcon_mvc_model_metadatainterface_ce; -zend_class_entry *phalcon_mvc_model_resultset_complex_ce; +zend_class_entry *phalcon_mvc_model_validatorinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; +zend_class_entry *phalcon_mvc_model_managerinterface_ce; zend_class_entry *phalcon_mvc_model_validator_email_ce; -zend_class_entry *phalcon_mvc_model_relationinterface_ce; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; -zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_resultinterface_ce; +zend_class_entry *phalcon_mvc_model_behaviorinterface_ce; zend_class_entry *phalcon_mvc_model_behavior_timestampable_ce; +zend_class_entry *phalcon_mvc_model_validator_numericality_ce; +zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; +zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; zend_class_entry *phalcon_mvc_model_query_builderinterface_ce; +zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_exclusionin_ce; zend_class_entry *phalcon_mvc_model_transaction_exception_ce; -zend_class_entry *phalcon_mvc_model_transaction_manager_ce; zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; -zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; -zend_class_entry *phalcon_mvc_model_query_statusinterface_ce; zend_class_entry *phalcon_mvc_model_transactioninterface_ce; -zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; zend_class_entry *phalcon_mvc_model_behavior_softdelete_ce; +zend_class_entry *phalcon_mvc_model_validator_uniqueness_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_annotations_ce; zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; zend_class_entry *phalcon_mvc_model_metadata_strategy_introspection_ce; @@ -83334,10 +83887,10 @@ zend_class_entry *phalcon_mvc_router_annotations_ce; zend_class_entry *phalcon_mvc_router_routeinterface_ce; zend_class_entry *phalcon_mvc_user_component_ce; zend_class_entry *phalcon_mvc_url_exception_ce; -zend_class_entry *phalcon_mvc_view_exception_ce; -zend_class_entry *phalcon_mvc_view_engine_php_ce; -zend_class_entry *phalcon_mvc_view_engine_volt_ce; zend_class_entry *phalcon_mvc_viewinterface_ce; +zend_class_entry *phalcon_mvc_view_engine_volt_ce; +zend_class_entry *phalcon_mvc_view_engine_php_ce; +zend_class_entry *phalcon_mvc_view_exception_ce; zend_class_entry *phalcon_mvc_view_engineinterface_ce; zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; zend_class_entry *phalcon_events_event_ce; @@ -83378,6 +83931,7 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); + PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); @@ -83417,43 +83971,43 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); - PHALCON_INIT(Phalcon_Session_BagInterface); - PHALCON_INIT(Phalcon_FilterInterface); + PHALCON_INIT(Phalcon_Annotations_ReaderInterface); + PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); + PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); - PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); - PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_EscaperInterface); - PHALCON_INIT(Phalcon_Acl_RoleInterface); - PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); - PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Session_AdapterInterface); + PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); + PHALCON_INIT(Phalcon_Translate_AdapterInterface); + PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); - PHALCON_INIT(Phalcon_Db_Dialect); - PHALCON_INIT(Phalcon_Logger_Formatter); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo); - PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Annotations_Adapter); + PHALCON_INIT(Phalcon_Logger_Adapter); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo); + PHALCON_INIT(Phalcon_Logger_Formatter); + PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Dispatcher); - PHALCON_INIT(Phalcon_Mvc_Model_Resultset); - PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_View_Engine); + PHALCON_INIT(Phalcon_Forms_Element); + PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); + PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_DI_FactoryDefault); - PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Model_Exception); + PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); - PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); @@ -83464,10 +84018,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); + PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Output); - PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); @@ -83477,25 +84031,26 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Validation_Message_Group); - PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); + PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); + PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); - PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); + PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); - PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); + PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); - PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_RawValue); + PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_Acl_Role); @@ -83518,8 +84073,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Flash_Direct); - PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_Flash_Exception); + PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); @@ -83530,29 +84085,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); - PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Annotation); + PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); - PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); + PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Exception); - PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Json); - PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); + PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); + PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); - PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Exception); + PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Element_Text); + PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); @@ -83569,10 +84125,10 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); - PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Url); + PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection); @@ -83593,30 +84149,30 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); + PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); - PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); - PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); + PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); - PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); + PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); + PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); - PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Route); @@ -83627,8 +84183,8 @@ PHP_MINIT_FUNCTION(phalcon){ PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Exception); - PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); + PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); diff --git a/build/64bits/phalcon.h b/build/64bits/phalcon.h index 684c45a0237..e75456d879f 100644 --- a/build/64bits/phalcon.h +++ b/build/64bits/phalcon.h @@ -67,6 +67,32 @@ PHALCON_INIT_FUNCS(phalcon_events_eventsawareinterface_method_entry){ +zend_class_entry *phalcon_validation_validatorinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_ValidatorInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_getoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validatorinterface_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validatorinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, isSetOption, arginfo_phalcon_validation_validatorinterface_issetoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, getOption, arginfo_phalcon_validation_validatorinterface_getoption) + PHP_ABSTRACT_ME(Phalcon_Validation_ValidatorInterface, validate, arginfo_phalcon_validation_validatorinterface_validate) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_backendinterface_ce; PHALCON_INIT_CLASS(Phalcon_Cache_BackendInterface); @@ -2398,69 +2424,42 @@ PHALCON_INIT_FUNCS(phalcon_acl_resourceinterface_method_entry){ -zend_class_entry *phalcon_session_baginterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, property) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_annotations_readerinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) - ZEND_ARG_INFO(0, property) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) - ZEND_ARG_INFO(0, property) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) + ZEND_ARG_INFO(0, docBlock) + ZEND_ARG_INFO(0, file) + ZEND_ARG_INFO(0, line) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) - PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) +PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) + ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_filterinterface_ce; +zend_class_entry *phalcon_acl_roleinterface_ce; -PHALCON_INIT_CLASS(Phalcon_FilterInterface); +PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, handler) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) - ZEND_ARG_INFO(0, value) - ZEND_ARG_INFO(0, filters) + ZEND_ARG_INFO(0, description) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) - PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) +PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) + PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) PHP_FE_END }; @@ -2548,6 +2547,51 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapterinterface_method_entry){ +zend_class_entry *phalcon_session_baginterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Session_BagInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, defaultValue) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___set, 0, 0, 2) + ZEND_ARG_INFO(0, property) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___get, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_baginterface___isset, 0, 0, 1) + ZEND_ARG_INFO(0, property) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_session_baginterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, initialize, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, destroy, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, set, arginfo_phalcon_session_baginterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, get, arginfo_phalcon_session_baginterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, has, arginfo_phalcon_session_baginterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __set, arginfo_phalcon_session_baginterface___set) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __get, arginfo_phalcon_session_baginterface___get) + PHP_ABSTRACT_ME(Phalcon_Session_BagInterface, __isset, arginfo_phalcon_session_baginterface___isset) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_messageinterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MessageInterface); @@ -2589,53 +2633,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_messageinterface_method_entry){ -zend_class_entry *phalcon_session_adapterinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, defaultValue) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) - PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) - PHP_FE_END -}; - - - zend_class_entry *phalcon_di_serviceinterface_ce; PHALCON_INIT_CLASS(Phalcon_DI_ServiceInterface); @@ -2677,28 +2674,6 @@ PHALCON_INIT_FUNCS(phalcon_di_serviceinterface_method_entry){ -zend_class_entry *phalcon_annotations_readerinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_ReaderInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parse, 0, 0, 1) - ZEND_ARG_INFO(0, className) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_readerinterface_parsedocblock, 0, 0, 1) - ZEND_ARG_INFO(0, docBlock) - ZEND_ARG_INFO(0, file) - ZEND_ARG_INFO(0, line) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_readerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Annotations_ReaderInterface, parse, arginfo_phalcon_annotations_readerinterface_parse) - ZEND_FENTRY(parseDocBlock, NULL, arginfo_phalcon_annotations_readerinterface_parsedocblock, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_events_managerinterface_ce; PHALCON_INIT_CLASS(Phalcon_Events_ManagerInterface); @@ -2778,95 +2753,110 @@ PHALCON_INIT_FUNCS(phalcon_escaperinterface_method_entry){ -zend_class_entry *phalcon_acl_roleinterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Acl_RoleInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_acl_roleinterface___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, description) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_acl_roleinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __construct, arginfo_phalcon_acl_roleinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getName, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, getDescription, NULL) - PHP_ABSTRACT_ME(Phalcon_Acl_RoleInterface, __toString, NULL) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_criteriainterface_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) - ZEND_ARG_INFO(0, modelName) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_session_adapterinterface_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) - ZEND_ARG_INFO(0, bindParams) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Session_AdapterInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0, 1) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) - ZEND_ARG_INFO(0, orderColumns) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, defaultValue) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) - ZEND_ARG_INFO(0, limit) - ZEND_ARG_INFO(0, offset) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_set, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) - ZEND_ARG_INFO(0, forUpdate) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_has, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) - ZEND_ARG_INFO(0, sharedLock) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_remove, 0, 0, 1) + ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +PHALCON_INIT_FUNCS(phalcon_session_adapterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, __construct, arginfo_phalcon_session_adapterinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, start, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, setOptions, arginfo_phalcon_session_adapterinterface_setoptions) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getOptions, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, get, arginfo_phalcon_session_adapterinterface_get) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, set, arginfo_phalcon_session_adapterinterface_set) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, has, arginfo_phalcon_session_adapterinterface_has) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL) + PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_filterinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_FilterInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_add, 0, 0, 2) + ZEND_ARG_INFO(0, name) + ZEND_ARG_INFO(0, handler) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) - ZEND_ARG_INFO(0, conditions) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filterinterface_sanitize, 0, 0, 2) + ZEND_ARG_INFO(0, value) + ZEND_ARG_INFO(0, filters) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) +PHALCON_INIT_FUNCS(phalcon_filterinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_FilterInterface, add, arginfo_phalcon_filterinterface_add) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, sanitize, arginfo_phalcon_filterinterface_sanitize) + PHP_ABSTRACT_ME(Phalcon_FilterInterface, getFilters, NULL) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) ZEND_ARG_INFO(0, dependencyInjector) - ZEND_ARG_INFO(0, modelName) - ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) - ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) + ZEND_ARG_INFO(0, autoBegin) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) + ZEND_ARG_INFO(0, collect) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) + ZEND_ARG_INFO(0, transaction) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) PHP_FE_END }; @@ -2904,40 +2894,76 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapterinterface_method_entry){ -zend_class_entry *phalcon_mvc_model_transaction_managerinterface_ce; +zend_class_entry *phalcon_mvc_model_criteriainterface_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_ManagerInterface); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_CriteriaInterface); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface___construct, 0, 0, 0) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_setmodelname, 0, 0, 1) + ZEND_ARG_INFO(0, modelName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_get, 0, 0, 0) - ZEND_ARG_INFO(0, autoBegin) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_bind, 0, 0, 1) + ZEND_ARG_INFO(0, bindParams) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_rollback, 0, 0, 0) - ZEND_ARG_INFO(0, collect) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_where, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_conditions, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit, 0, 0, 1) - ZEND_ARG_INFO(0, transaction) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_order, 0, 0, 1) + ZEND_ARG_INFO(0, orderColumns) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_managerinterface_method_entry){ - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, __construct, arginfo_phalcon_mvc_model_transaction_managerinterface___construct) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, has, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, get, arginfo_phalcon_mvc_model_transaction_managerinterface_get) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollbackPendent, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, commit, NULL) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, rollback, arginfo_phalcon_mvc_model_transaction_managerinterface_rollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyRollback, arginfo_phalcon_mvc_model_transaction_managerinterface_notifyrollback) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, notifyCommit, arginfo_phalcon_mvc_model_transaction_managerinterface_notifycommit) - PHP_ABSTRACT_ME(Phalcon_Mvc_Model_Transaction_ManagerInterface, collectTransactions, NULL) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_limit, 0, 0, 1) + ZEND_ARG_INFO(0, limit) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_forupdate, 0, 0, 0) + ZEND_ARG_INFO(0, forUpdate) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_sharedlock, 0, 0, 0) + ZEND_ARG_INFO(0, sharedLock) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_andwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_orwhere, 0, 0, 1) + ZEND_ARG_INFO(0, conditions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_criteriainterface_frominput, 0, 0, 3) + ZEND_ARG_INFO(0, dependencyInjector) + ZEND_ARG_INFO(0, modelName) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_criteriainterface_method_entry){ + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, setModelName, arginfo_phalcon_mvc_model_criteriainterface_setmodelname) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getModelName, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, bind, arginfo_phalcon_mvc_model_criteriainterface_bind) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, where, arginfo_phalcon_mvc_model_criteriainterface_where) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, conditions, arginfo_phalcon_mvc_model_criteriainterface_conditions) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, order, arginfo_phalcon_mvc_model_criteriainterface_order) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, limit, arginfo_phalcon_mvc_model_criteriainterface_limit) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, forUpdate, arginfo_phalcon_mvc_model_criteriainterface_forupdate) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, sharedLock, arginfo_phalcon_mvc_model_criteriainterface_sharedlock) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, andWhere, arginfo_phalcon_mvc_model_criteriainterface_andwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, orWhere, arginfo_phalcon_mvc_model_criteriainterface_orwhere) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getWhere, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getConditions, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getLimit, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getOrder, NULL) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, getParams, NULL) + ZEND_FENTRY(fromInput, NULL, arginfo_phalcon_mvc_model_criteriainterface_frominput, ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ABSTRACT_ME(Phalcon_Mvc_Model_CriteriaInterface, execute, NULL) PHP_FE_END }; @@ -3325,18 +3351,24 @@ zend_class_entry *phalcon_validation_validator_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator); PHP_METHOD(Phalcon_Validation_Validator, __construct); +PHP_METHOD(Phalcon_Validation_Validator, isSetOption); PHP_METHOD(Phalcon_Validation_Validator, getOption); ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator___construct, 0, 0, 0) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_issetoption, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_getoption, 0, 0, 1) ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_validation_validator_method_entry){ PHP_ME(Phalcon_Validation_Validator, __construct, arginfo_phalcon_validation_validator___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Validation_Validator, isSetOption, arginfo_phalcon_validation_validator_issetoption, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Validator, getOption, arginfo_phalcon_validation_validator_getoption, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3550,75 +3582,133 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_method_entry){ -zend_class_entry *phalcon_db_dialect_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Dialect); +zend_class_entry *phalcon_annotations_adapter_ce; -PHP_METHOD(Phalcon_Db_Dialect, limit); -PHP_METHOD(Phalcon_Db_Dialect, forUpdate); -PHP_METHOD(Phalcon_Db_Dialect, sharedLock); -PHP_METHOD(Phalcon_Db_Dialect, getColumnList); -PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); -PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); -PHP_METHOD(Phalcon_Db_Dialect, select); +PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) - ZEND_ARG_INFO(0, sqlQuery) - ZEND_ARG_INFO(0, number) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Annotations_Adapter, setReader); +PHP_METHOD(Phalcon_Annotations_Adapter, getReader); +PHP_METHOD(Phalcon_Annotations_Adapter, get); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); +PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); +PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) + ZEND_ARG_INFO(0, reader) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) - ZEND_ARG_INFO(0, sqlQuery) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) - ZEND_ARG_INFO(0, columnList) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) - ZEND_ARG_INFO(0, expression) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, methodName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, escapeChar) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) + ZEND_ARG_INFO(0, className) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) - ZEND_ARG_INFO(0, definition) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) + ZEND_ARG_INFO(0, className) + ZEND_ARG_INFO(0, propertyName) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ - PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ + PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_formatter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); - -PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); +zend_class_entry *phalcon_logger_adapter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) - ZEND_ARG_INFO(0, type) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); -PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ - PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) - PHP_FE_END +PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); +PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); +PHP_METHOD(Phalcon_Logger_Adapter, begin); +PHP_METHOD(Phalcon_Logger_Adapter, commit); +PHP_METHOD(Phalcon_Logger_Adapter, rollback); +PHP_METHOD(Phalcon_Logger_Adapter, emergence); +PHP_METHOD(Phalcon_Logger_Adapter, debug); +PHP_METHOD(Phalcon_Logger_Adapter, error); +PHP_METHOD(Phalcon_Logger_Adapter, info); +PHP_METHOD(Phalcon_Logger_Adapter, notice); +PHP_METHOD(Phalcon_Logger_Adapter, warning); +PHP_METHOD(Phalcon_Logger_Adapter, alert); +PHP_METHOD(Phalcon_Logger_Adapter, log); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) + ZEND_ARG_INFO(0, formatter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) + ZEND_ARG_INFO(0, message) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ + PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) + PHP_FE_END }; @@ -3629,6 +3719,7 @@ PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo); PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct); PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect); +PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare); PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared); PHP_METHOD(Phalcon_Db_Adapter_Pdo, query); PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute); @@ -3658,6 +3749,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_connect, 0, 0, 0) ZEND_ARG_INFO(0, descriptor) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_prepare, 0, 0, 1) + ZEND_ARG_INFO(0, sqlStatement) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_executeprepared, 0, 0, 3) ZEND_ARG_INFO(0, statement) ZEND_ARG_INFO(0, placeholders) @@ -3716,6 +3811,7 @@ ZEND_END_ARG_INFO() PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ PHP_ME(Phalcon_Db_Adapter_Pdo, __construct, arginfo_phalcon_db_adapter_pdo___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_ME(Phalcon_Db_Adapter_Pdo, connect, arginfo_phalcon_db_adapter_pdo_connect, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo, prepare, arginfo_phalcon_db_adapter_pdo_prepare, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, executePrepared, arginfo_phalcon_db_adapter_pdo_executeprepared, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, query, arginfo_phalcon_db_adapter_pdo_query, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Db_Adapter_Pdo, execute, arginfo_phalcon_db_adapter_pdo_execute, ZEND_ACC_PUBLIC) @@ -3741,132 +3837,74 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_method_entry){ -zend_class_entry *phalcon_logger_adapter_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter); - -PHP_METHOD(Phalcon_Logger_Adapter, setLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, getLogLevel); -PHP_METHOD(Phalcon_Logger_Adapter, setFormatter); -PHP_METHOD(Phalcon_Logger_Adapter, begin); -PHP_METHOD(Phalcon_Logger_Adapter, commit); -PHP_METHOD(Phalcon_Logger_Adapter, rollback); -PHP_METHOD(Phalcon_Logger_Adapter, emergence); -PHP_METHOD(Phalcon_Logger_Adapter, debug); -PHP_METHOD(Phalcon_Logger_Adapter, error); -PHP_METHOD(Phalcon_Logger_Adapter, info); -PHP_METHOD(Phalcon_Logger_Adapter, notice); -PHP_METHOD(Phalcon_Logger_Adapter, warning); -PHP_METHOD(Phalcon_Logger_Adapter, alert); -PHP_METHOD(Phalcon_Logger_Adapter, log); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setloglevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_setformatter, 0, 0, 1) - ZEND_ARG_INFO(0, formatter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_emergence, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_debug, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_error, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_info, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_notice, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_logger_formatter_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_warning, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_alert, 0, 0, 1) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Logger_Formatter, getTypeString); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_log, 0, 0, 1) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_gettypestring, 0, 0, 1) ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_method_entry){ - PHP_ME(Phalcon_Logger_Adapter, setLogLevel, arginfo_phalcon_logger_adapter_setloglevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, getLogLevel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, setFormatter, arginfo_phalcon_logger_adapter_setformatter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, begin, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, commit, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, rollback, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, emergence, arginfo_phalcon_logger_adapter_emergence, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, debug, arginfo_phalcon_logger_adapter_debug, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, error, arginfo_phalcon_logger_adapter_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, info, arginfo_phalcon_logger_adapter_info, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, notice, arginfo_phalcon_logger_adapter_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, warning, arginfo_phalcon_logger_adapter_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, alert, arginfo_phalcon_logger_adapter_alert, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter, log, arginfo_phalcon_logger_adapter_log, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_formatter_method_entry){ + PHP_ME(Phalcon_Logger_Formatter, getTypeString, arginfo_phalcon_logger_formatter_gettypestring, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_annotations_adapter_ce; +zend_class_entry *phalcon_db_dialect_ce; -PHALCON_INIT_CLASS(Phalcon_Annotations_Adapter); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect); -PHP_METHOD(Phalcon_Annotations_Adapter, setReader); -PHP_METHOD(Phalcon_Annotations_Adapter, getReader); -PHP_METHOD(Phalcon_Annotations_Adapter, get); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethods); -PHP_METHOD(Phalcon_Annotations_Adapter, getMethod); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperties); -PHP_METHOD(Phalcon_Annotations_Adapter, getProperty); +PHP_METHOD(Phalcon_Db_Dialect, limit); +PHP_METHOD(Phalcon_Db_Dialect, forUpdate); +PHP_METHOD(Phalcon_Db_Dialect, sharedLock); +PHP_METHOD(Phalcon_Db_Dialect, getColumnList); +PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression); +PHP_METHOD(Phalcon_Db_Dialect, getSqlTable); +PHP_METHOD(Phalcon_Db_Dialect, select); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_setreader, 0, 0, 1) - ZEND_ARG_INFO(0, reader) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_limit, 0, 0, 2) + ZEND_ARG_INFO(0, sqlQuery) + ZEND_ARG_INFO(0, number) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_get, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_forupdate, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethods, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sharedlock, 0, 0, 1) + ZEND_ARG_INFO(0, sqlQuery) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getmethod, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, methodName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getcolumnlist, 0, 0, 1) + ZEND_ARG_INFO(0, columnList) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperties, 0, 0, 1) - ZEND_ARG_INFO(0, className) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqlexpression, 0, 0, 1) + ZEND_ARG_INFO(0, expression) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapter_getproperty, 0, 0, 2) - ZEND_ARG_INFO(0, className) - ZEND_ARG_INFO(0, propertyName) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_getsqltable, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, escapeChar) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_annotations_adapter_method_entry){ - PHP_ME(Phalcon_Annotations_Adapter, setReader, arginfo_phalcon_annotations_adapter_setreader, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getReader, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, get, arginfo_phalcon_annotations_adapter_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethods, arginfo_phalcon_annotations_adapter_getmethods, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getMethod, arginfo_phalcon_annotations_adapter_getmethod, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperties, arginfo_phalcon_annotations_adapter_getproperties, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Adapter, getProperty, arginfo_phalcon_annotations_adapter_getproperty, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_select, 0, 0, 1) + ZEND_ARG_INFO(0, definition) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_dialect_method_entry){ + PHP_ME(Phalcon_Db_Dialect, limit, arginfo_phalcon_db_dialect_limit, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, forUpdate, arginfo_phalcon_db_dialect_forupdate, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, sharedLock, arginfo_phalcon_db_dialect_sharedlock, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getColumnList, arginfo_phalcon_db_dialect_getcolumnlist, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlExpression, arginfo_phalcon_db_dialect_getsqlexpression, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, getSqlTable, arginfo_phalcon_db_dialect_getsqltable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect, select, arginfo_phalcon_db_dialect_select, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -3980,85 +4018,70 @@ PHALCON_INIT_FUNCS(phalcon_dispatcher_method_entry){ -zend_class_entry *phalcon_mvc_model_resultset_ce; +zend_class_entry *phalcon_mvc_view_engine_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); +PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); +PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); +PHP_METHOD(Phalcon_Mvc_View_Engine, partial); +PHP_METHOD(Phalcon_Mvc_View_Engine, getView); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) - ZEND_ARG_INFO(0, position) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) + ZEND_ARG_INFO(0, view) + ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) - ZEND_ARG_INFO(0, index) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, offset) + +zend_class_entry *phalcon_forms_element_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element); + +PHP_METHOD(Phalcon_Forms_Element, __construct); +PHP_METHOD(Phalcon_Forms_Element, setName); +PHP_METHOD(Phalcon_Forms_Element, getName); +PHP_METHOD(Phalcon_Forms_Element, addValidators); +PHP_METHOD(Phalcon_Forms_Element, addValidator); +PHP_METHOD(Phalcon_Forms_Element, getValidators); +PHP_METHOD(Phalcon_Forms_Element, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) - ZEND_ARG_INFO(0, isFresh) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) - ZEND_ARG_INFO(0, hydrateMode) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) + ZEND_ARG_INFO(0, validators) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) - ZEND_ARG_INFO(0, conditionCallback) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) + ZEND_ARG_INFO(0, validator) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ + PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Element, __toString, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4111,48 +4134,20 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_warning, 0, 0, 1) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_flash_outputmessage, 0, 0, 2) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, message) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ - PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_engine_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine); - -PHP_METHOD(Phalcon_Mvc_View_Engine, __construct); -PHP_METHOD(Phalcon_Mvc_View_Engine, getContent); -PHP_METHOD(Phalcon_Mvc_View_Engine, partial); -PHP_METHOD(Phalcon_Mvc_View_Engine, getView); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine___construct, 0, 0, 1) - ZEND_ARG_INFO(0, view) - ZEND_ARG_INFO(0, dependencyInjector) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine, __construct, arginfo_phalcon_mvc_view_engine___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View_Engine, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, partial, arginfo_phalcon_mvc_view_engine_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View_Engine, getView, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_flash_method_entry){ + PHP_ME(Phalcon_Flash, __construct, arginfo_phalcon_flash___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Flash, setImplicitFlush, arginfo_phalcon_flash_setimplicitflush, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setAutomaticHtml, arginfo_phalcon_flash_setautomatichtml, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, setCssClasses, arginfo_phalcon_flash_setcssclasses, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, error, arginfo_phalcon_flash_error, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, notice, arginfo_phalcon_flash_notice, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, success, arginfo_phalcon_flash_success, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, warning, arginfo_phalcon_flash_warning, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Flash, outputMessage, arginfo_phalcon_flash_outputmessage, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -4194,6 +4189,90 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_behavior_method_entry){ +zend_class_entry *phalcon_mvc_model_resultset_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset); + +PHP_METHOD(Phalcon_Mvc_Model_Resultset, next); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, key); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, seek); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, count); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetExists); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetSet); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetUnset); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getType); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setIsFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, isFresh); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, setHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getHydrateMode); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getCache); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, current); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_seek, 0, 0, 1) + ZEND_ARG_INFO(0, position) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetexists, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetget, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetset, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_offsetunset, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_setisfresh, 0, 0, 1) + ZEND_ARG_INFO(0, isFresh) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_sethydratemode, 0, 0, 1) + ZEND_ARG_INFO(0, hydrateMode) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_resultset_delete, 0, 0, 0) + ZEND_ARG_INFO(0, conditionCallback) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Resultset, next, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, key, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, rewind, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, seek, arginfo_phalcon_mvc_model_resultset_seek, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, count, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetExists, arginfo_phalcon_mvc_model_resultset_offsetexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetGet, arginfo_phalcon_mvc_model_resultset_offsetget, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetSet, arginfo_phalcon_mvc_model_resultset_offsetset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, offsetUnset, arginfo_phalcon_mvc_model_resultset_offsetunset, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getType, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getFirst, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getLast, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setIsFresh, arginfo_phalcon_mvc_model_resultset_setisfresh, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, isFresh, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, setHydrateMode, arginfo_phalcon_mvc_model_resultset_sethydratemode, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getHydrateMode, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, current, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Resultset, delete, arginfo_phalcon_mvc_model_resultset_delete, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_adapter_ce; PHALCON_INIT_CLASS(Phalcon_Translate_Adapter); @@ -4309,6 +4388,11 @@ PHALCON_INIT_FUNCS(phalcon_di_factorydefault_method_entry){ +zend_class_entry *phalcon_mvc_model_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); + + zend_class_entry *phalcon_config_ce; PHALCON_INIT_CLASS(Phalcon_Config); @@ -4372,11 +4456,6 @@ PHALCON_INIT_FUNCS(phalcon_config_method_entry){ -zend_class_entry *phalcon_mvc_model_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Exception); - - zend_class_entry *phalcon_mvc_router_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Router); @@ -4385,6 +4464,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct); PHP_METHOD(Phalcon_Mvc_Router, setDI); PHP_METHOD(Phalcon_Mvc_Router, getDI); PHP_METHOD(Phalcon_Mvc_Router, _getRewriteUri); +PHP_METHOD(Phalcon_Mvc_Router, setUriSource); PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes); PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace); PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule); @@ -4423,6 +4503,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_setdi, 0, 0, 1) ZEND_ARG_INFO(0, dependencyInjector) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_seturisource, 0, 0, 1) + ZEND_ARG_INFO(0, uriSource) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_removeextraslashes, 0, 0, 1) ZEND_ARG_INFO(0, remove) ZEND_END_ARG_INFO() @@ -4513,6 +4597,7 @@ PHALCON_INIT_FUNCS(phalcon_mvc_router_method_entry){ PHP_ME(Phalcon_Mvc_Router, setDI, arginfo_phalcon_mvc_router_setdi, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, getDI, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, _getRewriteUri, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_Router, setUriSource, arginfo_phalcon_mvc_router_seturisource, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, removeExtraSlashes, arginfo_phalcon_mvc_router_removeextraslashes, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultNamespace, arginfo_phalcon_mvc_router_setdefaultnamespace, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Mvc_Router, setDefaultModule, arginfo_phalcon_mvc_router_setdefaultmodule, ZEND_ACC_PUBLIC) @@ -4580,45 +4665,6 @@ PHALCON_INIT_FUNCS(phalcon_acl_adapter_method_entry){ -zend_class_entry *phalcon_forms_element_ce; - -PHALCON_INIT_CLASS(Phalcon_Forms_Element); - -PHP_METHOD(Phalcon_Forms_Element, __construct); -PHP_METHOD(Phalcon_Forms_Element, setName); -PHP_METHOD(Phalcon_Forms_Element, getName); -PHP_METHOD(Phalcon_Forms_Element, addValidators); -PHP_METHOD(Phalcon_Forms_Element, addValidator); -PHP_METHOD(Phalcon_Forms_Element, getValidators); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element___construct, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_setname, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidators, 0, 0, 1) - ZEND_ARG_INFO(0, validators) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_addvalidator, 0, 0, 1) - ZEND_ARG_INFO(0, validator) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_forms_element_method_entry){ - PHP_ME(Phalcon_Forms_Element, __construct, arginfo_phalcon_forms_element___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Element, setName, arginfo_phalcon_forms_element_setname, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidators, arginfo_phalcon_forms_element_addvalidators, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, addValidator, arginfo_phalcon_forms_element_addvalidator, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Forms_Element, getValidators, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_ce; PHALCON_INIT_CLASS(Phalcon_Db); @@ -5165,6 +5211,45 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_memcache_method_entry){ +zend_class_entry *phalcon_cache_frontend_data_ce; + +PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); + +PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); +PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); +PHP_METHOD(Phalcon_Cache_Frontend_Data, start); +PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); +PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); +PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); +PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) + ZEND_ARG_INFO(0, frontendOptions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ + PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_cache_frontend_base64_ce; PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64); @@ -5282,45 +5367,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){ -zend_class_entry *phalcon_cache_frontend_data_ce; - -PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data); - -PHP_METHOD(Phalcon_Cache_Frontend_Data, __construct); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getLifetime); -PHP_METHOD(Phalcon_Cache_Frontend_Data, isBuffering); -PHP_METHOD(Phalcon_Cache_Frontend_Data, start); -PHP_METHOD(Phalcon_Cache_Frontend_Data, getContent); -PHP_METHOD(Phalcon_Cache_Frontend_Data, stop); -PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore); -PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data___construct, 0, 0, 0) - ZEND_ARG_INFO(0, frontendOptions) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_beforestore, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_cache_frontend_data_afterretrieve, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_cache_frontend_data_method_entry){ - PHP_ME(Phalcon_Cache_Frontend_Data, __construct, arginfo_phalcon_cache_frontend_data___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Cache_Frontend_Data, getLifetime, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, isBuffering, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, stop, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, beforeStore, arginfo_phalcon_cache_frontend_data_beforestore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Cache_Frontend_Data, afterRetrieve, arginfo_phalcon_cache_frontend_data_afterretrieve, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_tag_select_ce; PHALCON_INIT_CLASS(Phalcon_Tag_Select); @@ -5519,6 +5565,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet); PHP_METHOD(Phalcon_Validation_Message_Group, offsetExists); PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset); PHP_METHOD(Phalcon_Validation_Message_Group, appendMessage); +PHP_METHOD(Phalcon_Validation_Message_Group, appendMessages); PHP_METHOD(Phalcon_Validation_Message_Group, count); PHP_METHOD(Phalcon_Validation_Message_Group, rewind); PHP_METHOD(Phalcon_Validation_Message_Group, current); @@ -5552,6 +5599,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessage, 0 ZEND_ARG_INFO(0, message) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group_appendmessages, 0, 0, 1) + ZEND_ARG_INFO(0, messages) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message_group___set_state, 0, 0, 1) ZEND_ARG_INFO(0, group) ZEND_END_ARG_INFO() @@ -5563,6 +5614,7 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ PHP_ME(Phalcon_Validation_Message_Group, offsetExists, arginfo_phalcon_validation_message_group_offsetexists, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, offsetUnset, arginfo_phalcon_validation_message_group_offsetunset, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, appendMessage, arginfo_phalcon_validation_message_group_appendmessage, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Validation_Message_Group, appendMessages, arginfo_phalcon_validation_message_group_appendmessages, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, count, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, rewind, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Validation_Message_Group, current, NULL, ZEND_ACC_PUBLIC) @@ -5575,37 +5627,37 @@ PHALCON_INIT_FUNCS(phalcon_validation_message_group_method_entry){ -zend_class_entry *phalcon_validation_validator_regex_ce; +zend_class_entry *phalcon_validation_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); -PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); +PHP_METHOD(Phalcon_Validation_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_validation_validator_email_ce; +zend_class_entry *phalcon_validation_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_Regex); -PHP_METHOD(Phalcon_Validation_Validator_Email, validate); +PHP_METHOD(Phalcon_Validation_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_email_validate, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_regex_validate, 0, 0, 2) ZEND_ARG_INFO(0, validator) ZEND_ARG_INFO(0, attribute) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_validation_validator_email_method_entry){ - PHP_ME(Phalcon_Validation_Validator_Email, validate, arginfo_phalcon_validation_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_validation_validator_regex_method_entry){ + PHP_ME(Phalcon_Validation_Validator_Regex, validate, arginfo_phalcon_validation_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -5647,6 +5699,24 @@ PHALCON_INIT_FUNCS(phalcon_validation_validator_inclusionin_method_entry){ +zend_class_entry *phalcon_validation_validator_stringlength_ce; + +PHALCON_INIT_CLASS(Phalcon_Validation_Validator_StringLength); + +PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_validator_stringlength_validate, 0, 0, 2) + ZEND_ARG_INFO(0, validator) + ZEND_ARG_INFO(0, attribute) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_validation_validator_stringlength_method_entry){ + PHP_ME(Phalcon_Validation_Validator_StringLength, validate, arginfo_phalcon_validation_validator_stringlength_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_validation_validator_exclusionin_ce; PHALCON_INIT_CLASS(Phalcon_Validation_Validator_ExclusionIn); @@ -5761,30 +5831,6 @@ PHALCON_INIT_FUNCS(phalcon_db_column_method_entry){ -zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); - -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); -PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) - ZEND_ARG_INFO(0, identifier) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) - ZEND_ARG_INFO(0, table) - ZEND_ARG_INFO(0, schema) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_adapter_pdo_sqlite_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Sqlite); @@ -5823,6 +5869,30 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_sqlite_method_entry){ +zend_class_entry *phalcon_db_adapter_pdo_mysql_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Mysql); + +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier); +PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, 0, 0, 1) + ZEND_ARG_INFO(0, identifier) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, 0, 0, 1) + ZEND_ARG_INFO(0, table) + ZEND_ARG_INFO(0, schema) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_mysql_method_entry){ + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, escapeIdentifier, arginfo_phalcon_db_adapter_pdo_mysql_escapeidentifier, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns, arginfo_phalcon_db_adapter_pdo_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_adapter_pdo_postgresql_ce; PHALCON_INIT_CLASS(Phalcon_Db_Adapter_Pdo_Postgresql); @@ -5851,301 +5921,301 @@ PHALCON_INIT_FUNCS(phalcon_db_adapter_pdo_postgresql_method_entry){ -zend_class_entry *phalcon_db_dialect_mysql_ce; +zend_class_entry *phalcon_db_dialect_sqlite_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) + ZEND_ARG_INFO(0, indexName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_db_dialect_sqlite_ce; +zend_class_entry *phalcon_db_dialect_mysql_ce; -PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Sqlite); +PHALCON_INIT_CLASS(Phalcon_Db_Dialect_Mysql); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, _getTableOptions); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listTables); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences); -PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, _getTableOptions); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, listTables); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences); +PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_getcolumndefinition, 0, 0, 1) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_modifycolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_modifycolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, column) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropcolumn, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropcolumn, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, columnName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropindex, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropindex, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, indexName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addprimarykey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addprimarykey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, index) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropprimarykey, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropprimarykey, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_addforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_addforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, reference) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_dropforeignkey, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_dropforeignkey, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, referenceName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_createtable, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_createtable, 0, 0, 3) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, definition) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_droptable, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_droptable, 0, 0, 2) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_ARG_INFO(0, ifExists) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableexists, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableexists, 0, 0, 1) ZEND_ARG_INFO(0, tableName) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describecolumns, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describecolumns, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_listtables, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_listtables, 0, 0, 0) ZEND_ARG_INFO(0, schemaName) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindexes, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describeindexes, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describeindex, 0, 0, 1) - ZEND_ARG_INFO(0, indexName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_describereferences, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_describereferences, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_sqlite_tableoptions, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_dialect_mysql_tableoptions, 0, 0, 1) ZEND_ARG_INFO(0, table) ZEND_ARG_INFO(0, schema) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_db_dialect_sqlite_method_entry){ - PHP_ME(Phalcon_Db_Dialect_Sqlite, getColumnDefinition, arginfo_phalcon_db_dialect_sqlite_getcolumndefinition, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addColumn, arginfo_phalcon_db_dialect_sqlite_addcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, modifyColumn, arginfo_phalcon_db_dialect_sqlite_modifycolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropColumn, arginfo_phalcon_db_dialect_sqlite_dropcolumn, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addIndex, arginfo_phalcon_db_dialect_sqlite_addindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropIndex, arginfo_phalcon_db_dialect_sqlite_dropindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addPrimaryKey, arginfo_phalcon_db_dialect_sqlite_addprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey, arginfo_phalcon_db_dialect_sqlite_dropprimarykey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, addForeignKey, arginfo_phalcon_db_dialect_sqlite_addforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropForeignKey, arginfo_phalcon_db_dialect_sqlite_dropforeignkey, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, _getTableOptions, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Db_Dialect_Sqlite, createTable, arginfo_phalcon_db_dialect_sqlite_createtable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, dropTable, arginfo_phalcon_db_dialect_sqlite_droptable, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableExists, arginfo_phalcon_db_dialect_sqlite_tableexists, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeColumns, arginfo_phalcon_db_dialect_sqlite_describecolumns, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, listTables, arginfo_phalcon_db_dialect_sqlite_listtables, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndexes, arginfo_phalcon_db_dialect_sqlite_describeindexes, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeIndex, arginfo_phalcon_db_dialect_sqlite_describeindex, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, describeReferences, arginfo_phalcon_db_dialect_sqlite_describereferences, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_Dialect_Sqlite, tableOptions, arginfo_phalcon_db_dialect_sqlite_tableoptions, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_db_dialect_mysql_method_entry){ + PHP_ME(Phalcon_Db_Dialect_Mysql, getColumnDefinition, arginfo_phalcon_db_dialect_mysql_getcolumndefinition, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addColumn, arginfo_phalcon_db_dialect_mysql_addcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, modifyColumn, arginfo_phalcon_db_dialect_mysql_modifycolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropColumn, arginfo_phalcon_db_dialect_mysql_dropcolumn, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addIndex, arginfo_phalcon_db_dialect_mysql_addindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropIndex, arginfo_phalcon_db_dialect_mysql_dropindex, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addPrimaryKey, arginfo_phalcon_db_dialect_mysql_addprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropPrimaryKey, arginfo_phalcon_db_dialect_mysql_dropprimarykey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, addForeignKey, arginfo_phalcon_db_dialect_mysql_addforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropForeignKey, arginfo_phalcon_db_dialect_mysql_dropforeignkey, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, _getTableOptions, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Db_Dialect_Mysql, createTable, arginfo_phalcon_db_dialect_mysql_createtable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, dropTable, arginfo_phalcon_db_dialect_mysql_droptable, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableExists, arginfo_phalcon_db_dialect_mysql_tableexists, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeColumns, arginfo_phalcon_db_dialect_mysql_describecolumns, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, listTables, arginfo_phalcon_db_dialect_mysql_listtables, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeIndexes, arginfo_phalcon_db_dialect_mysql_describeindexes, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, describeReferences, arginfo_phalcon_db_dialect_mysql_describereferences, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_Dialect_Mysql, tableOptions, arginfo_phalcon_db_dialect_mysql_tableoptions, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -6371,6 +6441,27 @@ PHALCON_INIT_FUNCS(phalcon_db_profiler_item_method_entry){ +zend_class_entry *phalcon_db_rawvalue_ce; + +PHALCON_INIT_CLASS(Phalcon_Db_RawValue); + +PHP_METHOD(Phalcon_Db_RawValue, __construct); +PHP_METHOD(Phalcon_Db_RawValue, getValue); +PHP_METHOD(Phalcon_Db_RawValue, __toString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ + PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_db_reference_ce; PHALCON_INIT_CLASS(Phalcon_Db_Reference); @@ -6407,27 +6498,6 @@ PHALCON_INIT_FUNCS(phalcon_db_reference_method_entry){ -zend_class_entry *phalcon_db_rawvalue_ce; - -PHALCON_INIT_CLASS(Phalcon_Db_RawValue); - -PHP_METHOD(Phalcon_Db_RawValue, __construct); -PHP_METHOD(Phalcon_Db_RawValue, getValue); -PHP_METHOD(Phalcon_Db_RawValue, __toString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_db_rawvalue___construct, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_db_rawvalue_method_entry){ - PHP_ME(Phalcon_Db_RawValue, __construct, arginfo_phalcon_db_rawvalue___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Db_RawValue, getValue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Db_RawValue, __toString, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_db_result_pdo_ce; PHALCON_INIT_CLASS(Phalcon_Db_Result_Pdo); @@ -7094,6 +7164,11 @@ PHALCON_INIT_FUNCS(phalcon_flash_direct_method_entry){ +zend_class_entry *phalcon_flash_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Flash_Exception); + + zend_class_entry *phalcon_flash_session_ce; PHALCON_INIT_CLASS(Phalcon_Flash_Session); @@ -7137,11 +7212,6 @@ PHALCON_INIT_FUNCS(phalcon_flash_session_method_entry){ -zend_class_entry *phalcon_flash_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Flash_Exception); - - zend_class_entry *phalcon_cli_task_ce; PHALCON_INIT_CLASS(Phalcon_CLI_Task); @@ -7361,37 +7431,6 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_apc_method_entry){ -zend_class_entry *phalcon_annotations_reflection_ce; - -PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); - -PHP_METHOD(Phalcon_Annotations_Reflection, __construct); -PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); -PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); -PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) - ZEND_ARG_INFO(0, reflectionData) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ - PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_annotations_annotation_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Annotation); @@ -7447,6 +7486,37 @@ PHALCON_INIT_FUNCS(phalcon_annotations_annotation_method_entry){ +zend_class_entry *phalcon_annotations_reflection_ce; + +PHALCON_INIT_CLASS(Phalcon_Annotations_Reflection); + +PHP_METHOD(Phalcon_Annotations_Reflection, __construct); +PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations); +PHP_METHOD(Phalcon_Annotations_Reflection, getReflectionData); +PHP_METHOD(Phalcon_Annotations_Reflection, __set_state); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___construct, 0, 0, 0) + ZEND_ARG_INFO(0, reflectionData) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_reflection___set_state, 0, 0, 1) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_annotations_reflection_method_entry){ + PHP_ME(Phalcon_Annotations_Reflection, __construct, arginfo_phalcon_annotations_reflection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Annotations_Reflection, getClassAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getMethodsAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getPropertiesAnnotations, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, getReflectionData, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Annotations_Reflection, __set_state, arginfo_phalcon_annotations_reflection___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_annotations_collection_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_Collection); @@ -7544,6 +7614,11 @@ PHALCON_INIT_FUNCS(phalcon_annotations_adapter_memory_method_entry){ +zend_class_entry *phalcon_logger_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger); + + zend_class_entry *phalcon_loader_ce; PHALCON_INIT_CLASS(Phalcon_Loader); @@ -7623,11 +7698,6 @@ PHALCON_INIT_FUNCS(phalcon_loader_method_entry){ -zend_class_entry *phalcon_logger_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger); - - zend_class_entry *phalcon_loader_exception_ce; PHALCON_INIT_CLASS(Phalcon_Loader_Exception); @@ -7739,48 +7809,6 @@ zend_class_entry *phalcon_logger_exception_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Exception); -zend_class_entry *phalcon_logger_formatter_line_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); - -PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); -PHP_METHOD(Phalcon_Logger_Formatter_Line, format); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) - ZEND_ARG_INFO(0, format) - ZEND_ARG_INFO(0, dateFormat) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) - ZEND_ARG_INFO(0, format) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) - ZEND_ARG_INFO(0, date) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) - ZEND_ARG_INFO(0, message) - ZEND_ARG_INFO(0, type) - ZEND_ARG_INFO(0, timestamp) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ - PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_logger_formatter_json_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Json); @@ -7800,63 +7828,63 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_json_method_entry){ -zend_class_entry *phalcon_logger_adapter_file_ce; +zend_class_entry *phalcon_logger_adapter_syslog_ce; -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); -PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_File, close); -PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_logger_adapter_syslog_ce; - -PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_Syslog); +zend_class_entry *phalcon_logger_adapter_file_ce; -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, getFormatter); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal); -PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close); +PHALCON_INIT_CLASS(Phalcon_Logger_Adapter_File); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog___construct, 0, 0, 1) +PHP_METHOD(Phalcon_Logger_Adapter_File, __construct); +PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter); +PHP_METHOD(Phalcon_Logger_Adapter_File, logInternal); +PHP_METHOD(Phalcon_Logger_Adapter_File, close); +PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file___construct, 0, 0, 1) ZEND_ARG_INFO(0, name) ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_syslog_loginternal, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_adapter_file_loginternal, 0, 0, 3) ZEND_ARG_INFO(0, message) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_logger_adapter_syslog_method_entry){ - PHP_ME(Phalcon_Logger_Adapter_Syslog, __construct, arginfo_phalcon_logger_adapter_syslog___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Logger_Adapter_Syslog, getFormatter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, logInternal, arginfo_phalcon_logger_adapter_syslog_loginternal, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Logger_Adapter_Syslog, close, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_logger_adapter_file_method_entry){ + PHP_ME(Phalcon_Logger_Adapter_File, __construct, arginfo_phalcon_logger_adapter_file___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Adapter_File, getFormatter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, logInternal, arginfo_phalcon_logger_adapter_file_loginternal, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, close, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Adapter_File, __wakeup, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -7892,6 +7920,48 @@ PHALCON_INIT_FUNCS(phalcon_logger_adapter_stream_method_entry){ +zend_class_entry *phalcon_logger_formatter_line_ce; + +PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Line); + +PHP_METHOD(Phalcon_Logger_Formatter_Line, __construct); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, setDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, getDateFormat); +PHP_METHOD(Phalcon_Logger_Formatter_Line, format); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line___construct, 0, 0, 0) + ZEND_ARG_INFO(0, format) + ZEND_ARG_INFO(0, dateFormat) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setformat, 0, 0, 1) + ZEND_ARG_INFO(0, format) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_setdateformat, 0, 0, 1) + ZEND_ARG_INFO(0, date) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_logger_formatter_line_format, 0, 0, 3) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, type) + ZEND_ARG_INFO(0, timestamp) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_logger_formatter_line_method_entry){ + PHP_ME(Phalcon_Logger_Formatter_Line, __construct, arginfo_phalcon_logger_formatter_line___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Logger_Formatter_Line, setFormat, arginfo_phalcon_logger_formatter_line_setformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, setDateFormat, arginfo_phalcon_logger_formatter_line_setdateformat, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, getDateFormat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Logger_Formatter_Line, format, arginfo_phalcon_logger_formatter_line_format, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_logger_formatter_syslog_ce; PHALCON_INIT_CLASS(Phalcon_Logger_Formatter_Syslog); @@ -7911,6 +7981,11 @@ PHALCON_INIT_FUNCS(phalcon_logger_formatter_syslog_method_entry){ +zend_class_entry *phalcon_config_exception_ce; + +PHALCON_INIT_CLASS(Phalcon_Config_Exception); + + zend_class_entry *phalcon_config_adapter_ini_ce; PHALCON_INIT_CLASS(Phalcon_Config_Adapter_Ini); @@ -7928,24 +8003,35 @@ PHALCON_INIT_FUNCS(phalcon_config_adapter_ini_method_entry){ -zend_class_entry *phalcon_config_exception_ce; - -PHALCON_INIT_CLASS(Phalcon_Config_Exception); - - zend_class_entry *phalcon_forms_form_ce; PHALCON_INIT_CLASS(Phalcon_Forms_Form); PHP_METHOD(Phalcon_Forms_Form, __construct); PHP_METHOD(Phalcon_Forms_Form, isValid); +PHP_METHOD(Phalcon_Forms_Form, getMessages); +PHP_METHOD(Phalcon_Forms_Form, getMessagesFor); PHP_METHOD(Phalcon_Forms_Form, add); PHP_METHOD(Phalcon_Forms_Form, render); +PHP_METHOD(Phalcon_Forms_Form, get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 0) + ZEND_ARG_INFO(0, entity) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_isvalid, 0, 0, 0) + ZEND_ARG_INFO(0, data) ZEND_ARG_INFO(0, entity) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessages, 0, 0, 0) + ZEND_ARG_INFO(0, byItemName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_getmessagesfor, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_add, 0, 0, 1) ZEND_ARG_INFO(0, element) ZEND_END_ARG_INFO() @@ -7955,11 +8041,18 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_render, 0, 0, 1) ZEND_ARG_INFO(0, attributes) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_form_get, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + PHALCON_INIT_FUNCS(phalcon_forms_form_method_entry){ PHP_ME(Phalcon_Forms_Form, __construct, arginfo_phalcon_forms_form___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Forms_Form, isValid, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, isValid, arginfo_phalcon_forms_form_isvalid, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessages, arginfo_phalcon_forms_form_getmessages, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, getMessagesFor, arginfo_phalcon_forms_form_getmessagesfor, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, add, arginfo_phalcon_forms_form_add, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Forms_Form, render, arginfo_phalcon_forms_form_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Forms_Form, get, arginfo_phalcon_forms_form_get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -8004,6 +8097,23 @@ PHALCON_INIT_FUNCS(phalcon_forms_element_text_method_entry){ +zend_class_entry *phalcon_forms_element_password_ce; + +PHALCON_INIT_CLASS(Phalcon_Forms_Element_Password); + +PHP_METHOD(Phalcon_Forms_Element_Password, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_forms_element_password_render, 0, 0, 0) + ZEND_ARG_INFO(0, attributes) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_forms_element_password_method_entry){ + PHP_ME(Phalcon_Forms_Element_Password, render, arginfo_phalcon_forms_element_password_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_translate_ce; PHALCON_INIT_CLASS(Phalcon_Translate); @@ -8574,275 +8684,66 @@ PHP_METHOD(Phalcon_Queue_Beanstalk, peekReady); PHP_METHOD(Phalcon_Queue_Beanstalk, readStatus); PHP_METHOD(Phalcon_Queue_Beanstalk, read); PHP_METHOD(Phalcon_Queue_Beanstalk, write); -PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) - ZEND_ARG_INFO(0, data) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) - ZEND_ARG_INFO(0, timeout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) - ZEND_ARG_INFO(0, tube) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) - ZEND_ARG_INFO(0, length) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_queue_beanstalk_job_ce; - -PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); - -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); -PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) - ZEND_ARG_INFO(0, queue) - ZEND_ARG_INFO(0, id) - ZEND_ARG_INFO(0, body) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ - PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_view_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View); - -PHP_METHOD(Phalcon_Mvc_View, __construct); -PHP_METHOD(Phalcon_Mvc_View, setViewsDir); -PHP_METHOD(Phalcon_Mvc_View, getViewsDir); -PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); -PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); -PHP_METHOD(Phalcon_Mvc_View, setBasePath); -PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); -PHP_METHOD(Phalcon_Mvc_View, disableLevel); -PHP_METHOD(Phalcon_Mvc_View, setMainView); -PHP_METHOD(Phalcon_Mvc_View, getMainView); -PHP_METHOD(Phalcon_Mvc_View, setLayout); -PHP_METHOD(Phalcon_Mvc_View, getLayout); -PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); -PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); -PHP_METHOD(Phalcon_Mvc_View, setParamToView); -PHP_METHOD(Phalcon_Mvc_View, setVars); -PHP_METHOD(Phalcon_Mvc_View, setVar); -PHP_METHOD(Phalcon_Mvc_View, getVar); -PHP_METHOD(Phalcon_Mvc_View, getParamsToView); -PHP_METHOD(Phalcon_Mvc_View, getControllerName); -PHP_METHOD(Phalcon_Mvc_View, getActionName); -PHP_METHOD(Phalcon_Mvc_View, getParams); -PHP_METHOD(Phalcon_Mvc_View, start); -PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); -PHP_METHOD(Phalcon_Mvc_View, _engineRender); -PHP_METHOD(Phalcon_Mvc_View, registerEngines); -PHP_METHOD(Phalcon_Mvc_View, render); -PHP_METHOD(Phalcon_Mvc_View, pick); -PHP_METHOD(Phalcon_Mvc_View, partial); -PHP_METHOD(Phalcon_Mvc_View, getRender); -PHP_METHOD(Phalcon_Mvc_View, finish); -PHP_METHOD(Phalcon_Mvc_View, _createCache); -PHP_METHOD(Phalcon_Mvc_View, isCaching); -PHP_METHOD(Phalcon_Mvc_View, getCache); -PHP_METHOD(Phalcon_Mvc_View, cache); -PHP_METHOD(Phalcon_Mvc_View, setContent); -PHP_METHOD(Phalcon_Mvc_View, getContent); -PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); -PHP_METHOD(Phalcon_Mvc_View, disable); -PHP_METHOD(Phalcon_Mvc_View, enable); -PHP_METHOD(Phalcon_Mvc_View, reset); -PHP_METHOD(Phalcon_Mvc_View, __set); -PHP_METHOD(Phalcon_Mvc_View, __get); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) - ZEND_ARG_INFO(0, viewsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) - ZEND_ARG_INFO(0, layoutsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) - ZEND_ARG_INFO(0, partialsDir) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) - ZEND_ARG_INFO(0, level) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) - ZEND_ARG_INFO(0, viewPath) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) - ZEND_ARG_INFO(0, layout) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) - ZEND_ARG_INFO(0, templateBefore) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) - ZEND_ARG_INFO(0, templateAfter) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk, disconnect); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, merge) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_put, 0, 0, 1) + ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_reserve, 0, 0, 0) + ZEND_ARG_INFO(0, timeout) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_choose, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) - ZEND_ARG_INFO(0, engines) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_watch, 0, 0, 1) + ZEND_ARG_INFO(0, tube) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_read, 0, 0, 0) + ZEND_ARG_INFO(0, length) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) - ZEND_ARG_INFO(0, renderView) -ZEND_END_ARG_INFO() +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk, __construct, arginfo_phalcon_queue_beanstalk___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk, connect, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, put, arginfo_phalcon_queue_beanstalk_put, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, reserve, arginfo_phalcon_queue_beanstalk_reserve, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, choose, arginfo_phalcon_queue_beanstalk_choose, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, watch, arginfo_phalcon_queue_beanstalk_watch, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, peekReady, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Queue_Beanstalk, write, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) - ZEND_ARG_INFO(0, partialPath) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) - ZEND_ARG_INFO(0, controllerName) - ZEND_ARG_INFO(0, actionName) - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() +zend_class_entry *phalcon_queue_beanstalk_job_ce; -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) - ZEND_ARG_INFO(0, content) -ZEND_END_ARG_INFO() +PHALCON_INIT_CLASS(Phalcon_Queue_Beanstalk_Job); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, __construct); +PHP_METHOD(Phalcon_Queue_Beanstalk_Job, delete); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) - ZEND_ARG_INFO(0, key) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_queue_beanstalk_job___construct, 0, 0, 3) + ZEND_ARG_INFO(0, queue) + ZEND_ARG_INFO(0, id) + ZEND_ARG_INFO(0, body) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ - PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_queue_beanstalk_job_method_entry){ + PHP_ME(Phalcon_Queue_Beanstalk_Job, __construct, arginfo_phalcon_queue_beanstalk_job___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Queue_Beanstalk_Job, delete, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -9205,14 +9106,17 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_save, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_create, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_update, 0, 0, 0) ZEND_ARG_INFO(0, data) + ZEND_ARG_INFO(0, whiteList) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_skipoperation, 0, 0, 1) @@ -9365,48 +9269,257 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_method_entry){ -zend_class_entry *phalcon_mvc_url_ce; +zend_class_entry *phalcon_mvc_url_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Url); + +PHP_METHOD(Phalcon_Mvc_Url, setDI); +PHP_METHOD(Phalcon_Mvc_Url, getDI); +PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); +PHP_METHOD(Phalcon_Mvc_Url, setBasePath); +PHP_METHOD(Phalcon_Mvc_Url, getBasePath); +PHP_METHOD(Phalcon_Mvc_Url, get); +PHP_METHOD(Phalcon_Mvc_Url, path); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) + ZEND_ARG_INFO(0, dependencyInjector) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) + ZEND_ARG_INFO(0, baseUri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) + ZEND_ARG_INFO(0, uri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ + PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_view_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View); + +PHP_METHOD(Phalcon_Mvc_View, __construct); +PHP_METHOD(Phalcon_Mvc_View, setViewsDir); +PHP_METHOD(Phalcon_Mvc_View, getViewsDir); +PHP_METHOD(Phalcon_Mvc_View, setLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, getLayoutsDir); +PHP_METHOD(Phalcon_Mvc_View, setPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, getPartialsDir); +PHP_METHOD(Phalcon_Mvc_View, setBasePath); +PHP_METHOD(Phalcon_Mvc_View, setRenderLevel); +PHP_METHOD(Phalcon_Mvc_View, disableLevel); +PHP_METHOD(Phalcon_Mvc_View, setMainView); +PHP_METHOD(Phalcon_Mvc_View, getMainView); +PHP_METHOD(Phalcon_Mvc_View, setLayout); +PHP_METHOD(Phalcon_Mvc_View, getLayout); +PHP_METHOD(Phalcon_Mvc_View, setTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateBefore); +PHP_METHOD(Phalcon_Mvc_View, setTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, cleanTemplateAfter); +PHP_METHOD(Phalcon_Mvc_View, setParamToView); +PHP_METHOD(Phalcon_Mvc_View, setVars); +PHP_METHOD(Phalcon_Mvc_View, setVar); +PHP_METHOD(Phalcon_Mvc_View, getVar); +PHP_METHOD(Phalcon_Mvc_View, getParamsToView); +PHP_METHOD(Phalcon_Mvc_View, getControllerName); +PHP_METHOD(Phalcon_Mvc_View, getActionName); +PHP_METHOD(Phalcon_Mvc_View, getParams); +PHP_METHOD(Phalcon_Mvc_View, start); +PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines); +PHP_METHOD(Phalcon_Mvc_View, _engineRender); +PHP_METHOD(Phalcon_Mvc_View, registerEngines); +PHP_METHOD(Phalcon_Mvc_View, render); +PHP_METHOD(Phalcon_Mvc_View, pick); +PHP_METHOD(Phalcon_Mvc_View, partial); +PHP_METHOD(Phalcon_Mvc_View, getRender); +PHP_METHOD(Phalcon_Mvc_View, finish); +PHP_METHOD(Phalcon_Mvc_View, _createCache); +PHP_METHOD(Phalcon_Mvc_View, isCaching); +PHP_METHOD(Phalcon_Mvc_View, getCache); +PHP_METHOD(Phalcon_Mvc_View, cache); +PHP_METHOD(Phalcon_Mvc_View, setContent); +PHP_METHOD(Phalcon_Mvc_View, getContent); +PHP_METHOD(Phalcon_Mvc_View, getActiveRenderPath); +PHP_METHOD(Phalcon_Mvc_View, disable); +PHP_METHOD(Phalcon_Mvc_View, enable); +PHP_METHOD(Phalcon_Mvc_View, reset); +PHP_METHOD(Phalcon_Mvc_View, __set); +PHP_METHOD(Phalcon_Mvc_View, __get); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setviewsdir, 0, 0, 1) + ZEND_ARG_INFO(0, viewsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayoutsdir, 0, 0, 1) + ZEND_ARG_INFO(0, layoutsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setpartialsdir, 0, 0, 1) + ZEND_ARG_INFO(0, partialsDir) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setbasepath, 0, 0, 1) + ZEND_ARG_INFO(0, basePath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setrenderlevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_disablelevel, 0, 0, 1) + ZEND_ARG_INFO(0, level) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setmainview, 0, 0, 1) + ZEND_ARG_INFO(0, viewPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setlayout, 0, 0, 1) + ZEND_ARG_INFO(0, layout) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplatebefore, 0, 0, 1) + ZEND_ARG_INFO(0, templateBefore) +ZEND_END_ARG_INFO() -PHALCON_INIT_CLASS(Phalcon_Mvc_Url); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_settemplateafter, 0, 0, 1) + ZEND_ARG_INFO(0, templateAfter) +ZEND_END_ARG_INFO() -PHP_METHOD(Phalcon_Mvc_Url, setDI); -PHP_METHOD(Phalcon_Mvc_Url, getDI); -PHP_METHOD(Phalcon_Mvc_Url, setBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, getBaseUri); -PHP_METHOD(Phalcon_Mvc_Url, setBasePath); -PHP_METHOD(Phalcon_Mvc_Url, getBasePath); -PHP_METHOD(Phalcon_Mvc_Url, get); -PHP_METHOD(Phalcon_Mvc_Url, path); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setparamtoview, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setdi, 0, 0, 1) - ZEND_ARG_INFO(0, dependencyInjector) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvars, 0, 0, 1) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, merge) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbaseuri, 0, 0, 1) - ZEND_ARG_INFO(0, baseUri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setvar, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_setbasepath, 0, 0, 1) - ZEND_ARG_INFO(0, basePath) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getvar, 0, 0, 1) + ZEND_ARG_INFO(0, key) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_get, 0, 0, 0) - ZEND_ARG_INFO(0, uri) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_registerengines, 0, 0, 1) + ZEND_ARG_INFO(0, engines) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_url_path, 0, 0, 0) - ZEND_ARG_INFO(0, path) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_render, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_url_method_entry){ - PHP_ME(Phalcon_Mvc_Url, setDI, arginfo_phalcon_mvc_url_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getDI, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBaseUri, arginfo_phalcon_mvc_url_setbaseuri, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBaseUri, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, setBasePath, arginfo_phalcon_mvc_url_setbasepath, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, getBasePath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, get, arginfo_phalcon_mvc_url_get, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Url, path, arginfo_phalcon_mvc_url_path, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_pick, 0, 0, 1) + ZEND_ARG_INFO(0, renderView) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_partial, 0, 0, 1) + ZEND_ARG_INFO(0, partialPath) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_getrender, 0, 0, 2) + ZEND_ARG_INFO(0, controllerName) + ZEND_ARG_INFO(0, actionName) + ZEND_ARG_INFO(0, params) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_cache, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_setcontent, 0, 0, 1) + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___set, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view___get, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_method_entry){ + PHP_ME(Phalcon_Mvc_View, __construct, arginfo_phalcon_mvc_view___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_View, setViewsDir, arginfo_phalcon_mvc_view_setviewsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getViewsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayoutsDir, arginfo_phalcon_mvc_view_setlayoutsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayoutsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setPartialsDir, arginfo_phalcon_mvc_view_setpartialsdir, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getPartialsDir, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setBasePath, arginfo_phalcon_mvc_view_setbasepath, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setRenderLevel, arginfo_phalcon_mvc_view_setrenderlevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disableLevel, arginfo_phalcon_mvc_view_disablelevel, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setMainView, arginfo_phalcon_mvc_view_setmainview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getMainView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setLayout, arginfo_phalcon_mvc_view_setlayout, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getLayout, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateBefore, arginfo_phalcon_mvc_view_settemplatebefore, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateBefore, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setTemplateAfter, arginfo_phalcon_mvc_view_settemplateafter, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cleanTemplateAfter, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setParamToView, arginfo_phalcon_mvc_view_setparamtoview, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVars, arginfo_phalcon_mvc_view_setvars, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setVar, arginfo_phalcon_mvc_view_setvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getVar, arginfo_phalcon_mvc_view_getvar, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParamsToView, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getControllerName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActionName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getParams, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, start, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _loadTemplateEngines, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, _engineRender, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, registerEngines, arginfo_phalcon_mvc_view_registerengines, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, render, arginfo_phalcon_mvc_view_render, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, pick, arginfo_phalcon_mvc_view_pick, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, partial, arginfo_phalcon_mvc_view_partial, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getRender, arginfo_phalcon_mvc_view_getrender, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, finish, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, _createCache, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Mvc_View, isCaching, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getCache, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, cache, arginfo_phalcon_mvc_view_cache, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, setContent, arginfo_phalcon_mvc_view_setcontent, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getContent, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, getActiveRenderPath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, disable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, enable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, reset, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __set, arginfo_phalcon_mvc_view___set, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_View, __get, arginfo_phalcon_mvc_view___get, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10687,90 +10800,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_apc_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_query_status_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); - -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); -PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) - ZEND_ARG_INFO(0, success) - ZEND_ARG_INFO(0, model) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - -zend_class_entry *phalcon_mvc_model_metadata_files_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_query_builder_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Builder); @@ -10892,35 +10921,102 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_query_builder_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_url_ce; +zend_class_entry *phalcon_mvc_model_metadata_files_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Files); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_files_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_files_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, __construct, arginfo_phalcon_mvc_model_metadata_files___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, read, arginfo_phalcon_mvc_model_metadata_files_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Files, write, arginfo_phalcon_mvc_model_metadata_files_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_metadata_apc_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Apc); + +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_apc_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_apc_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, __construct, arginfo_phalcon_mvc_model_metadata_apc___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, read, arginfo_phalcon_mvc_model_metadata_apc_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Apc, write, arginfo_phalcon_mvc_model_metadata_apc_write, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_query_status_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Query_Status); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getModel); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, getMessages); +PHP_METHOD(Phalcon_Mvc_Model_Query_Status, success); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_query_status___construct, 0, 0, 2) + ZEND_ARG_INFO(0, success) + ZEND_ARG_INFO(0, model) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_query_status_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Query_Status, __construct, arginfo_phalcon_mvc_model_query_status___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getModel, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, getMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Query_Status, success, NULL, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_regex_ce; +zend_class_entry *phalcon_mvc_model_validator_url_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Url); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_url_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_url_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Url, validate, arginfo_phalcon_mvc_model_validator_url_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -10956,36 +11052,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_memory_method_entry){ -zend_class_entry *phalcon_mvc_model_metadata_session_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); - -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); -PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) - ZEND_ARG_INFO(0, options) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, data) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_model_resultset_simple_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Resultset_Simple); @@ -11050,57 +11116,65 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_resultset_complex_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_email_ce; +zend_class_entry *phalcon_mvc_model_validator_regex_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Regex); -PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_regex_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_regex_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Regex, validate, arginfo_phalcon_mvc_model_validator_regex_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; +zend_class_entry *phalcon_mvc_model_metadata_session_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_MetaData_Session); -PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, __construct); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read); +PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session___construct, 0, 0, 0) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_metadata_session_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_metadata_session_method_entry){ + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, __construct, arginfo_phalcon_mvc_model_metadata_session___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, read, arginfo_phalcon_mvc_model_metadata_session_read, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_MetaData_Session, write, arginfo_phalcon_mvc_model_metadata_session_write, ZEND_ACC_PUBLIC) PHP_FE_END }; -zend_class_entry *phalcon_mvc_model_transaction_failed_ce; +zend_class_entry *phalcon_mvc_model_validator_email_ce; -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Email); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); -PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); +PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate); -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) - ZEND_ARG_INFO(0, message) +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_email_validate, 0, 0, 1) ZEND_ARG_INFO(0, record) ZEND_END_ARG_INFO() -PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_email_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Email, validate, arginfo_phalcon_mvc_model_validator_email_validate, ZEND_ACC_PUBLIC) PHP_FE_END }; @@ -11141,6 +11215,45 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_uniqueness_method_entry){ +zend_class_entry *phalcon_mvc_model_transaction_failed_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Failed); + +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages); +PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, getRecord); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_transaction_failed___construct, 0, 0, 2) + ZEND_ARG_INFO(0, message) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_transaction_failed_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, __construct, arginfo_phalcon_mvc_model_transaction_failed___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecordMessages, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Phalcon_Mvc_Model_Transaction_Failed, getRecord, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + +zend_class_entry *phalcon_mvc_model_validator_presenceof_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_PresenceOf); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_presenceof_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_presenceof_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_PresenceOf, validate, arginfo_phalcon_mvc_model_validator_presenceof_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_transaction_manager_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Manager); @@ -11290,6 +11403,23 @@ zend_class_entry *phalcon_mvc_model_transaction_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Transaction_Exception); +zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); + +PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) + ZEND_ARG_INFO(0, record) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ + PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_model_validator_stringlength_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_StringLength); @@ -11341,23 +11471,6 @@ PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_exclusionin_method_entry){ -zend_class_entry *phalcon_mvc_model_validator_inclusionin_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_Model_Validator_Inclusionin); - -PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_validator_inclusionin_validate, 0, 0, 1) - ZEND_ARG_INFO(0, record) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_model_validator_inclusionin_method_entry){ - PHP_ME(Phalcon_Mvc_Model_Validator_Inclusionin, validate, arginfo_phalcon_mvc_model_validator_inclusionin_validate, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_moduledefinitioninterface_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_ModuleDefinitionInterface); @@ -11638,25 +11751,6 @@ zend_class_entry *phalcon_mvc_view_exception_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Exception); -zend_class_entry *phalcon_mvc_view_engine_php_ce; - -PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); - -PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) - ZEND_ARG_INFO(0, path) - ZEND_ARG_INFO(0, params) - ZEND_ARG_INFO(0, mustClean) -ZEND_END_ARG_INFO() - -PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ - PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - - - zend_class_entry *phalcon_mvc_view_engine_volt_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt); @@ -11715,6 +11809,25 @@ PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_volt_method_entry){ +zend_class_entry *phalcon_mvc_view_engine_php_ce; + +PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Php); + +PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_view_engine_php_render, 0, 0, 2) + ZEND_ARG_INFO(0, path) + ZEND_ARG_INFO(0, params) + ZEND_ARG_INFO(0, mustClean) +ZEND_END_ARG_INFO() + +PHALCON_INIT_FUNCS(phalcon_mvc_view_engine_php_method_entry){ + PHP_ME(Phalcon_Mvc_View_Engine_Php, render, arginfo_phalcon_mvc_view_engine_php_render, ZEND_ACC_PUBLIC) + PHP_FE_END +}; + + + zend_class_entry *phalcon_mvc_view_engine_volt_compiler_ce; PHALCON_INIT_CLASS(Phalcon_Mvc_View_Engine_Volt_Compiler);